mammoth2_generated_test.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  1. // +build !notfastpath
  2. // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
  3. // Use of this source code is governed by a MIT license found in the LICENSE file.
  4. // Code generated from mammoth2-test.go.tmpl - DO NOT EDIT.
  5. package codec
  6. // Increase codecoverage by covering all the codecgen paths, in fast-path and gen-helper.go....
  7. //
  8. // Add:
  9. // - test file for creating a mammoth generated file as _mammoth_generated.go
  10. // - generate a second mammoth files in a different file: mammoth2_generated_test.go
  11. // - mammoth-test.go.tmpl will do this
  12. // - run codecgen on it, into mammoth2_codecgen_generated_test.go (no build tags)
  13. // - as part of TestMammoth, run it also
  14. // - this will cover all the codecgen, gen-helper, etc in one full run
  15. // - check in mammoth* files into github also
  16. // - then
  17. //
  18. // Now, add some types:
  19. // - some that implement BinaryMarshal, TextMarshal, JSONMarshal, and one that implements none of it
  20. // - create a wrapper type that includes TestMammoth2, with it in slices, and maps, and the custom types
  21. // - this wrapper object is what we work encode/decode (so that the codecgen methods are called)
  22. // import "encoding/binary"
  23. import "fmt"
  24. type TestMammoth2 struct {
  25. FIntf interface{}
  26. FptrIntf *interface{}
  27. FString string
  28. FptrString *string
  29. FFloat32 float32
  30. FptrFloat32 *float32
  31. FFloat64 float64
  32. FptrFloat64 *float64
  33. FUint uint
  34. FptrUint *uint
  35. FUint8 uint8
  36. FptrUint8 *uint8
  37. FUint16 uint16
  38. FptrUint16 *uint16
  39. FUint32 uint32
  40. FptrUint32 *uint32
  41. FUint64 uint64
  42. FptrUint64 *uint64
  43. FUintptr uintptr
  44. FptrUintptr *uintptr
  45. FInt int
  46. FptrInt *int
  47. FInt8 int8
  48. FptrInt8 *int8
  49. FInt16 int16
  50. FptrInt16 *int16
  51. FInt32 int32
  52. FptrInt32 *int32
  53. FInt64 int64
  54. FptrInt64 *int64
  55. FBool bool
  56. FptrBool *bool
  57. FSliceIntf []interface{}
  58. FptrSliceIntf *[]interface{}
  59. FSliceString []string
  60. FptrSliceString *[]string
  61. FSliceFloat32 []float32
  62. FptrSliceFloat32 *[]float32
  63. FSliceFloat64 []float64
  64. FptrSliceFloat64 *[]float64
  65. FSliceUint []uint
  66. FptrSliceUint *[]uint
  67. FSliceUint16 []uint16
  68. FptrSliceUint16 *[]uint16
  69. FSliceUint32 []uint32
  70. FptrSliceUint32 *[]uint32
  71. FSliceUint64 []uint64
  72. FptrSliceUint64 *[]uint64
  73. FSliceUintptr []uintptr
  74. FptrSliceUintptr *[]uintptr
  75. FSliceInt []int
  76. FptrSliceInt *[]int
  77. FSliceInt8 []int8
  78. FptrSliceInt8 *[]int8
  79. FSliceInt16 []int16
  80. FptrSliceInt16 *[]int16
  81. FSliceInt32 []int32
  82. FptrSliceInt32 *[]int32
  83. FSliceInt64 []int64
  84. FptrSliceInt64 *[]int64
  85. FSliceBool []bool
  86. FptrSliceBool *[]bool
  87. FMapIntfIntf map[interface{}]interface{}
  88. FptrMapIntfIntf *map[interface{}]interface{}
  89. FMapIntfString map[interface{}]string
  90. FptrMapIntfString *map[interface{}]string
  91. FMapIntfUint map[interface{}]uint
  92. FptrMapIntfUint *map[interface{}]uint
  93. FMapIntfUint8 map[interface{}]uint8
  94. FptrMapIntfUint8 *map[interface{}]uint8
  95. FMapIntfUint16 map[interface{}]uint16
  96. FptrMapIntfUint16 *map[interface{}]uint16
  97. FMapIntfUint32 map[interface{}]uint32
  98. FptrMapIntfUint32 *map[interface{}]uint32
  99. FMapIntfUint64 map[interface{}]uint64
  100. FptrMapIntfUint64 *map[interface{}]uint64
  101. FMapIntfUintptr map[interface{}]uintptr
  102. FptrMapIntfUintptr *map[interface{}]uintptr
  103. FMapIntfInt map[interface{}]int
  104. FptrMapIntfInt *map[interface{}]int
  105. FMapIntfInt8 map[interface{}]int8
  106. FptrMapIntfInt8 *map[interface{}]int8
  107. FMapIntfInt16 map[interface{}]int16
  108. FptrMapIntfInt16 *map[interface{}]int16
  109. FMapIntfInt32 map[interface{}]int32
  110. FptrMapIntfInt32 *map[interface{}]int32
  111. FMapIntfInt64 map[interface{}]int64
  112. FptrMapIntfInt64 *map[interface{}]int64
  113. FMapIntfFloat32 map[interface{}]float32
  114. FptrMapIntfFloat32 *map[interface{}]float32
  115. FMapIntfFloat64 map[interface{}]float64
  116. FptrMapIntfFloat64 *map[interface{}]float64
  117. FMapIntfBool map[interface{}]bool
  118. FptrMapIntfBool *map[interface{}]bool
  119. FMapStringIntf map[string]interface{}
  120. FptrMapStringIntf *map[string]interface{}
  121. FMapStringString map[string]string
  122. FptrMapStringString *map[string]string
  123. FMapStringUint map[string]uint
  124. FptrMapStringUint *map[string]uint
  125. FMapStringUint8 map[string]uint8
  126. FptrMapStringUint8 *map[string]uint8
  127. FMapStringUint16 map[string]uint16
  128. FptrMapStringUint16 *map[string]uint16
  129. FMapStringUint32 map[string]uint32
  130. FptrMapStringUint32 *map[string]uint32
  131. FMapStringUint64 map[string]uint64
  132. FptrMapStringUint64 *map[string]uint64
  133. FMapStringUintptr map[string]uintptr
  134. FptrMapStringUintptr *map[string]uintptr
  135. FMapStringInt map[string]int
  136. FptrMapStringInt *map[string]int
  137. FMapStringInt8 map[string]int8
  138. FptrMapStringInt8 *map[string]int8
  139. FMapStringInt16 map[string]int16
  140. FptrMapStringInt16 *map[string]int16
  141. FMapStringInt32 map[string]int32
  142. FptrMapStringInt32 *map[string]int32
  143. FMapStringInt64 map[string]int64
  144. FptrMapStringInt64 *map[string]int64
  145. FMapStringFloat32 map[string]float32
  146. FptrMapStringFloat32 *map[string]float32
  147. FMapStringFloat64 map[string]float64
  148. FptrMapStringFloat64 *map[string]float64
  149. FMapStringBool map[string]bool
  150. FptrMapStringBool *map[string]bool
  151. FMapFloat32Intf map[float32]interface{}
  152. FptrMapFloat32Intf *map[float32]interface{}
  153. FMapFloat32String map[float32]string
  154. FptrMapFloat32String *map[float32]string
  155. FMapFloat32Uint map[float32]uint
  156. FptrMapFloat32Uint *map[float32]uint
  157. FMapFloat32Uint8 map[float32]uint8
  158. FptrMapFloat32Uint8 *map[float32]uint8
  159. FMapFloat32Uint16 map[float32]uint16
  160. FptrMapFloat32Uint16 *map[float32]uint16
  161. FMapFloat32Uint32 map[float32]uint32
  162. FptrMapFloat32Uint32 *map[float32]uint32
  163. FMapFloat32Uint64 map[float32]uint64
  164. FptrMapFloat32Uint64 *map[float32]uint64
  165. FMapFloat32Uintptr map[float32]uintptr
  166. FptrMapFloat32Uintptr *map[float32]uintptr
  167. FMapFloat32Int map[float32]int
  168. FptrMapFloat32Int *map[float32]int
  169. FMapFloat32Int8 map[float32]int8
  170. FptrMapFloat32Int8 *map[float32]int8
  171. FMapFloat32Int16 map[float32]int16
  172. FptrMapFloat32Int16 *map[float32]int16
  173. FMapFloat32Int32 map[float32]int32
  174. FptrMapFloat32Int32 *map[float32]int32
  175. FMapFloat32Int64 map[float32]int64
  176. FptrMapFloat32Int64 *map[float32]int64
  177. FMapFloat32Float32 map[float32]float32
  178. FptrMapFloat32Float32 *map[float32]float32
  179. FMapFloat32Float64 map[float32]float64
  180. FptrMapFloat32Float64 *map[float32]float64
  181. FMapFloat32Bool map[float32]bool
  182. FptrMapFloat32Bool *map[float32]bool
  183. FMapFloat64Intf map[float64]interface{}
  184. FptrMapFloat64Intf *map[float64]interface{}
  185. FMapFloat64String map[float64]string
  186. FptrMapFloat64String *map[float64]string
  187. FMapFloat64Uint map[float64]uint
  188. FptrMapFloat64Uint *map[float64]uint
  189. FMapFloat64Uint8 map[float64]uint8
  190. FptrMapFloat64Uint8 *map[float64]uint8
  191. FMapFloat64Uint16 map[float64]uint16
  192. FptrMapFloat64Uint16 *map[float64]uint16
  193. FMapFloat64Uint32 map[float64]uint32
  194. FptrMapFloat64Uint32 *map[float64]uint32
  195. FMapFloat64Uint64 map[float64]uint64
  196. FptrMapFloat64Uint64 *map[float64]uint64
  197. FMapFloat64Uintptr map[float64]uintptr
  198. FptrMapFloat64Uintptr *map[float64]uintptr
  199. FMapFloat64Int map[float64]int
  200. FptrMapFloat64Int *map[float64]int
  201. FMapFloat64Int8 map[float64]int8
  202. FptrMapFloat64Int8 *map[float64]int8
  203. FMapFloat64Int16 map[float64]int16
  204. FptrMapFloat64Int16 *map[float64]int16
  205. FMapFloat64Int32 map[float64]int32
  206. FptrMapFloat64Int32 *map[float64]int32
  207. FMapFloat64Int64 map[float64]int64
  208. FptrMapFloat64Int64 *map[float64]int64
  209. FMapFloat64Float32 map[float64]float32
  210. FptrMapFloat64Float32 *map[float64]float32
  211. FMapFloat64Float64 map[float64]float64
  212. FptrMapFloat64Float64 *map[float64]float64
  213. FMapFloat64Bool map[float64]bool
  214. FptrMapFloat64Bool *map[float64]bool
  215. FMapUintIntf map[uint]interface{}
  216. FptrMapUintIntf *map[uint]interface{}
  217. FMapUintString map[uint]string
  218. FptrMapUintString *map[uint]string
  219. FMapUintUint map[uint]uint
  220. FptrMapUintUint *map[uint]uint
  221. FMapUintUint8 map[uint]uint8
  222. FptrMapUintUint8 *map[uint]uint8
  223. FMapUintUint16 map[uint]uint16
  224. FptrMapUintUint16 *map[uint]uint16
  225. FMapUintUint32 map[uint]uint32
  226. FptrMapUintUint32 *map[uint]uint32
  227. FMapUintUint64 map[uint]uint64
  228. FptrMapUintUint64 *map[uint]uint64
  229. FMapUintUintptr map[uint]uintptr
  230. FptrMapUintUintptr *map[uint]uintptr
  231. FMapUintInt map[uint]int
  232. FptrMapUintInt *map[uint]int
  233. FMapUintInt8 map[uint]int8
  234. FptrMapUintInt8 *map[uint]int8
  235. FMapUintInt16 map[uint]int16
  236. FptrMapUintInt16 *map[uint]int16
  237. FMapUintInt32 map[uint]int32
  238. FptrMapUintInt32 *map[uint]int32
  239. FMapUintInt64 map[uint]int64
  240. FptrMapUintInt64 *map[uint]int64
  241. FMapUintFloat32 map[uint]float32
  242. FptrMapUintFloat32 *map[uint]float32
  243. FMapUintFloat64 map[uint]float64
  244. FptrMapUintFloat64 *map[uint]float64
  245. FMapUintBool map[uint]bool
  246. FptrMapUintBool *map[uint]bool
  247. FMapUint8Intf map[uint8]interface{}
  248. FptrMapUint8Intf *map[uint8]interface{}
  249. FMapUint8String map[uint8]string
  250. FptrMapUint8String *map[uint8]string
  251. FMapUint8Uint map[uint8]uint
  252. FptrMapUint8Uint *map[uint8]uint
  253. FMapUint8Uint8 map[uint8]uint8
  254. FptrMapUint8Uint8 *map[uint8]uint8
  255. FMapUint8Uint16 map[uint8]uint16
  256. FptrMapUint8Uint16 *map[uint8]uint16
  257. FMapUint8Uint32 map[uint8]uint32
  258. FptrMapUint8Uint32 *map[uint8]uint32
  259. FMapUint8Uint64 map[uint8]uint64
  260. FptrMapUint8Uint64 *map[uint8]uint64
  261. FMapUint8Uintptr map[uint8]uintptr
  262. FptrMapUint8Uintptr *map[uint8]uintptr
  263. FMapUint8Int map[uint8]int
  264. FptrMapUint8Int *map[uint8]int
  265. FMapUint8Int8 map[uint8]int8
  266. FptrMapUint8Int8 *map[uint8]int8
  267. FMapUint8Int16 map[uint8]int16
  268. FptrMapUint8Int16 *map[uint8]int16
  269. FMapUint8Int32 map[uint8]int32
  270. FptrMapUint8Int32 *map[uint8]int32
  271. FMapUint8Int64 map[uint8]int64
  272. FptrMapUint8Int64 *map[uint8]int64
  273. FMapUint8Float32 map[uint8]float32
  274. FptrMapUint8Float32 *map[uint8]float32
  275. FMapUint8Float64 map[uint8]float64
  276. FptrMapUint8Float64 *map[uint8]float64
  277. FMapUint8Bool map[uint8]bool
  278. FptrMapUint8Bool *map[uint8]bool
  279. FMapUint16Intf map[uint16]interface{}
  280. FptrMapUint16Intf *map[uint16]interface{}
  281. FMapUint16String map[uint16]string
  282. FptrMapUint16String *map[uint16]string
  283. FMapUint16Uint map[uint16]uint
  284. FptrMapUint16Uint *map[uint16]uint
  285. FMapUint16Uint8 map[uint16]uint8
  286. FptrMapUint16Uint8 *map[uint16]uint8
  287. FMapUint16Uint16 map[uint16]uint16
  288. FptrMapUint16Uint16 *map[uint16]uint16
  289. FMapUint16Uint32 map[uint16]uint32
  290. FptrMapUint16Uint32 *map[uint16]uint32
  291. FMapUint16Uint64 map[uint16]uint64
  292. FptrMapUint16Uint64 *map[uint16]uint64
  293. FMapUint16Uintptr map[uint16]uintptr
  294. FptrMapUint16Uintptr *map[uint16]uintptr
  295. FMapUint16Int map[uint16]int
  296. FptrMapUint16Int *map[uint16]int
  297. FMapUint16Int8 map[uint16]int8
  298. FptrMapUint16Int8 *map[uint16]int8
  299. FMapUint16Int16 map[uint16]int16
  300. FptrMapUint16Int16 *map[uint16]int16
  301. FMapUint16Int32 map[uint16]int32
  302. FptrMapUint16Int32 *map[uint16]int32
  303. FMapUint16Int64 map[uint16]int64
  304. FptrMapUint16Int64 *map[uint16]int64
  305. FMapUint16Float32 map[uint16]float32
  306. FptrMapUint16Float32 *map[uint16]float32
  307. FMapUint16Float64 map[uint16]float64
  308. FptrMapUint16Float64 *map[uint16]float64
  309. FMapUint16Bool map[uint16]bool
  310. FptrMapUint16Bool *map[uint16]bool
  311. FMapUint32Intf map[uint32]interface{}
  312. FptrMapUint32Intf *map[uint32]interface{}
  313. FMapUint32String map[uint32]string
  314. FptrMapUint32String *map[uint32]string
  315. FMapUint32Uint map[uint32]uint
  316. FptrMapUint32Uint *map[uint32]uint
  317. FMapUint32Uint8 map[uint32]uint8
  318. FptrMapUint32Uint8 *map[uint32]uint8
  319. FMapUint32Uint16 map[uint32]uint16
  320. FptrMapUint32Uint16 *map[uint32]uint16
  321. FMapUint32Uint32 map[uint32]uint32
  322. FptrMapUint32Uint32 *map[uint32]uint32
  323. FMapUint32Uint64 map[uint32]uint64
  324. FptrMapUint32Uint64 *map[uint32]uint64
  325. FMapUint32Uintptr map[uint32]uintptr
  326. FptrMapUint32Uintptr *map[uint32]uintptr
  327. FMapUint32Int map[uint32]int
  328. FptrMapUint32Int *map[uint32]int
  329. FMapUint32Int8 map[uint32]int8
  330. FptrMapUint32Int8 *map[uint32]int8
  331. FMapUint32Int16 map[uint32]int16
  332. FptrMapUint32Int16 *map[uint32]int16
  333. FMapUint32Int32 map[uint32]int32
  334. FptrMapUint32Int32 *map[uint32]int32
  335. FMapUint32Int64 map[uint32]int64
  336. FptrMapUint32Int64 *map[uint32]int64
  337. FMapUint32Float32 map[uint32]float32
  338. FptrMapUint32Float32 *map[uint32]float32
  339. FMapUint32Float64 map[uint32]float64
  340. FptrMapUint32Float64 *map[uint32]float64
  341. FMapUint32Bool map[uint32]bool
  342. FptrMapUint32Bool *map[uint32]bool
  343. FMapUint64Intf map[uint64]interface{}
  344. FptrMapUint64Intf *map[uint64]interface{}
  345. FMapUint64String map[uint64]string
  346. FptrMapUint64String *map[uint64]string
  347. FMapUint64Uint map[uint64]uint
  348. FptrMapUint64Uint *map[uint64]uint
  349. FMapUint64Uint8 map[uint64]uint8
  350. FptrMapUint64Uint8 *map[uint64]uint8
  351. FMapUint64Uint16 map[uint64]uint16
  352. FptrMapUint64Uint16 *map[uint64]uint16
  353. FMapUint64Uint32 map[uint64]uint32
  354. FptrMapUint64Uint32 *map[uint64]uint32
  355. FMapUint64Uint64 map[uint64]uint64
  356. FptrMapUint64Uint64 *map[uint64]uint64
  357. FMapUint64Uintptr map[uint64]uintptr
  358. FptrMapUint64Uintptr *map[uint64]uintptr
  359. FMapUint64Int map[uint64]int
  360. FptrMapUint64Int *map[uint64]int
  361. FMapUint64Int8 map[uint64]int8
  362. FptrMapUint64Int8 *map[uint64]int8
  363. FMapUint64Int16 map[uint64]int16
  364. FptrMapUint64Int16 *map[uint64]int16
  365. FMapUint64Int32 map[uint64]int32
  366. FptrMapUint64Int32 *map[uint64]int32
  367. FMapUint64Int64 map[uint64]int64
  368. FptrMapUint64Int64 *map[uint64]int64
  369. FMapUint64Float32 map[uint64]float32
  370. FptrMapUint64Float32 *map[uint64]float32
  371. FMapUint64Float64 map[uint64]float64
  372. FptrMapUint64Float64 *map[uint64]float64
  373. FMapUint64Bool map[uint64]bool
  374. FptrMapUint64Bool *map[uint64]bool
  375. FMapUintptrIntf map[uintptr]interface{}
  376. FptrMapUintptrIntf *map[uintptr]interface{}
  377. FMapUintptrString map[uintptr]string
  378. FptrMapUintptrString *map[uintptr]string
  379. FMapUintptrUint map[uintptr]uint
  380. FptrMapUintptrUint *map[uintptr]uint
  381. FMapUintptrUint8 map[uintptr]uint8
  382. FptrMapUintptrUint8 *map[uintptr]uint8
  383. FMapUintptrUint16 map[uintptr]uint16
  384. FptrMapUintptrUint16 *map[uintptr]uint16
  385. FMapUintptrUint32 map[uintptr]uint32
  386. FptrMapUintptrUint32 *map[uintptr]uint32
  387. FMapUintptrUint64 map[uintptr]uint64
  388. FptrMapUintptrUint64 *map[uintptr]uint64
  389. FMapUintptrUintptr map[uintptr]uintptr
  390. FptrMapUintptrUintptr *map[uintptr]uintptr
  391. FMapUintptrInt map[uintptr]int
  392. FptrMapUintptrInt *map[uintptr]int
  393. FMapUintptrInt8 map[uintptr]int8
  394. FptrMapUintptrInt8 *map[uintptr]int8
  395. FMapUintptrInt16 map[uintptr]int16
  396. FptrMapUintptrInt16 *map[uintptr]int16
  397. FMapUintptrInt32 map[uintptr]int32
  398. FptrMapUintptrInt32 *map[uintptr]int32
  399. FMapUintptrInt64 map[uintptr]int64
  400. FptrMapUintptrInt64 *map[uintptr]int64
  401. FMapUintptrFloat32 map[uintptr]float32
  402. FptrMapUintptrFloat32 *map[uintptr]float32
  403. FMapUintptrFloat64 map[uintptr]float64
  404. FptrMapUintptrFloat64 *map[uintptr]float64
  405. FMapUintptrBool map[uintptr]bool
  406. FptrMapUintptrBool *map[uintptr]bool
  407. FMapIntIntf map[int]interface{}
  408. FptrMapIntIntf *map[int]interface{}
  409. FMapIntString map[int]string
  410. FptrMapIntString *map[int]string
  411. FMapIntUint map[int]uint
  412. FptrMapIntUint *map[int]uint
  413. FMapIntUint8 map[int]uint8
  414. FptrMapIntUint8 *map[int]uint8
  415. FMapIntUint16 map[int]uint16
  416. FptrMapIntUint16 *map[int]uint16
  417. FMapIntUint32 map[int]uint32
  418. FptrMapIntUint32 *map[int]uint32
  419. FMapIntUint64 map[int]uint64
  420. FptrMapIntUint64 *map[int]uint64
  421. FMapIntUintptr map[int]uintptr
  422. FptrMapIntUintptr *map[int]uintptr
  423. FMapIntInt map[int]int
  424. FptrMapIntInt *map[int]int
  425. FMapIntInt8 map[int]int8
  426. FptrMapIntInt8 *map[int]int8
  427. FMapIntInt16 map[int]int16
  428. FptrMapIntInt16 *map[int]int16
  429. FMapIntInt32 map[int]int32
  430. FptrMapIntInt32 *map[int]int32
  431. FMapIntInt64 map[int]int64
  432. FptrMapIntInt64 *map[int]int64
  433. FMapIntFloat32 map[int]float32
  434. FptrMapIntFloat32 *map[int]float32
  435. FMapIntFloat64 map[int]float64
  436. FptrMapIntFloat64 *map[int]float64
  437. FMapIntBool map[int]bool
  438. FptrMapIntBool *map[int]bool
  439. FMapInt8Intf map[int8]interface{}
  440. FptrMapInt8Intf *map[int8]interface{}
  441. FMapInt8String map[int8]string
  442. FptrMapInt8String *map[int8]string
  443. FMapInt8Uint map[int8]uint
  444. FptrMapInt8Uint *map[int8]uint
  445. FMapInt8Uint8 map[int8]uint8
  446. FptrMapInt8Uint8 *map[int8]uint8
  447. FMapInt8Uint16 map[int8]uint16
  448. FptrMapInt8Uint16 *map[int8]uint16
  449. FMapInt8Uint32 map[int8]uint32
  450. FptrMapInt8Uint32 *map[int8]uint32
  451. FMapInt8Uint64 map[int8]uint64
  452. FptrMapInt8Uint64 *map[int8]uint64
  453. FMapInt8Uintptr map[int8]uintptr
  454. FptrMapInt8Uintptr *map[int8]uintptr
  455. FMapInt8Int map[int8]int
  456. FptrMapInt8Int *map[int8]int
  457. FMapInt8Int8 map[int8]int8
  458. FptrMapInt8Int8 *map[int8]int8
  459. FMapInt8Int16 map[int8]int16
  460. FptrMapInt8Int16 *map[int8]int16
  461. FMapInt8Int32 map[int8]int32
  462. FptrMapInt8Int32 *map[int8]int32
  463. FMapInt8Int64 map[int8]int64
  464. FptrMapInt8Int64 *map[int8]int64
  465. FMapInt8Float32 map[int8]float32
  466. FptrMapInt8Float32 *map[int8]float32
  467. FMapInt8Float64 map[int8]float64
  468. FptrMapInt8Float64 *map[int8]float64
  469. FMapInt8Bool map[int8]bool
  470. FptrMapInt8Bool *map[int8]bool
  471. FMapInt16Intf map[int16]interface{}
  472. FptrMapInt16Intf *map[int16]interface{}
  473. FMapInt16String map[int16]string
  474. FptrMapInt16String *map[int16]string
  475. FMapInt16Uint map[int16]uint
  476. FptrMapInt16Uint *map[int16]uint
  477. FMapInt16Uint8 map[int16]uint8
  478. FptrMapInt16Uint8 *map[int16]uint8
  479. FMapInt16Uint16 map[int16]uint16
  480. FptrMapInt16Uint16 *map[int16]uint16
  481. FMapInt16Uint32 map[int16]uint32
  482. FptrMapInt16Uint32 *map[int16]uint32
  483. FMapInt16Uint64 map[int16]uint64
  484. FptrMapInt16Uint64 *map[int16]uint64
  485. FMapInt16Uintptr map[int16]uintptr
  486. FptrMapInt16Uintptr *map[int16]uintptr
  487. FMapInt16Int map[int16]int
  488. FptrMapInt16Int *map[int16]int
  489. FMapInt16Int8 map[int16]int8
  490. FptrMapInt16Int8 *map[int16]int8
  491. FMapInt16Int16 map[int16]int16
  492. FptrMapInt16Int16 *map[int16]int16
  493. FMapInt16Int32 map[int16]int32
  494. FptrMapInt16Int32 *map[int16]int32
  495. FMapInt16Int64 map[int16]int64
  496. FptrMapInt16Int64 *map[int16]int64
  497. FMapInt16Float32 map[int16]float32
  498. FptrMapInt16Float32 *map[int16]float32
  499. FMapInt16Float64 map[int16]float64
  500. FptrMapInt16Float64 *map[int16]float64
  501. FMapInt16Bool map[int16]bool
  502. FptrMapInt16Bool *map[int16]bool
  503. FMapInt32Intf map[int32]interface{}
  504. FptrMapInt32Intf *map[int32]interface{}
  505. FMapInt32String map[int32]string
  506. FptrMapInt32String *map[int32]string
  507. FMapInt32Uint map[int32]uint
  508. FptrMapInt32Uint *map[int32]uint
  509. FMapInt32Uint8 map[int32]uint8
  510. FptrMapInt32Uint8 *map[int32]uint8
  511. FMapInt32Uint16 map[int32]uint16
  512. FptrMapInt32Uint16 *map[int32]uint16
  513. FMapInt32Uint32 map[int32]uint32
  514. FptrMapInt32Uint32 *map[int32]uint32
  515. FMapInt32Uint64 map[int32]uint64
  516. FptrMapInt32Uint64 *map[int32]uint64
  517. FMapInt32Uintptr map[int32]uintptr
  518. FptrMapInt32Uintptr *map[int32]uintptr
  519. FMapInt32Int map[int32]int
  520. FptrMapInt32Int *map[int32]int
  521. FMapInt32Int8 map[int32]int8
  522. FptrMapInt32Int8 *map[int32]int8
  523. FMapInt32Int16 map[int32]int16
  524. FptrMapInt32Int16 *map[int32]int16
  525. FMapInt32Int32 map[int32]int32
  526. FptrMapInt32Int32 *map[int32]int32
  527. FMapInt32Int64 map[int32]int64
  528. FptrMapInt32Int64 *map[int32]int64
  529. FMapInt32Float32 map[int32]float32
  530. FptrMapInt32Float32 *map[int32]float32
  531. FMapInt32Float64 map[int32]float64
  532. FptrMapInt32Float64 *map[int32]float64
  533. FMapInt32Bool map[int32]bool
  534. FptrMapInt32Bool *map[int32]bool
  535. FMapInt64Intf map[int64]interface{}
  536. FptrMapInt64Intf *map[int64]interface{}
  537. FMapInt64String map[int64]string
  538. FptrMapInt64String *map[int64]string
  539. FMapInt64Uint map[int64]uint
  540. FptrMapInt64Uint *map[int64]uint
  541. FMapInt64Uint8 map[int64]uint8
  542. FptrMapInt64Uint8 *map[int64]uint8
  543. FMapInt64Uint16 map[int64]uint16
  544. FptrMapInt64Uint16 *map[int64]uint16
  545. FMapInt64Uint32 map[int64]uint32
  546. FptrMapInt64Uint32 *map[int64]uint32
  547. FMapInt64Uint64 map[int64]uint64
  548. FptrMapInt64Uint64 *map[int64]uint64
  549. FMapInt64Uintptr map[int64]uintptr
  550. FptrMapInt64Uintptr *map[int64]uintptr
  551. FMapInt64Int map[int64]int
  552. FptrMapInt64Int *map[int64]int
  553. FMapInt64Int8 map[int64]int8
  554. FptrMapInt64Int8 *map[int64]int8
  555. FMapInt64Int16 map[int64]int16
  556. FptrMapInt64Int16 *map[int64]int16
  557. FMapInt64Int32 map[int64]int32
  558. FptrMapInt64Int32 *map[int64]int32
  559. FMapInt64Int64 map[int64]int64
  560. FptrMapInt64Int64 *map[int64]int64
  561. FMapInt64Float32 map[int64]float32
  562. FptrMapInt64Float32 *map[int64]float32
  563. FMapInt64Float64 map[int64]float64
  564. FptrMapInt64Float64 *map[int64]float64
  565. FMapInt64Bool map[int64]bool
  566. FptrMapInt64Bool *map[int64]bool
  567. FMapBoolIntf map[bool]interface{}
  568. FptrMapBoolIntf *map[bool]interface{}
  569. FMapBoolString map[bool]string
  570. FptrMapBoolString *map[bool]string
  571. FMapBoolUint map[bool]uint
  572. FptrMapBoolUint *map[bool]uint
  573. FMapBoolUint8 map[bool]uint8
  574. FptrMapBoolUint8 *map[bool]uint8
  575. FMapBoolUint16 map[bool]uint16
  576. FptrMapBoolUint16 *map[bool]uint16
  577. FMapBoolUint32 map[bool]uint32
  578. FptrMapBoolUint32 *map[bool]uint32
  579. FMapBoolUint64 map[bool]uint64
  580. FptrMapBoolUint64 *map[bool]uint64
  581. FMapBoolUintptr map[bool]uintptr
  582. FptrMapBoolUintptr *map[bool]uintptr
  583. FMapBoolInt map[bool]int
  584. FptrMapBoolInt *map[bool]int
  585. FMapBoolInt8 map[bool]int8
  586. FptrMapBoolInt8 *map[bool]int8
  587. FMapBoolInt16 map[bool]int16
  588. FptrMapBoolInt16 *map[bool]int16
  589. FMapBoolInt32 map[bool]int32
  590. FptrMapBoolInt32 *map[bool]int32
  591. FMapBoolInt64 map[bool]int64
  592. FptrMapBoolInt64 *map[bool]int64
  593. FMapBoolFloat32 map[bool]float32
  594. FptrMapBoolFloat32 *map[bool]float32
  595. FMapBoolFloat64 map[bool]float64
  596. FptrMapBoolFloat64 *map[bool]float64
  597. FMapBoolBool map[bool]bool
  598. FptrMapBoolBool *map[bool]bool
  599. }
  600. // -----------
  601. type testMammoth2Binary uint64
  602. func (x testMammoth2Binary) MarshalBinary() (data []byte, err error) {
  603. data = make([]byte, 8)
  604. bigen.PutUint64(data, uint64(x))
  605. return
  606. }
  607. func (x *testMammoth2Binary) UnmarshalBinary(data []byte) (err error) {
  608. *x = testMammoth2Binary(bigen.Uint64(data))
  609. return
  610. }
  611. type testMammoth2Text uint64
  612. func (x testMammoth2Text) MarshalText() (data []byte, err error) {
  613. data = []byte(fmt.Sprintf("%b", uint64(x)))
  614. return
  615. }
  616. func (x *testMammoth2Text) UnmarshalText(data []byte) (err error) {
  617. _, err = fmt.Sscanf(string(data), "%b", (*uint64)(x))
  618. return
  619. }
  620. type testMammoth2Json uint64
  621. func (x testMammoth2Json) MarshalJSON() (data []byte, err error) {
  622. data = []byte(fmt.Sprintf("%v", uint64(x)))
  623. return
  624. }
  625. func (x *testMammoth2Json) UnmarshalJSON(data []byte) (err error) {
  626. _, err = fmt.Sscanf(string(data), "%v", (*uint64)(x))
  627. return
  628. }
  629. type testMammoth2Basic [4]uint64
  630. type TestMammoth2Wrapper struct {
  631. V TestMammoth2
  632. T testMammoth2Text
  633. B testMammoth2Binary
  634. J testMammoth2Json
  635. C testMammoth2Basic
  636. M map[testMammoth2Basic]TestMammoth2
  637. L []TestMammoth2
  638. A [4]int64
  639. }