Documentation ¶
Index ¶
- Variables
- type Impl
- type MockEmptyIfaceSlice
- type MockEmptyStructSlice
- type MockIface
- type MockImportedStructSlice
- type MockMap
- type MockMapSlice
- type MockNonStringMap
- type MockPtr
- type MockPtrImport
- type MockSlice
- type MockSlicePointer
- type MockStr
- type MockStruct
- type MockStructSlice
- type MyEnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MyEnumType_name = map[int32]string{ 0: "ZERO", 1: "ONE", 2: "TWO", 3: "THREE", } MyEnumType_value = map[string]int32{ "ZERO": 0, "ONE": 1, "TWO": 2, "THREE": 3, } )
Enum value maps for MyEnumType.
Functions ¶
This section is empty.
Types ¶
type MockEmptyIfaceSlice ¶
type MockEmptyIfaceSlice []interface{}
MockEmptyIfSlice is an empty slice used for testing parsing of slices.
type MockIface ¶
type MockIface interface { // mockFn is a function used for testing interface methods. MockFn(string, int, bool) error }
mockIface is an interface used for testing parsing of interfacees.
type MockMap ¶
type MockMap map[string]interface{}
MockMap is a map used for testing parsing of maps.
type MockMapSlice ¶
MockMapSlice is a map slice used for testing parsing of maps of slices.
type MockNonStringMap ¶
MockNonStringMap does not get generated because it has no string key.
type MockPtrImport ¶
MockPtrImport is a pointer to an imported type
type MockSlice ¶
type MockSlice []MockPtrImport
MockSlice is a slice used for testing parsing of slices.
type MockSlicePointer ¶
type MockSlicePointer []*int
MockSlicePointer is a pointer slice used for testing parsing of slice pointers.
type MockStruct ¶
type MockStruct struct { // mockField is a field used for testing struct fields. MockField int `json:"mockField"` // mockField2 is a field used for testing struct fields. MockField2 string `json:"mockField2"` // array MockField3 []string `json:"mockField3"` // map MockField4 map[string]string `json:"mockField4"` // ptr MockField5 *string `json:"mockField5"` // interface! MockInterface MockIface `json:"myIface"` }
MockStruct is a struct used for testing parsing of structs.
Click to show internal directories.
Click to hide internal directories.