mammoth2_generated_test.go 24 KB

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