mammoth2_generated_test.go 24 KB

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