Skip to content

Commit

Permalink
Update types.go
Browse files Browse the repository at this point in the history
  • Loading branch information
HaraldNordgren committed Jul 28, 2024
1 parent b73967d commit c097d10
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pkg/moq/testpackages/shadowtypes/types/types.go
Original file line number Diff line number Diff line change
@@ -1,29 +1,48 @@
package types

// String is a test type.
type String string

// Int is a test type.
type Int int
// Int8 is a test type.
type Int8 int8
// Int16 is a test type.
type Int16 int16
// Int32 is a test type.
type Int32 int32
// Int64 is a test type.
type Int64 int64

// Uint is a test type.
type Uint uint
// Uint8 is a test type.
type Uint8 uint
// Uint16 is a test type.
type Uint16 uint
// Uint32 is a test type.
type Uint32 uint
// Uint64 is a test type.
type Uint64 uint

// Float32 is a test type.
type Float32 float32
// Float64 is a test type.
type Float64 float64

// Byte is a test type.
type Byte byte

// Rune is a test type.
type Rune rune

// Bool is a test type.
type Bool bool

// Complex64 is a test type.
type Complex64 complex64
// Complex128 is a test type.
type Complex128 complex128

// Uintptr is a test type.
type Uintptr uintptr
1 change: 1 addition & 0 deletions pkg/moq/testpackages/syncimport/sync/thing.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package sync

// Thing is a test type.
type Thing string
1 change: 1 addition & 0 deletions pkg/moq/testpackages/syncimport/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/matryer/moq/pkg/moq/testpackages/syncimport/sync"
)

// Syncer is a test interface.
type Syncer interface {
Blah(s sync.Thing, wg *stdsync.WaitGroup)
}
1 change: 1 addition & 0 deletions pkg/moq/testpackages/transientimport/base/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
two "github.com/matryer/moq/pkg/moq/testpackages/transientimport/two/app/v1"
)

// Transient is a test interface.
type Transient interface {
DoSomething(onev1.Zero, one.One, two.Two, three.Three, four.Four)
}
1 change: 1 addition & 0 deletions pkg/moq/testpackages/transientimport/four/app/v1/four.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package v1

// Four is a test type.
type Four string
1 change: 1 addition & 0 deletions pkg/moq/testpackages/transientimport/one/v1/one.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package v1

// One is a test type.
type One string
1 change: 1 addition & 0 deletions pkg/moq/testpackages/transientimport/onev1/zero.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package onev1

// Zero is a test type.
type Zero string
1 change: 1 addition & 0 deletions pkg/moq/testpackages/transientimport/three/v1/three.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package v1

// Three is a test type.
type Three string
1 change: 1 addition & 0 deletions pkg/moq/testpackages/transientimport/transient.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ import (
"github.com/matryer/moq/pkg/moq/testpackages/transientimport/base"
)

// Transient is a test interface.
type Transient = base.Transient
1 change: 1 addition & 0 deletions pkg/moq/testpackages/transientimport/two/app/v1/two.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package v1

// Two is a test type.
type Two string
1 change: 1 addition & 0 deletions pkg/moq/testpackages/variadic/echoer.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package variadic

// Echoer is an interface.
type Echoer interface {
Echo(ss ...string) []string
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c097d10

Please sign in to comment.