mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
move test implementations to a shared internal package
This commit is contained in:
40
internal/test/struct.go
Normal file
40
internal/test/struct.go
Normal file
@@ -0,0 +1,40 @@
|
||||
package test
|
||||
|
||||
type TestStruct struct {
|
||||
String string
|
||||
Int int
|
||||
Float float64
|
||||
Bool bool
|
||||
Data any
|
||||
IntSlice []int
|
||||
}
|
||||
|
||||
func (t TestStruct) GetString() string {
|
||||
return t.String
|
||||
}
|
||||
|
||||
func (t TestStruct) GetInt() int {
|
||||
return t.Int
|
||||
}
|
||||
|
||||
func (t TestStruct) GetFloat() float64 {
|
||||
return t.Float
|
||||
}
|
||||
|
||||
func (t TestStruct) GetBool() bool {
|
||||
return t.Bool
|
||||
}
|
||||
|
||||
func (t TestStruct) GetData() any {
|
||||
return t.Data
|
||||
}
|
||||
|
||||
func (t TestStruct) GetIntSlice() []int {
|
||||
return t.IntSlice
|
||||
}
|
||||
|
||||
func (t TestStruct) Void() {}
|
||||
|
||||
func (t TestStruct) MultipleReturnValues() (string, int) {
|
||||
return t.String, t.Int
|
||||
}
|
||||
Reference in New Issue
Block a user