@eosrio/node-abieos 2.1.0-beta.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (740) hide show
  1. package/README.md +4 -1
  2. package/dist/abieos.node +0 -0
  3. package/lib/abieos.d.ts +19 -0
  4. package/lib/abieos.d.ts.map +1 -0
  5. package/lib/abieos.js +100 -0
  6. package/lib/abieos.ts +107 -0
  7. package/package.json +13 -8
  8. package/.gitmodules +0 -6
  9. package/.idea/misc.xml +0 -6
  10. package/.idea/modules.xml +0 -8
  11. package/.idea/node-abieos.iml +0 -12
  12. package/.idea/vcs.xml +0 -9
  13. package/.idea/workspace.xml +0 -266
  14. package/CMakeLists.txt +0 -35
  15. package/abieos.d.ts +0 -21
  16. package/abieos.js +0 -59
  17. package/eosio.json +0 -1596
  18. package/external/date/CMakeLists.txt +0 -175
  19. package/external/date/LICENSE.txt +0 -31
  20. package/external/date/README.md +0 -61
  21. package/external/date/compile_fail.sh +0 -16
  22. package/external/date/include/date/chrono_io.h +0 -34
  23. package/external/date/include/date/date.h +0 -8335
  24. package/external/date/include/date/ios.h +0 -50
  25. package/external/date/include/date/islamic.h +0 -3031
  26. package/external/date/include/date/iso_week.h +0 -1745
  27. package/external/date/include/date/julian.h +0 -3046
  28. package/external/date/include/date/ptz.h +0 -592
  29. package/external/date/include/date/tz.h +0 -2760
  30. package/external/date/include/date/tz_private.h +0 -318
  31. package/external/date/src/ios.mm +0 -337
  32. package/external/date/src/tz.cpp +0 -3801
  33. package/external/date/test/clock_cast_test/custom_clock.pass.cpp +0 -213
  34. package/external/date/test/clock_cast_test/deprecated.pass.cpp +0 -90
  35. package/external/date/test/clock_cast_test/local_t.pass.cpp +0 -132
  36. package/external/date/test/clock_cast_test/noncastable.pass.cpp +0 -251
  37. package/external/date/test/clock_cast_test/normal_clocks.pass.cpp +0 -102
  38. package/external/date/test/clock_cast_test/to_sys_return_int.fail.cpp +0 -49
  39. package/external/date/test/clock_cast_test/to_sys_return_reference.fail.cpp +0 -51
  40. package/external/date/test/clock_cast_test/to_sys_return_utc_time.fail.cpp +0 -49
  41. package/external/date/test/date_test/day.pass.cpp +0 -143
  42. package/external/date/test/date_test/daypday.fail.cpp +0 -32
  43. package/external/date/test/date_test/daysmday.fail.cpp +0 -32
  44. package/external/date/test/date_test/daysmweekday.fail.cpp +0 -32
  45. package/external/date/test/date_test/detail/decimal_format_seconds.pass.cpp +0 -145
  46. package/external/date/test/date_test/detail/make_precision.pass.cpp +0 -63
  47. package/external/date/test/date_test/detail/static_pow10.pass.cpp +0 -50
  48. package/external/date/test/date_test/detail/width.pass.cpp +0 -64
  49. package/external/date/test/date_test/durations.pass.cpp +0 -62
  50. package/external/date/test/date_test/durations_output.pass.cpp +0 -328
  51. package/external/date/test/date_test/format/century.pass.cpp +0 -117
  52. package/external/date/test/date_test/format/misc.pass.cpp +0 -52
  53. package/external/date/test/date_test/format/range.pass.cpp +0 -78
  54. package/external/date/test/date_test/format/two_dight_year.pass.cpp +0 -121
  55. package/external/date/test/date_test/last.pass.cpp +0 -34
  56. package/external/date/test/date_test/make_time.pass.cpp +0 -164
  57. package/external/date/test/date_test/month.pass.cpp +0 -181
  58. package/external/date/test/date_test/month_day.pass.cpp +0 -82
  59. package/external/date/test/date_test/month_day_last.pass.cpp +0 -75
  60. package/external/date/test/date_test/month_weekday.pass.cpp +0 -77
  61. package/external/date/test/date_test/month_weekday_last.pass.cpp +0 -77
  62. package/external/date/test/date_test/month_weekday_last_less.fail.cpp +0 -34
  63. package/external/date/test/date_test/month_weekday_less.fail.cpp +0 -34
  64. package/external/date/test/date_test/monthpmonth.fail.cpp +0 -32
  65. package/external/date/test/date_test/months_m_year_month.fail.cpp +0 -33
  66. package/external/date/test/date_test/months_m_year_month_day.fail.cpp +0 -33
  67. package/external/date/test/date_test/monthsmmonth.fail.cpp +0 -32
  68. package/external/date/test/date_test/multi_year_duration_addition.pass.cpp +0 -297
  69. package/external/date/test/date_test/op_div_day_day.fail.cpp +0 -33
  70. package/external/date/test/date_test/op_div_int_month.fail.cpp +0 -33
  71. package/external/date/test/date_test/op_div_int_year.fail.cpp +0 -33
  72. package/external/date/test/date_test/op_div_last_last.fail.cpp +0 -33
  73. package/external/date/test/date_test/op_div_month_day.pass.cpp +0 -41
  74. package/external/date/test/date_test/op_div_month_day_last.pass.cpp +0 -39
  75. package/external/date/test/date_test/op_div_month_day_month_day.fail.cpp +0 -33
  76. package/external/date/test/date_test/op_div_month_month.fail.cpp +0 -33
  77. package/external/date/test/date_test/op_div_month_weekday.pass.cpp +0 -39
  78. package/external/date/test/date_test/op_div_month_weekday_last.pass.cpp +0 -39
  79. package/external/date/test/date_test/op_div_month_year.fail.cpp +0 -33
  80. package/external/date/test/date_test/op_div_survey.pass.cpp +0 -437
  81. package/external/date/test/date_test/op_div_weekday_indexed_weekday_indexed.fail.cpp +0 -33
  82. package/external/date/test/date_test/op_div_weekday_last_weekday_last.fail.cpp +0 -33
  83. package/external/date/test/date_test/op_div_year_month.pass.cpp +0 -35
  84. package/external/date/test/date_test/op_div_year_month_day.pass.cpp +0 -43
  85. package/external/date/test/date_test/op_div_year_month_day_last.pass.cpp +0 -41
  86. package/external/date/test/date_test/op_div_year_month_weekday.pass.cpp +0 -41
  87. package/external/date/test/date_test/op_div_year_month_weekday_last.pass.cpp +0 -41
  88. package/external/date/test/date_test/op_div_year_month_year_month.fail.cpp +0 -33
  89. package/external/date/test/date_test/op_div_year_year.fail.cpp +0 -33
  90. package/external/date/test/date_test/parse.pass.cpp +0 -904
  91. package/external/date/test/date_test/sizeof.pass.cpp +0 -62
  92. package/external/date/test/date_test/time_of_day_hours.pass.cpp +0 -104
  93. package/external/date/test/date_test/time_of_day_microfortnights.pass.cpp +0 -119
  94. package/external/date/test/date_test/time_of_day_milliseconds.pass.cpp +0 -126
  95. package/external/date/test/date_test/time_of_day_minutes.pass.cpp +0 -110
  96. package/external/date/test/date_test/time_of_day_nanoseconds.pass.cpp +0 -126
  97. package/external/date/test/date_test/time_of_day_seconds.pass.cpp +0 -116
  98. package/external/date/test/date_test/weekday.pass.cpp +0 -201
  99. package/external/date/test/date_test/weekday_indexed.pass.cpp +0 -70
  100. package/external/date/test/date_test/weekday_last.pass.cpp +0 -66
  101. package/external/date/test/date_test/weekday_lessthan.fail.cpp +0 -32
  102. package/external/date/test/date_test/weekday_sum.fail.cpp +0 -32
  103. package/external/date/test/date_test/year.pass.cpp +0 -146
  104. package/external/date/test/date_test/year_month.pass.cpp +0 -142
  105. package/external/date/test/date_test/year_month_day.pass.cpp +0 -244
  106. package/external/date/test/date_test/year_month_day_last.pass.cpp +0 -177
  107. package/external/date/test/date_test/year_month_day_m_year_month_day.fail.cpp +0 -33
  108. package/external/date/test/date_test/year_month_day_p_year_month_day.fail.cpp +0 -33
  109. package/external/date/test/date_test/year_month_p_year_month.fail.cpp +0 -33
  110. package/external/date/test/date_test/year_month_weekday.pass.cpp +0 -178
  111. package/external/date/test/date_test/year_month_weekday_last.pass.cpp +0 -169
  112. package/external/date/test/date_test/year_p_year.fail.cpp +0 -32
  113. package/external/date/test/date_test/years_m_year.fail.cpp +0 -32
  114. package/external/date/test/date_test/years_m_year_month.fail.cpp +0 -33
  115. package/external/date/test/date_test/years_m_year_month_day.fail.cpp +0 -33
  116. package/external/date/test/iso_week/last.pass.cpp +0 -34
  117. package/external/date/test/iso_week/lastweek_weekday.pass.cpp +0 -82
  118. package/external/date/test/iso_week/op_div_survey.pass.cpp +0 -196
  119. package/external/date/test/iso_week/weekday.pass.cpp +0 -227
  120. package/external/date/test/iso_week/weekday_lessthan.fail.cpp +0 -32
  121. package/external/date/test/iso_week/weekday_sum.fail.cpp +0 -32
  122. package/external/date/test/iso_week/weeknum.pass.cpp +0 -121
  123. package/external/date/test/iso_week/weeknum_p_weeknum.fail.cpp +0 -32
  124. package/external/date/test/iso_week/weeknum_weekday.pass.cpp +0 -86
  125. package/external/date/test/iso_week/year.pass.cpp +0 -120
  126. package/external/date/test/iso_week/year_lastweek.pass.cpp +0 -97
  127. package/external/date/test/iso_week/year_lastweek_weekday.pass.cpp +0 -129
  128. package/external/date/test/iso_week/year_p_year.fail.cpp +0 -32
  129. package/external/date/test/iso_week/year_weeknum.pass.cpp +0 -97
  130. package/external/date/test/iso_week/year_weeknum_weekday.pass.cpp +0 -139
  131. package/external/date/test/iso_week/years_m_year.fail.cpp +0 -32
  132. package/external/date/test/just.pass.cpp +0 -26
  133. package/external/date/test/testit +0 -177
  134. package/external/date/test/tz_test/OffsetZone.pass.cpp +0 -81
  135. package/external/date/test/tz_test/README.md +0 -22
  136. package/external/date/test/tz_test/tzdata2015e.txt.zip +0 -0
  137. package/external/date/test/tz_test/tzdata2015f.txt.zip +0 -0
  138. package/external/date/test/tz_test/tzdata2016c.txt.zip +0 -0
  139. package/external/date/test/tz_test/tzdata2016d.txt.zip +0 -0
  140. package/external/date/test/tz_test/tzdata2016e.txt.zip +0 -0
  141. package/external/date/test/tz_test/tzdata2016f.txt.zip +0 -0
  142. package/external/date/test/tz_test/validate.cpp +0 -165
  143. package/external/date/test/tz_test/zone.pass.cpp +0 -37
  144. package/external/date/test/tz_test/zoned_time.pass.cpp +0 -464
  145. package/external/date/test_fail.sh +0 -10
  146. package/external/rapidjson/.gitattributes +0 -22
  147. package/external/rapidjson/.gitmodules +0 -3
  148. package/external/rapidjson/.travis.yml +0 -99
  149. package/external/rapidjson/CHANGELOG.md +0 -158
  150. package/external/rapidjson/CMakeLists.txt +0 -221
  151. package/external/rapidjson/CMakeModules/FindGTestSrc.cmake +0 -30
  152. package/external/rapidjson/RapidJSON.pc.in +0 -7
  153. package/external/rapidjson/RapidJSONConfig.cmake.in +0 -15
  154. package/external/rapidjson/RapidJSONConfigVersion.cmake.in +0 -10
  155. package/external/rapidjson/appveyor.yml +0 -54
  156. package/external/rapidjson/bin/data/glossary.json +0 -22
  157. package/external/rapidjson/bin/data/menu.json +0 -27
  158. package/external/rapidjson/bin/data/readme.txt +0 -1
  159. package/external/rapidjson/bin/data/sample.json +0 -3315
  160. package/external/rapidjson/bin/data/webapp.json +0 -88
  161. package/external/rapidjson/bin/data/widget.json +0 -26
  162. package/external/rapidjson/bin/encodings/utf16be.json +0 -0
  163. package/external/rapidjson/bin/encodings/utf16bebom.json +0 -0
  164. package/external/rapidjson/bin/encodings/utf16le.json +0 -0
  165. package/external/rapidjson/bin/encodings/utf16lebom.json +0 -0
  166. package/external/rapidjson/bin/encodings/utf32be.json +0 -0
  167. package/external/rapidjson/bin/encodings/utf32bebom.json +0 -0
  168. package/external/rapidjson/bin/encodings/utf32le.json +0 -0
  169. package/external/rapidjson/bin/encodings/utf32lebom.json +0 -0
  170. package/external/rapidjson/bin/encodings/utf8.json +0 -7
  171. package/external/rapidjson/bin/encodings/utf8bom.json +0 -7
  172. package/external/rapidjson/bin/jsonchecker/fail1.json +0 -1
  173. package/external/rapidjson/bin/jsonchecker/fail10.json +0 -1
  174. package/external/rapidjson/bin/jsonchecker/fail11.json +0 -1
  175. package/external/rapidjson/bin/jsonchecker/fail12.json +0 -1
  176. package/external/rapidjson/bin/jsonchecker/fail13.json +0 -1
  177. package/external/rapidjson/bin/jsonchecker/fail14.json +0 -1
  178. package/external/rapidjson/bin/jsonchecker/fail15.json +0 -1
  179. package/external/rapidjson/bin/jsonchecker/fail16.json +0 -1
  180. package/external/rapidjson/bin/jsonchecker/fail17.json +0 -1
  181. package/external/rapidjson/bin/jsonchecker/fail18.json +0 -1
  182. package/external/rapidjson/bin/jsonchecker/fail19.json +0 -1
  183. package/external/rapidjson/bin/jsonchecker/fail2.json +0 -1
  184. package/external/rapidjson/bin/jsonchecker/fail20.json +0 -1
  185. package/external/rapidjson/bin/jsonchecker/fail21.json +0 -1
  186. package/external/rapidjson/bin/jsonchecker/fail22.json +0 -1
  187. package/external/rapidjson/bin/jsonchecker/fail23.json +0 -1
  188. package/external/rapidjson/bin/jsonchecker/fail24.json +0 -1
  189. package/external/rapidjson/bin/jsonchecker/fail25.json +0 -1
  190. package/external/rapidjson/bin/jsonchecker/fail26.json +0 -1
  191. package/external/rapidjson/bin/jsonchecker/fail27.json +0 -2
  192. package/external/rapidjson/bin/jsonchecker/fail28.json +0 -2
  193. package/external/rapidjson/bin/jsonchecker/fail29.json +0 -1
  194. package/external/rapidjson/bin/jsonchecker/fail3.json +0 -1
  195. package/external/rapidjson/bin/jsonchecker/fail30.json +0 -1
  196. package/external/rapidjson/bin/jsonchecker/fail31.json +0 -1
  197. package/external/rapidjson/bin/jsonchecker/fail32.json +0 -1
  198. package/external/rapidjson/bin/jsonchecker/fail33.json +0 -1
  199. package/external/rapidjson/bin/jsonchecker/fail4.json +0 -1
  200. package/external/rapidjson/bin/jsonchecker/fail5.json +0 -1
  201. package/external/rapidjson/bin/jsonchecker/fail6.json +0 -1
  202. package/external/rapidjson/bin/jsonchecker/fail7.json +0 -1
  203. package/external/rapidjson/bin/jsonchecker/fail8.json +0 -1
  204. package/external/rapidjson/bin/jsonchecker/fail9.json +0 -1
  205. package/external/rapidjson/bin/jsonchecker/pass1.json +0 -58
  206. package/external/rapidjson/bin/jsonchecker/pass2.json +0 -1
  207. package/external/rapidjson/bin/jsonchecker/pass3.json +0 -6
  208. package/external/rapidjson/bin/jsonchecker/readme.txt +0 -3
  209. package/external/rapidjson/bin/types/booleans.json +0 -102
  210. package/external/rapidjson/bin/types/floats.json +0 -102
  211. package/external/rapidjson/bin/types/guids.json +0 -102
  212. package/external/rapidjson/bin/types/integers.json +0 -102
  213. package/external/rapidjson/bin/types/mixed.json +0 -592
  214. package/external/rapidjson/bin/types/nulls.json +0 -102
  215. package/external/rapidjson/bin/types/paragraphs.json +0 -102
  216. package/external/rapidjson/bin/types/readme.txt +0 -1
  217. package/external/rapidjson/contrib/natvis/LICENSE +0 -45
  218. package/external/rapidjson/contrib/natvis/README.md +0 -7
  219. package/external/rapidjson/contrib/natvis/rapidjson.natvis +0 -38
  220. package/external/rapidjson/doc/CMakeLists.txt +0 -27
  221. package/external/rapidjson/doc/Doxyfile.in +0 -2369
  222. package/external/rapidjson/doc/Doxyfile.zh-cn.in +0 -2369
  223. package/external/rapidjson/doc/diagram/architecture.dot +0 -50
  224. package/external/rapidjson/doc/diagram/architecture.png +0 -0
  225. package/external/rapidjson/doc/diagram/insituparsing.dot +0 -65
  226. package/external/rapidjson/doc/diagram/insituparsing.png +0 -0
  227. package/external/rapidjson/doc/diagram/iterative-parser-states-diagram.dot +0 -62
  228. package/external/rapidjson/doc/diagram/iterative-parser-states-diagram.png +0 -0
  229. package/external/rapidjson/doc/diagram/move1.dot +0 -47
  230. package/external/rapidjson/doc/diagram/move1.png +0 -0
  231. package/external/rapidjson/doc/diagram/move2.dot +0 -62
  232. package/external/rapidjson/doc/diagram/move2.png +0 -0
  233. package/external/rapidjson/doc/diagram/move3.dot +0 -60
  234. package/external/rapidjson/doc/diagram/move3.png +0 -0
  235. package/external/rapidjson/doc/diagram/normalparsing.dot +0 -56
  236. package/external/rapidjson/doc/diagram/normalparsing.png +0 -0
  237. package/external/rapidjson/doc/diagram/simpledom.dot +0 -54
  238. package/external/rapidjson/doc/diagram/simpledom.png +0 -0
  239. package/external/rapidjson/doc/diagram/tutorial.dot +0 -58
  240. package/external/rapidjson/doc/diagram/tutorial.png +0 -0
  241. package/external/rapidjson/doc/diagram/utilityclass.dot +0 -73
  242. package/external/rapidjson/doc/diagram/utilityclass.png +0 -0
  243. package/external/rapidjson/doc/dom.md +0 -280
  244. package/external/rapidjson/doc/dom.zh-cn.md +0 -284
  245. package/external/rapidjson/doc/encoding.md +0 -146
  246. package/external/rapidjson/doc/encoding.zh-cn.md +0 -152
  247. package/external/rapidjson/doc/faq.md +0 -289
  248. package/external/rapidjson/doc/faq.zh-cn.md +0 -290
  249. package/external/rapidjson/doc/features.md +0 -104
  250. package/external/rapidjson/doc/features.zh-cn.md +0 -103
  251. package/external/rapidjson/doc/internals.md +0 -368
  252. package/external/rapidjson/doc/internals.zh-cn.md +0 -363
  253. package/external/rapidjson/doc/logo/rapidjson.png +0 -0
  254. package/external/rapidjson/doc/logo/rapidjson.svg +0 -119
  255. package/external/rapidjson/doc/misc/DoxygenLayout.xml +0 -194
  256. package/external/rapidjson/doc/misc/doxygenextra.css +0 -274
  257. package/external/rapidjson/doc/misc/footer.html +0 -11
  258. package/external/rapidjson/doc/misc/header.html +0 -24
  259. package/external/rapidjson/doc/npm.md +0 -31
  260. package/external/rapidjson/doc/performance.md +0 -26
  261. package/external/rapidjson/doc/performance.zh-cn.md +0 -26
  262. package/external/rapidjson/doc/pointer.md +0 -234
  263. package/external/rapidjson/doc/pointer.zh-cn.md +0 -234
  264. package/external/rapidjson/doc/sax.md +0 -509
  265. package/external/rapidjson/doc/sax.zh-cn.md +0 -487
  266. package/external/rapidjson/doc/schema.md +0 -505
  267. package/external/rapidjson/doc/schema.zh-cn.md +0 -237
  268. package/external/rapidjson/doc/stream.md +0 -429
  269. package/external/rapidjson/doc/stream.zh-cn.md +0 -429
  270. package/external/rapidjson/doc/tutorial.md +0 -536
  271. package/external/rapidjson/doc/tutorial.zh-cn.md +0 -535
  272. package/external/rapidjson/docker/debian/Dockerfile +0 -8
  273. package/external/rapidjson/example/CMakeLists.txt +0 -45
  274. package/external/rapidjson/example/archiver/archiver.cpp +0 -292
  275. package/external/rapidjson/example/archiver/archiver.h +0 -145
  276. package/external/rapidjson/example/archiver/archivertest.cpp +0 -287
  277. package/external/rapidjson/example/capitalize/capitalize.cpp +0 -67
  278. package/external/rapidjson/example/condense/condense.cpp +0 -32
  279. package/external/rapidjson/example/filterkey/filterkey.cpp +0 -135
  280. package/external/rapidjson/example/filterkeydom/filterkeydom.cpp +0 -170
  281. package/external/rapidjson/example/jsonx/jsonx.cpp +0 -207
  282. package/external/rapidjson/example/lookaheadparser/lookaheadparser.cpp +0 -350
  283. package/external/rapidjson/example/messagereader/messagereader.cpp +0 -105
  284. package/external/rapidjson/example/parsebyparts/parsebyparts.cpp +0 -176
  285. package/external/rapidjson/example/pretty/pretty.cpp +0 -30
  286. package/external/rapidjson/example/prettyauto/prettyauto.cpp +0 -56
  287. package/external/rapidjson/example/schemavalidator/schemavalidator.cpp +0 -78
  288. package/external/rapidjson/example/serialize/serialize.cpp +0 -173
  289. package/external/rapidjson/example/simpledom/simpledom.cpp +0 -29
  290. package/external/rapidjson/example/simplepullreader/simplepullreader.cpp +0 -53
  291. package/external/rapidjson/example/simplereader/simplereader.cpp +0 -42
  292. package/external/rapidjson/example/simplewriter/simplewriter.cpp +0 -36
  293. package/external/rapidjson/example/tutorial/tutorial.cpp +0 -151
  294. package/external/rapidjson/include/rapidjson/allocators.h +0 -284
  295. package/external/rapidjson/include/rapidjson/cursorstreamwrapper.h +0 -78
  296. package/external/rapidjson/include/rapidjson/document.h +0 -2646
  297. package/external/rapidjson/include/rapidjson/encodedstream.h +0 -299
  298. package/external/rapidjson/include/rapidjson/encodings.h +0 -716
  299. package/external/rapidjson/include/rapidjson/error/en.h +0 -74
  300. package/external/rapidjson/include/rapidjson/error/error.h +0 -161
  301. package/external/rapidjson/include/rapidjson/filereadstream.h +0 -99
  302. package/external/rapidjson/include/rapidjson/filewritestream.h +0 -104
  303. package/external/rapidjson/include/rapidjson/fwd.h +0 -151
  304. package/external/rapidjson/include/rapidjson/internal/biginteger.h +0 -290
  305. package/external/rapidjson/include/rapidjson/internal/diyfp.h +0 -271
  306. package/external/rapidjson/include/rapidjson/internal/dtoa.h +0 -245
  307. package/external/rapidjson/include/rapidjson/internal/ieee754.h +0 -78
  308. package/external/rapidjson/include/rapidjson/internal/itoa.h +0 -308
  309. package/external/rapidjson/include/rapidjson/internal/meta.h +0 -186
  310. package/external/rapidjson/include/rapidjson/internal/pow10.h +0 -55
  311. package/external/rapidjson/include/rapidjson/internal/regex.h +0 -732
  312. package/external/rapidjson/include/rapidjson/internal/stack.h +0 -231
  313. package/external/rapidjson/include/rapidjson/internal/strfunc.h +0 -69
  314. package/external/rapidjson/include/rapidjson/internal/strtod.h +0 -290
  315. package/external/rapidjson/include/rapidjson/internal/swap.h +0 -46
  316. package/external/rapidjson/include/rapidjson/istreamwrapper.h +0 -113
  317. package/external/rapidjson/include/rapidjson/memorybuffer.h +0 -70
  318. package/external/rapidjson/include/rapidjson/memorystream.h +0 -71
  319. package/external/rapidjson/include/rapidjson/msinttypes/inttypes.h +0 -316
  320. package/external/rapidjson/include/rapidjson/msinttypes/stdint.h +0 -300
  321. package/external/rapidjson/include/rapidjson/ostreamwrapper.h +0 -81
  322. package/external/rapidjson/include/rapidjson/pointer.h +0 -1357
  323. package/external/rapidjson/include/rapidjson/prettywriter.h +0 -277
  324. package/external/rapidjson/include/rapidjson/rapidjson.h +0 -654
  325. package/external/rapidjson/include/rapidjson/reader.h +0 -2230
  326. package/external/rapidjson/include/rapidjson/schema.h +0 -2494
  327. package/external/rapidjson/include/rapidjson/stream.h +0 -223
  328. package/external/rapidjson/include/rapidjson/stringbuffer.h +0 -121
  329. package/external/rapidjson/include/rapidjson/writer.h +0 -710
  330. package/external/rapidjson/include_dirs.js +0 -2
  331. package/external/rapidjson/library.json +0 -15
  332. package/external/rapidjson/license.txt +0 -57
  333. package/external/rapidjson/package.json +0 -24
  334. package/external/rapidjson/rapidjson.autopkg +0 -77
  335. package/external/rapidjson/readme.md +0 -160
  336. package/external/rapidjson/readme.zh-cn.md +0 -152
  337. package/external/rapidjson/test/CMakeLists.txt +0 -20
  338. package/external/rapidjson/test/perftest/CMakeLists.txt +0 -28
  339. package/external/rapidjson/test/perftest/misctest.cpp +0 -974
  340. package/external/rapidjson/test/perftest/perftest.cpp +0 -24
  341. package/external/rapidjson/test/perftest/perftest.h +0 -185
  342. package/external/rapidjson/test/perftest/platformtest.cpp +0 -166
  343. package/external/rapidjson/test/perftest/rapidjsontest.cpp +0 -472
  344. package/external/rapidjson/test/perftest/schematest.cpp +0 -223
  345. package/external/rapidjson/test/unittest/CMakeLists.txt +0 -92
  346. package/external/rapidjson/test/unittest/allocatorstest.cpp +0 -100
  347. package/external/rapidjson/test/unittest/bigintegertest.cpp +0 -138
  348. package/external/rapidjson/test/unittest/cursorstreamwrappertest.cpp +0 -115
  349. package/external/rapidjson/test/unittest/documenttest.cpp +0 -672
  350. package/external/rapidjson/test/unittest/dtoatest.cpp +0 -98
  351. package/external/rapidjson/test/unittest/encodedstreamtest.cpp +0 -313
  352. package/external/rapidjson/test/unittest/encodingstest.cpp +0 -451
  353. package/external/rapidjson/test/unittest/filestreamtest.cpp +0 -112
  354. package/external/rapidjson/test/unittest/fwdtest.cpp +0 -230
  355. package/external/rapidjson/test/unittest/istreamwrappertest.cpp +0 -181
  356. package/external/rapidjson/test/unittest/itoatest.cpp +0 -160
  357. package/external/rapidjson/test/unittest/jsoncheckertest.cpp +0 -143
  358. package/external/rapidjson/test/unittest/namespacetest.cpp +0 -70
  359. package/external/rapidjson/test/unittest/ostreamwrappertest.cpp +0 -92
  360. package/external/rapidjson/test/unittest/pointertest.cpp +0 -1529
  361. package/external/rapidjson/test/unittest/prettywritertest.cpp +0 -373
  362. package/external/rapidjson/test/unittest/readertest.cpp +0 -2190
  363. package/external/rapidjson/test/unittest/regextest.cpp +0 -638
  364. package/external/rapidjson/test/unittest/schematest.cpp +0 -2072
  365. package/external/rapidjson/test/unittest/simdtest.cpp +0 -219
  366. package/external/rapidjson/test/unittest/strfunctest.cpp +0 -30
  367. package/external/rapidjson/test/unittest/stringbuffertest.cpp +0 -192
  368. package/external/rapidjson/test/unittest/strtodtest.cpp +0 -132
  369. package/external/rapidjson/test/unittest/unittest.cpp +0 -51
  370. package/external/rapidjson/test/unittest/unittest.h +0 -140
  371. package/external/rapidjson/test/unittest/valuetest.cpp +0 -1851
  372. package/external/rapidjson/test/unittest/writertest.cpp +0 -598
  373. package/external/rapidjson/test/valgrind.supp +0 -17
  374. package/external/rapidjson/thirdparty/gtest/.travis.yml +0 -81
  375. package/external/rapidjson/thirdparty/gtest/BUILD.bazel +0 -175
  376. package/external/rapidjson/thirdparty/gtest/CMakeLists.txt +0 -33
  377. package/external/rapidjson/thirdparty/gtest/CONTRIBUTING.md +0 -160
  378. package/external/rapidjson/thirdparty/gtest/LICENSE +0 -28
  379. package/external/rapidjson/thirdparty/gtest/Makefile.am +0 -14
  380. package/external/rapidjson/thirdparty/gtest/README.md +0 -122
  381. package/external/rapidjson/thirdparty/gtest/WORKSPACE +0 -8
  382. package/external/rapidjson/thirdparty/gtest/appveyor.yml +0 -104
  383. package/external/rapidjson/thirdparty/gtest/ci/build-linux-autotools.sh +0 -44
  384. package/external/rapidjson/thirdparty/gtest/ci/build-linux-bazel.sh +0 -36
  385. package/external/rapidjson/thirdparty/gtest/ci/env-linux.sh +0 -41
  386. package/external/rapidjson/thirdparty/gtest/ci/env-osx.sh +0 -40
  387. package/external/rapidjson/thirdparty/gtest/ci/get-nprocessors.sh +0 -48
  388. package/external/rapidjson/thirdparty/gtest/ci/install-linux.sh +0 -49
  389. package/external/rapidjson/thirdparty/gtest/ci/install-osx.sh +0 -39
  390. package/external/rapidjson/thirdparty/gtest/ci/log-config.sh +0 -51
  391. package/external/rapidjson/thirdparty/gtest/ci/travis.sh +0 -44
  392. package/external/rapidjson/thirdparty/gtest/configure.ac +0 -16
  393. package/external/rapidjson/thirdparty/gtest/googlemock/CHANGES +0 -126
  394. package/external/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt +0 -242
  395. package/external/rapidjson/thirdparty/gtest/googlemock/CONTRIBUTORS +0 -40
  396. package/external/rapidjson/thirdparty/gtest/googlemock/LICENSE +0 -28
  397. package/external/rapidjson/thirdparty/gtest/googlemock/Makefile.am +0 -224
  398. package/external/rapidjson/thirdparty/gtest/googlemock/README.md +0 -344
  399. package/external/rapidjson/thirdparty/gtest/googlemock/build-aux/.keep +0 -0
  400. package/external/rapidjson/thirdparty/gtest/googlemock/cmake/gmock.pc.in +0 -9
  401. package/external/rapidjson/thirdparty/gtest/googlemock/cmake/gmock_main.pc.in +0 -9
  402. package/external/rapidjson/thirdparty/gtest/googlemock/configure.ac +0 -146
  403. package/external/rapidjson/thirdparty/gtest/googlemock/docs/CheatSheet.md +0 -564
  404. package/external/rapidjson/thirdparty/gtest/googlemock/docs/CookBook.md +0 -3660
  405. package/external/rapidjson/thirdparty/gtest/googlemock/docs/DesignDoc.md +0 -280
  406. package/external/rapidjson/thirdparty/gtest/googlemock/docs/Documentation.md +0 -15
  407. package/external/rapidjson/thirdparty/gtest/googlemock/docs/ForDummies.md +0 -447
  408. package/external/rapidjson/thirdparty/gtest/googlemock/docs/FrequentlyAskedQuestions.md +0 -627
  409. package/external/rapidjson/thirdparty/gtest/googlemock/docs/KnownIssues.md +0 -19
  410. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-actions.h +0 -1262
  411. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-cardinalities.h +0 -147
  412. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h +0 -2571
  413. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h.pump +0 -833
  414. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h +0 -1379
  415. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +0 -347
  416. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h +0 -2258
  417. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h.pump +0 -675
  418. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h +0 -458
  419. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h.pump +0 -178
  420. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h +0 -5255
  421. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-actions.h +0 -246
  422. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-matchers.h +0 -91
  423. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-spec-builders.h +0 -1918
  424. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock.h +0 -95
  425. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +0 -8
  426. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +0 -10
  427. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-matchers.h +0 -38
  428. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-port.h +0 -46
  429. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h +0 -286
  430. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h.pump +0 -136
  431. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-internal-utils.h +0 -574
  432. package/external/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-port.h +0 -87
  433. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.sln +0 -32
  434. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.vcproj +0 -191
  435. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_config.vsprops +0 -15
  436. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_main.vcproj +0 -187
  437. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_test.vcproj +0 -201
  438. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.sln +0 -46
  439. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.vcxproj +0 -145
  440. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_config.props +0 -19
  441. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_main.vcxproj +0 -151
  442. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_test.vcxproj +0 -176
  443. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.sln +0 -46
  444. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.vcxproj +0 -145
  445. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_config.props +0 -19
  446. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_main.vcxproj +0 -151
  447. package/external/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_test.vcxproj +0 -176
  448. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/fuse_gmock_files.py +0 -240
  449. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/LICENSE +0 -203
  450. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README +0 -34
  451. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README.cppclean +0 -115
  452. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/__init__.py +0 -0
  453. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/ast.py +0 -1733
  454. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class.py +0 -227
  455. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class_test.py +0 -448
  456. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/keywords.py +0 -59
  457. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/tokenize.py +0 -287
  458. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/utils.py +0 -41
  459. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/generator/gmock_gen.py +0 -31
  460. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/gmock-config.in +0 -303
  461. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/gmock_doctor.py +0 -640
  462. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/upload.py +0 -1387
  463. package/external/rapidjson/thirdparty/gtest/googlemock/scripts/upload_gmock.py +0 -78
  464. package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock-all.cc +0 -47
  465. package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock-cardinalities.cc +0 -156
  466. package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock-internal-utils.cc +0 -204
  467. package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock-matchers.cc +0 -573
  468. package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock-spec-builders.cc +0 -883
  469. package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock.cc +0 -205
  470. package/external/rapidjson/thirdparty/gtest/googlemock/src/gmock_main.cc +0 -54
  471. package/external/rapidjson/thirdparty/gtest/googlemock/test/BUILD.bazel +0 -123
  472. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-actions_test.cc +0 -1575
  473. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-cardinalities_test.cc +0 -428
  474. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-actions_test.cc +0 -1230
  475. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-function-mockers_test.cc +0 -647
  476. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-internal-utils_test.cc +0 -129
  477. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-matchers_test.cc +0 -1341
  478. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-internal-utils_test.cc +0 -718
  479. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-matchers_test.cc +0 -6767
  480. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-more-actions_test.cc +0 -710
  481. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-nice-strict_test.cc +0 -511
  482. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-port_test.cc +0 -43
  483. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock-spec-builders_test.cc +0 -2771
  484. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_all_test.cc +0 -51
  485. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_ex_test.cc +0 -81
  486. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test.py +0 -108
  487. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test_.cc +0 -100
  488. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_link2_test.cc +0 -40
  489. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.cc +0 -40
  490. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.h +0 -691
  491. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test.py +0 -183
  492. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_.cc +0 -310
  493. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_golden.txt +0 -317
  494. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_stress_test.cc +0 -323
  495. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_test.cc +0 -262
  496. package/external/rapidjson/thirdparty/gtest/googlemock/test/gmock_test_utils.py +0 -110
  497. package/external/rapidjson/thirdparty/gtest/googletest/CHANGES +0 -157
  498. package/external/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt +0 -312
  499. package/external/rapidjson/thirdparty/gtest/googletest/CONTRIBUTORS +0 -37
  500. package/external/rapidjson/thirdparty/gtest/googletest/LICENSE +0 -28
  501. package/external/rapidjson/thirdparty/gtest/googletest/Makefile.am +0 -339
  502. package/external/rapidjson/thirdparty/gtest/googletest/README.md +0 -341
  503. package/external/rapidjson/thirdparty/gtest/googletest/cmake/gtest.pc.in +0 -9
  504. package/external/rapidjson/thirdparty/gtest/googletest/cmake/gtest_main.pc.in +0 -10
  505. package/external/rapidjson/thirdparty/gtest/googletest/cmake/internal_utils.cmake +0 -280
  506. package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest.cbproj +0 -138
  507. package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest.groupproj +0 -54
  508. package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest_all.cc +0 -38
  509. package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest_link.cc +0 -40
  510. package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest_main.cbproj +0 -82
  511. package/external/rapidjson/thirdparty/gtest/googletest/codegear/gtest_unittest.cbproj +0 -88
  512. package/external/rapidjson/thirdparty/gtest/googletest/configure.ac +0 -68
  513. package/external/rapidjson/thirdparty/gtest/googletest/docs/Pkgconfig.md +0 -146
  514. package/external/rapidjson/thirdparty/gtest/googletest/docs/PumpManual.md +0 -177
  515. package/external/rapidjson/thirdparty/gtest/googletest/docs/XcodeGuide.md +0 -93
  516. package/external/rapidjson/thirdparty/gtest/googletest/docs/advanced.md +0 -2416
  517. package/external/rapidjson/thirdparty/gtest/googletest/docs/faq.md +0 -1092
  518. package/external/rapidjson/thirdparty/gtest/googletest/docs/primer.md +0 -536
  519. package/external/rapidjson/thirdparty/gtest/googletest/docs/samples.md +0 -14
  520. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-death-test.h +0 -342
  521. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-message.h +0 -249
  522. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h +0 -1438
  523. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h.pump +0 -501
  524. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-printers.h +0 -1082
  525. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-spi.h +0 -231
  526. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-test-part.h +0 -179
  527. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-typed-test.h +0 -264
  528. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest.h +0 -2332
  529. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_pred_impl.h +0 -357
  530. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_prod.h +0 -61
  531. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-port.h +0 -70
  532. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-printers.h +0 -42
  533. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest.h +0 -45
  534. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h +0 -275
  535. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-filepath.h +0 -205
  536. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-internal.h +0 -1277
  537. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-linked_ptr.h +0 -243
  538. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h +0 -5139
  539. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +0 -279
  540. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util.h +0 -723
  541. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port-arch.h +0 -100
  542. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port.h +0 -2687
  543. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-string.h +0 -167
  544. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h +0 -1020
  545. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h.pump +0 -347
  546. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h +0 -3347
  547. package/external/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h.pump +0 -313
  548. package/external/rapidjson/thirdparty/gtest/googletest/m4/acx_pthread.m4 +0 -363
  549. package/external/rapidjson/thirdparty/gtest/googletest/m4/gtest.m4 +0 -74
  550. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.sln +0 -55
  551. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.vcxproj +0 -149
  552. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.vcxproj.filters +0 -18
  553. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.sln +0 -55
  554. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.vcxproj +0 -149
  555. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.vcxproj.filters +0 -18
  556. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main-md.vcxproj +0 -154
  557. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main-md.vcxproj.filters +0 -18
  558. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main.vcxproj +0 -162
  559. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main.vcxproj.filters +0 -18
  560. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test-md.vcxproj +0 -199
  561. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test-md.vcxproj.filters +0 -26
  562. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test.vcxproj +0 -191
  563. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test.vcxproj.filters +0 -26
  564. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest-md.vcxproj +0 -188
  565. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest-md.vcxproj.filters +0 -18
  566. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest.vcxproj +0 -180
  567. package/external/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest.vcxproj.filters +0 -18
  568. package/external/rapidjson/thirdparty/gtest/googletest/samples/prime_tables.h +0 -127
  569. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample1.cc +0 -68
  570. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample1.h +0 -43
  571. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample10_unittest.cc +0 -140
  572. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample1_unittest.cc +0 -154
  573. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample2.cc +0 -56
  574. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample2.h +0 -85
  575. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample2_unittest.cc +0 -110
  576. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample3-inl.h +0 -172
  577. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample3_unittest.cc +0 -152
  578. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample4.cc +0 -46
  579. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample4.h +0 -53
  580. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample4_unittest.cc +0 -49
  581. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample5_unittest.cc +0 -199
  582. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample6_unittest.cc +0 -225
  583. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample7_unittest.cc +0 -118
  584. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample8_unittest.cc +0 -174
  585. package/external/rapidjson/thirdparty/gtest/googletest/samples/sample9_unittest.cc +0 -157
  586. package/external/rapidjson/thirdparty/gtest/googletest/scripts/common.py +0 -83
  587. package/external/rapidjson/thirdparty/gtest/googletest/scripts/fuse_gtest_files.py +0 -253
  588. package/external/rapidjson/thirdparty/gtest/googletest/scripts/gen_gtest_pred_impl.py +0 -730
  589. package/external/rapidjson/thirdparty/gtest/googletest/scripts/gtest-config.in +0 -274
  590. package/external/rapidjson/thirdparty/gtest/googletest/scripts/pump.py +0 -855
  591. package/external/rapidjson/thirdparty/gtest/googletest/scripts/release_docs.py +0 -158
  592. package/external/rapidjson/thirdparty/gtest/googletest/scripts/upload.py +0 -1387
  593. package/external/rapidjson/thirdparty/gtest/googletest/scripts/upload_gtest.py +0 -78
  594. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-all.cc +0 -48
  595. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-death-test.cc +0 -1536
  596. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-filepath.cc +0 -385
  597. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-internal-inl.h +0 -1175
  598. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-port.cc +0 -1277
  599. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-printers.cc +0 -458
  600. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-test-part.cc +0 -102
  601. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest-typed-test.cc +0 -119
  602. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest.cc +0 -5846
  603. package/external/rapidjson/thirdparty/gtest/googletest/src/gtest_main.cc +0 -38
  604. package/external/rapidjson/thirdparty/gtest/googletest/test/BUILD.bazel +0 -396
  605. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_ex_test.cc +0 -93
  606. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_test.cc +0 -1424
  607. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-filepath_test.cc +0 -652
  608. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-linked_ptr_test.cc +0 -154
  609. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-listener_test.cc +0 -311
  610. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-message_test.cc +0 -159
  611. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-options_test.cc +0 -213
  612. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test2_test.cc +0 -61
  613. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.cc +0 -1110
  614. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.h +0 -53
  615. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-port_test.cc +0 -1303
  616. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-printers_test.cc +0 -1737
  617. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-test-part_test.cc +0 -208
  618. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-tuple_test.cc +0 -320
  619. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test2_test.cc +0 -45
  620. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.cc +0 -380
  621. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.h +0 -66
  622. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest-unittest-api_test.cc +0 -341
  623. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_all_test.cc +0 -47
  624. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_assert_by_exception_test.cc +0 -119
  625. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest.py +0 -210
  626. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest_.cc +0 -87
  627. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test.py +0 -235
  628. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test_.cc +0 -311
  629. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test.py +0 -129
  630. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test_.cc +0 -63
  631. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test.py +0 -119
  632. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test_.cc +0 -124
  633. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_environment_test.cc +0 -189
  634. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest.py +0 -638
  635. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest_.cc +0 -138
  636. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test.py +0 -172
  637. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test_.cc +0 -46
  638. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_json_outfiles_test.py +0 -162
  639. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_json_output_unittest.py +0 -611
  640. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_json_test_utils.py +0 -60
  641. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest.py +0 -207
  642. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest_.cc +0 -157
  643. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_main_unittest.cc +0 -45
  644. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_no_test_unittest.cc +0 -56
  645. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test.py +0 -344
  646. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_.cc +0 -1067
  647. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_golden_lin.txt +0 -781
  648. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_pred_impl_unittest.cc +0 -2427
  649. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_premature_exit_test.cc +0 -127
  650. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_prod_test.cc +0 -57
  651. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_repeat_test.cc +0 -236
  652. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test.py +0 -325
  653. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test_.cc +0 -103
  654. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_sole_header_test.cc +0 -57
  655. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_stress_test.cc +0 -250
  656. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_test_utils.py +0 -318
  657. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_testbridge_test.py +0 -65
  658. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_testbridge_test_.cc +0 -44
  659. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_ex_test.cc +0 -92
  660. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test.py +0 -171
  661. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test_.cc +0 -72
  662. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test.py +0 -69
  663. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test_.cc +0 -43
  664. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_unittest.cc +0 -7797
  665. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile1_test_.cc +0 -48
  666. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile2_test_.cc +0 -48
  667. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfiles_test.py +0 -140
  668. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest.py +0 -378
  669. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest_.cc +0 -179
  670. package/external/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_test_utils.py +0 -196
  671. package/external/rapidjson/thirdparty/gtest/googletest/test/production.cc +0 -36
  672. package/external/rapidjson/thirdparty/gtest/googletest/test/production.h +0 -55
  673. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/DebugProject.xcconfig +0 -30
  674. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/FrameworkTarget.xcconfig +0 -17
  675. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/General.xcconfig +0 -41
  676. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/ReleaseProject.xcconfig +0 -32
  677. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/StaticLibraryTarget.xcconfig +0 -18
  678. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Config/TestTarget.xcconfig +0 -8
  679. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Resources/Info.plist +0 -30
  680. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/Info.plist +0 -28
  681. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj +0 -457
  682. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/runtests.sh +0 -62
  683. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.cc +0 -63
  684. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.h +0 -59
  685. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget_test.cc +0 -68
  686. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/runtests.sh +0 -65
  687. package/external/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/versiongenerate.py +0 -100
  688. package/external/rapidjson/thirdparty/gtest/googletest/xcode/gtest.xcodeproj/project.pbxproj +0 -1182
  689. package/external/rapidjson/travis-doxygen.sh +0 -121
  690. package/include/.clang-format +0 -76
  691. package/include/eosio/abi.hpp +0 -286
  692. package/include/eosio/asset.hpp +0 -458
  693. package/include/eosio/bytes.hpp +0 -27
  694. package/include/eosio/chain_conversions.hpp +0 -450
  695. package/include/eosio/chain_types.hpp +0 -14
  696. package/include/eosio/check.hpp +0 -178
  697. package/include/eosio/convert.hpp +0 -95
  698. package/include/eosio/crypto.hpp +0 -147
  699. package/include/eosio/eosio_outcome.hpp +0 -41
  700. package/include/eosio/fixed_bytes.hpp +0 -246
  701. package/include/eosio/float.hpp +0 -35
  702. package/include/eosio/for_each_field.hpp +0 -48
  703. package/include/eosio/fpconv.c +0 -336
  704. package/include/eosio/fpconv.h +0 -41
  705. package/include/eosio/fpconv.license +0 -23
  706. package/include/eosio/from_bin.hpp +0 -272
  707. package/include/eosio/from_json.hpp +0 -737
  708. package/include/eosio/from_string.hpp +0 -28
  709. package/include/eosio/map_macro.h +0 -64
  710. package/include/eosio/murmur.hpp +0 -55
  711. package/include/eosio/name.hpp +0 -174
  712. package/include/eosio/opaque.hpp +0 -108
  713. package/include/eosio/operators.hpp +0 -71
  714. package/include/eosio/powers.h +0 -76
  715. package/include/eosio/reflection.hpp +0 -61
  716. package/include/eosio/ship_protocol.hpp +0 -850
  717. package/include/eosio/stream.hpp +0 -231
  718. package/include/eosio/symbol.hpp +0 -300
  719. package/include/eosio/time.hpp +0 -264
  720. package/include/eosio/to_bin.hpp +0 -189
  721. package/include/eosio/to_json.hpp +0 -279
  722. package/include/eosio/to_key.hpp +0 -298
  723. package/include/eosio/types.hpp +0 -97
  724. package/include/eosio/varint.hpp +0 -452
  725. package/include/outcome-basic.hpp +0 -6836
  726. package/src/abi.cpp +0 -297
  727. package/src/abieos.cpp +0 -263
  728. package/src/abieos.h +0 -76
  729. package/src/abieos.hpp +0 -1010
  730. package/src/abieos_exception.hpp +0 -89
  731. package/src/abieos_numeric.hpp +0 -94
  732. package/src/abieos_ripemd160.hpp +0 -417
  733. package/src/crypto.cpp +0 -215
  734. package/src/key_test.cpp +0 -218
  735. package/src/main.cpp +0 -242
  736. package/src/reflect_test.cpp +0 -28
  737. package/src/template_test.cpp +0 -240
  738. package/src/test.cpp +0 -940
  739. package/tools/CMakeLists.txt +0 -9
  740. package/tools/name.cpp +0 -86
@@ -1,1110 +0,0 @@
1
- // Copyright 2008, Google Inc.
2
- // All rights reserved.
3
- //
4
- // Redistribution and use in source and binary forms, with or without
5
- // modification, are permitted provided that the following conditions are
6
- // met:
7
- //
8
- // * Redistributions of source code must retain the above copyright
9
- // notice, this list of conditions and the following disclaimer.
10
- // * Redistributions in binary form must reproduce the above
11
- // copyright notice, this list of conditions and the following disclaimer
12
- // in the documentation and/or other materials provided with the
13
- // distribution.
14
- // * Neither the name of Google Inc. nor the names of its
15
- // contributors may be used to endorse or promote products derived from
16
- // this software without specific prior written permission.
17
- //
18
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- //
30
- // Author: vladl@google.com (Vlad Losev)
31
- //
32
- // Tests for Google Test itself. This file verifies that the parameter
33
- // generators objects produce correct parameter sequences and that
34
- // Google Test runtime instantiates correct tests from those sequences.
35
-
36
- #include "gtest/gtest.h"
37
-
38
- # include <algorithm>
39
- # include <iostream>
40
- # include <list>
41
- # include <sstream>
42
- # include <string>
43
- # include <vector>
44
-
45
- # include "src/gtest-internal-inl.h" // for UnitTestOptions
46
- # include "test/gtest-param-test_test.h"
47
-
48
- using ::std::vector;
49
- using ::std::sort;
50
-
51
- using ::testing::AddGlobalTestEnvironment;
52
- using ::testing::Bool;
53
- using ::testing::Message;
54
- using ::testing::Range;
55
- using ::testing::TestWithParam;
56
- using ::testing::Values;
57
- using ::testing::ValuesIn;
58
-
59
- # if GTEST_HAS_COMBINE
60
- using ::testing::Combine;
61
- using ::testing::get;
62
- using ::testing::make_tuple;
63
- using ::testing::tuple;
64
- # endif // GTEST_HAS_COMBINE
65
-
66
- using ::testing::internal::ParamGenerator;
67
- using ::testing::internal::UnitTestOptions;
68
-
69
- // Prints a value to a string.
70
- //
71
- // TODO(wan@google.com): remove PrintValue() when we move matchers and
72
- // EXPECT_THAT() from Google Mock to Google Test. At that time, we
73
- // can write EXPECT_THAT(x, Eq(y)) to compare two tuples x and y, as
74
- // EXPECT_THAT() and the matchers know how to print tuples.
75
- template <typename T>
76
- ::std::string PrintValue(const T& value) {
77
- ::std::stringstream stream;
78
- stream << value;
79
- return stream.str();
80
- }
81
-
82
- # if GTEST_HAS_COMBINE
83
-
84
- // These overloads allow printing tuples in our tests. We cannot
85
- // define an operator<< for tuples, as that definition needs to be in
86
- // the std namespace in order to be picked up by Google Test via
87
- // Argument-Dependent Lookup, yet defining anything in the std
88
- // namespace in non-STL code is undefined behavior.
89
-
90
- template <typename T1, typename T2>
91
- ::std::string PrintValue(const tuple<T1, T2>& value) {
92
- ::std::stringstream stream;
93
- stream << "(" << get<0>(value) << ", " << get<1>(value) << ")";
94
- return stream.str();
95
- }
96
-
97
- template <typename T1, typename T2, typename T3>
98
- ::std::string PrintValue(const tuple<T1, T2, T3>& value) {
99
- ::std::stringstream stream;
100
- stream << "(" << get<0>(value) << ", " << get<1>(value)
101
- << ", "<< get<2>(value) << ")";
102
- return stream.str();
103
- }
104
-
105
- template <typename T1, typename T2, typename T3, typename T4, typename T5,
106
- typename T6, typename T7, typename T8, typename T9, typename T10>
107
- ::std::string PrintValue(
108
- const tuple<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>& value) {
109
- ::std::stringstream stream;
110
- stream << "(" << get<0>(value) << ", " << get<1>(value)
111
- << ", "<< get<2>(value) << ", " << get<3>(value)
112
- << ", "<< get<4>(value) << ", " << get<5>(value)
113
- << ", "<< get<6>(value) << ", " << get<7>(value)
114
- << ", "<< get<8>(value) << ", " << get<9>(value) << ")";
115
- return stream.str();
116
- }
117
-
118
- # endif // GTEST_HAS_COMBINE
119
-
120
- // Verifies that a sequence generated by the generator and accessed
121
- // via the iterator object matches the expected one using Google Test
122
- // assertions.
123
- template <typename T, size_t N>
124
- void VerifyGenerator(const ParamGenerator<T>& generator,
125
- const T (&expected_values)[N]) {
126
- typename ParamGenerator<T>::iterator it = generator.begin();
127
- for (size_t i = 0; i < N; ++i) {
128
- ASSERT_FALSE(it == generator.end())
129
- << "At element " << i << " when accessing via an iterator "
130
- << "created with the copy constructor.\n";
131
- // We cannot use EXPECT_EQ() here as the values may be tuples,
132
- // which don't support <<.
133
- EXPECT_TRUE(expected_values[i] == *it)
134
- << "where i is " << i
135
- << ", expected_values[i] is " << PrintValue(expected_values[i])
136
- << ", *it is " << PrintValue(*it)
137
- << ", and 'it' is an iterator created with the copy constructor.\n";
138
- ++it;
139
- }
140
- EXPECT_TRUE(it == generator.end())
141
- << "At the presumed end of sequence when accessing via an iterator "
142
- << "created with the copy constructor.\n";
143
-
144
- // Test the iterator assignment. The following lines verify that
145
- // the sequence accessed via an iterator initialized via the
146
- // assignment operator (as opposed to a copy constructor) matches
147
- // just the same.
148
- it = generator.begin();
149
- for (size_t i = 0; i < N; ++i) {
150
- ASSERT_FALSE(it == generator.end())
151
- << "At element " << i << " when accessing via an iterator "
152
- << "created with the assignment operator.\n";
153
- EXPECT_TRUE(expected_values[i] == *it)
154
- << "where i is " << i
155
- << ", expected_values[i] is " << PrintValue(expected_values[i])
156
- << ", *it is " << PrintValue(*it)
157
- << ", and 'it' is an iterator created with the copy constructor.\n";
158
- ++it;
159
- }
160
- EXPECT_TRUE(it == generator.end())
161
- << "At the presumed end of sequence when accessing via an iterator "
162
- << "created with the assignment operator.\n";
163
- }
164
-
165
- template <typename T>
166
- void VerifyGeneratorIsEmpty(const ParamGenerator<T>& generator) {
167
- typename ParamGenerator<T>::iterator it = generator.begin();
168
- EXPECT_TRUE(it == generator.end());
169
-
170
- it = generator.begin();
171
- EXPECT_TRUE(it == generator.end());
172
- }
173
-
174
- // Generator tests. They test that each of the provided generator functions
175
- // generates an expected sequence of values. The general test pattern
176
- // instantiates a generator using one of the generator functions,
177
- // checks the sequence produced by the generator using its iterator API,
178
- // and then resets the iterator back to the beginning of the sequence
179
- // and checks the sequence again.
180
-
181
- // Tests that iterators produced by generator functions conform to the
182
- // ForwardIterator concept.
183
- TEST(IteratorTest, ParamIteratorConformsToForwardIteratorConcept) {
184
- const ParamGenerator<int> gen = Range(0, 10);
185
- ParamGenerator<int>::iterator it = gen.begin();
186
-
187
- // Verifies that iterator initialization works as expected.
188
- ParamGenerator<int>::iterator it2 = it;
189
- EXPECT_TRUE(*it == *it2) << "Initialized iterators must point to the "
190
- << "element same as its source points to";
191
-
192
- // Verifies that iterator assignment works as expected.
193
- ++it;
194
- EXPECT_FALSE(*it == *it2);
195
- it2 = it;
196
- EXPECT_TRUE(*it == *it2) << "Assigned iterators must point to the "
197
- << "element same as its source points to";
198
-
199
- // Verifies that prefix operator++() returns *this.
200
- EXPECT_EQ(&it, &(++it)) << "Result of the prefix operator++ must be "
201
- << "refer to the original object";
202
-
203
- // Verifies that the result of the postfix operator++ points to the value
204
- // pointed to by the original iterator.
205
- int original_value = *it; // Have to compute it outside of macro call to be
206
- // unaffected by the parameter evaluation order.
207
- EXPECT_EQ(original_value, *(it++));
208
-
209
- // Verifies that prefix and postfix operator++() advance an iterator
210
- // all the same.
211
- it2 = it;
212
- ++it;
213
- ++it2;
214
- EXPECT_TRUE(*it == *it2);
215
- }
216
-
217
- // Tests that Range() generates the expected sequence.
218
- TEST(RangeTest, IntRangeWithDefaultStep) {
219
- const ParamGenerator<int> gen = Range(0, 3);
220
- const int expected_values[] = {0, 1, 2};
221
- VerifyGenerator(gen, expected_values);
222
- }
223
-
224
- // Edge case. Tests that Range() generates the single element sequence
225
- // as expected when provided with range limits that are equal.
226
- TEST(RangeTest, IntRangeSingleValue) {
227
- const ParamGenerator<int> gen = Range(0, 1);
228
- const int expected_values[] = {0};
229
- VerifyGenerator(gen, expected_values);
230
- }
231
-
232
- // Edge case. Tests that Range() with generates empty sequence when
233
- // supplied with an empty range.
234
- TEST(RangeTest, IntRangeEmpty) {
235
- const ParamGenerator<int> gen = Range(0, 0);
236
- VerifyGeneratorIsEmpty(gen);
237
- }
238
-
239
- // Tests that Range() with custom step (greater then one) generates
240
- // the expected sequence.
241
- TEST(RangeTest, IntRangeWithCustomStep) {
242
- const ParamGenerator<int> gen = Range(0, 9, 3);
243
- const int expected_values[] = {0, 3, 6};
244
- VerifyGenerator(gen, expected_values);
245
- }
246
-
247
- // Tests that Range() with custom step (greater then one) generates
248
- // the expected sequence when the last element does not fall on the
249
- // upper range limit. Sequences generated by Range() must not have
250
- // elements beyond the range limits.
251
- TEST(RangeTest, IntRangeWithCustomStepOverUpperBound) {
252
- const ParamGenerator<int> gen = Range(0, 4, 3);
253
- const int expected_values[] = {0, 3};
254
- VerifyGenerator(gen, expected_values);
255
- }
256
-
257
- // Verifies that Range works with user-defined types that define
258
- // copy constructor, operator=(), operator+(), and operator<().
259
- class DogAdder {
260
- public:
261
- explicit DogAdder(const char* a_value) : value_(a_value) {}
262
- DogAdder(const DogAdder& other) : value_(other.value_.c_str()) {}
263
-
264
- DogAdder operator=(const DogAdder& other) {
265
- if (this != &other)
266
- value_ = other.value_;
267
- return *this;
268
- }
269
- DogAdder operator+(const DogAdder& other) const {
270
- Message msg;
271
- msg << value_.c_str() << other.value_.c_str();
272
- return DogAdder(msg.GetString().c_str());
273
- }
274
- bool operator<(const DogAdder& other) const {
275
- return value_ < other.value_;
276
- }
277
- const std::string& value() const { return value_; }
278
-
279
- private:
280
- std::string value_;
281
- };
282
-
283
- TEST(RangeTest, WorksWithACustomType) {
284
- const ParamGenerator<DogAdder> gen =
285
- Range(DogAdder("cat"), DogAdder("catdogdog"), DogAdder("dog"));
286
- ParamGenerator<DogAdder>::iterator it = gen.begin();
287
-
288
- ASSERT_FALSE(it == gen.end());
289
- EXPECT_STREQ("cat", it->value().c_str());
290
-
291
- ASSERT_FALSE(++it == gen.end());
292
- EXPECT_STREQ("catdog", it->value().c_str());
293
-
294
- EXPECT_TRUE(++it == gen.end());
295
- }
296
-
297
- class IntWrapper {
298
- public:
299
- explicit IntWrapper(int a_value) : value_(a_value) {}
300
- IntWrapper(const IntWrapper& other) : value_(other.value_) {}
301
-
302
- IntWrapper operator=(const IntWrapper& other) {
303
- value_ = other.value_;
304
- return *this;
305
- }
306
- // operator+() adds a different type.
307
- IntWrapper operator+(int other) const { return IntWrapper(value_ + other); }
308
- bool operator<(const IntWrapper& other) const {
309
- return value_ < other.value_;
310
- }
311
- int value() const { return value_; }
312
-
313
- private:
314
- int value_;
315
- };
316
-
317
- TEST(RangeTest, WorksWithACustomTypeWithDifferentIncrementType) {
318
- const ParamGenerator<IntWrapper> gen = Range(IntWrapper(0), IntWrapper(2));
319
- ParamGenerator<IntWrapper>::iterator it = gen.begin();
320
-
321
- ASSERT_FALSE(it == gen.end());
322
- EXPECT_EQ(0, it->value());
323
-
324
- ASSERT_FALSE(++it == gen.end());
325
- EXPECT_EQ(1, it->value());
326
-
327
- EXPECT_TRUE(++it == gen.end());
328
- }
329
-
330
- // Tests that ValuesIn() with an array parameter generates
331
- // the expected sequence.
332
- TEST(ValuesInTest, ValuesInArray) {
333
- int array[] = {3, 5, 8};
334
- const ParamGenerator<int> gen = ValuesIn(array);
335
- VerifyGenerator(gen, array);
336
- }
337
-
338
- // Tests that ValuesIn() with a const array parameter generates
339
- // the expected sequence.
340
- TEST(ValuesInTest, ValuesInConstArray) {
341
- const int array[] = {3, 5, 8};
342
- const ParamGenerator<int> gen = ValuesIn(array);
343
- VerifyGenerator(gen, array);
344
- }
345
-
346
- // Edge case. Tests that ValuesIn() with an array parameter containing a
347
- // single element generates the single element sequence.
348
- TEST(ValuesInTest, ValuesInSingleElementArray) {
349
- int array[] = {42};
350
- const ParamGenerator<int> gen = ValuesIn(array);
351
- VerifyGenerator(gen, array);
352
- }
353
-
354
- // Tests that ValuesIn() generates the expected sequence for an STL
355
- // container (vector).
356
- TEST(ValuesInTest, ValuesInVector) {
357
- typedef ::std::vector<int> ContainerType;
358
- ContainerType values;
359
- values.push_back(3);
360
- values.push_back(5);
361
- values.push_back(8);
362
- const ParamGenerator<int> gen = ValuesIn(values);
363
-
364
- const int expected_values[] = {3, 5, 8};
365
- VerifyGenerator(gen, expected_values);
366
- }
367
-
368
- // Tests that ValuesIn() generates the expected sequence.
369
- TEST(ValuesInTest, ValuesInIteratorRange) {
370
- typedef ::std::vector<int> ContainerType;
371
- ContainerType values;
372
- values.push_back(3);
373
- values.push_back(5);
374
- values.push_back(8);
375
- const ParamGenerator<int> gen = ValuesIn(values.begin(), values.end());
376
-
377
- const int expected_values[] = {3, 5, 8};
378
- VerifyGenerator(gen, expected_values);
379
- }
380
-
381
- // Edge case. Tests that ValuesIn() provided with an iterator range specifying a
382
- // single value generates a single-element sequence.
383
- TEST(ValuesInTest, ValuesInSingleElementIteratorRange) {
384
- typedef ::std::vector<int> ContainerType;
385
- ContainerType values;
386
- values.push_back(42);
387
- const ParamGenerator<int> gen = ValuesIn(values.begin(), values.end());
388
-
389
- const int expected_values[] = {42};
390
- VerifyGenerator(gen, expected_values);
391
- }
392
-
393
- // Edge case. Tests that ValuesIn() provided with an empty iterator range
394
- // generates an empty sequence.
395
- TEST(ValuesInTest, ValuesInEmptyIteratorRange) {
396
- typedef ::std::vector<int> ContainerType;
397
- ContainerType values;
398
- const ParamGenerator<int> gen = ValuesIn(values.begin(), values.end());
399
-
400
- VerifyGeneratorIsEmpty(gen);
401
- }
402
-
403
- // Tests that the Values() generates the expected sequence.
404
- TEST(ValuesTest, ValuesWorks) {
405
- const ParamGenerator<int> gen = Values(3, 5, 8);
406
-
407
- const int expected_values[] = {3, 5, 8};
408
- VerifyGenerator(gen, expected_values);
409
- }
410
-
411
- // Tests that Values() generates the expected sequences from elements of
412
- // different types convertible to ParamGenerator's parameter type.
413
- TEST(ValuesTest, ValuesWorksForValuesOfCompatibleTypes) {
414
- const ParamGenerator<double> gen = Values(3, 5.0f, 8.0);
415
-
416
- const double expected_values[] = {3.0, 5.0, 8.0};
417
- VerifyGenerator(gen, expected_values);
418
- }
419
-
420
- TEST(ValuesTest, ValuesWorksForMaxLengthList) {
421
- const ParamGenerator<int> gen = Values(
422
- 10, 20, 30, 40, 50, 60, 70, 80, 90, 100,
423
- 110, 120, 130, 140, 150, 160, 170, 180, 190, 200,
424
- 210, 220, 230, 240, 250, 260, 270, 280, 290, 300,
425
- 310, 320, 330, 340, 350, 360, 370, 380, 390, 400,
426
- 410, 420, 430, 440, 450, 460, 470, 480, 490, 500);
427
-
428
- const int expected_values[] = {
429
- 10, 20, 30, 40, 50, 60, 70, 80, 90, 100,
430
- 110, 120, 130, 140, 150, 160, 170, 180, 190, 200,
431
- 210, 220, 230, 240, 250, 260, 270, 280, 290, 300,
432
- 310, 320, 330, 340, 350, 360, 370, 380, 390, 400,
433
- 410, 420, 430, 440, 450, 460, 470, 480, 490, 500};
434
- VerifyGenerator(gen, expected_values);
435
- }
436
-
437
- // Edge case test. Tests that single-parameter Values() generates the sequence
438
- // with the single value.
439
- TEST(ValuesTest, ValuesWithSingleParameter) {
440
- const ParamGenerator<int> gen = Values(42);
441
-
442
- const int expected_values[] = {42};
443
- VerifyGenerator(gen, expected_values);
444
- }
445
-
446
- // Tests that Bool() generates sequence (false, true).
447
- TEST(BoolTest, BoolWorks) {
448
- const ParamGenerator<bool> gen = Bool();
449
-
450
- const bool expected_values[] = {false, true};
451
- VerifyGenerator(gen, expected_values);
452
- }
453
-
454
- # if GTEST_HAS_COMBINE
455
-
456
- // Tests that Combine() with two parameters generates the expected sequence.
457
- TEST(CombineTest, CombineWithTwoParameters) {
458
- const char* foo = "foo";
459
- const char* bar = "bar";
460
- const ParamGenerator<tuple<const char*, int> > gen =
461
- Combine(Values(foo, bar), Values(3, 4));
462
-
463
- tuple<const char*, int> expected_values[] = {
464
- make_tuple(foo, 3), make_tuple(foo, 4),
465
- make_tuple(bar, 3), make_tuple(bar, 4)};
466
- VerifyGenerator(gen, expected_values);
467
- }
468
-
469
- // Tests that Combine() with three parameters generates the expected sequence.
470
- TEST(CombineTest, CombineWithThreeParameters) {
471
- const ParamGenerator<tuple<int, int, int> > gen = Combine(Values(0, 1),
472
- Values(3, 4),
473
- Values(5, 6));
474
- tuple<int, int, int> expected_values[] = {
475
- make_tuple(0, 3, 5), make_tuple(0, 3, 6),
476
- make_tuple(0, 4, 5), make_tuple(0, 4, 6),
477
- make_tuple(1, 3, 5), make_tuple(1, 3, 6),
478
- make_tuple(1, 4, 5), make_tuple(1, 4, 6)};
479
- VerifyGenerator(gen, expected_values);
480
- }
481
-
482
- // Tests that the Combine() with the first parameter generating a single value
483
- // sequence generates a sequence with the number of elements equal to the
484
- // number of elements in the sequence generated by the second parameter.
485
- TEST(CombineTest, CombineWithFirstParameterSingleValue) {
486
- const ParamGenerator<tuple<int, int> > gen = Combine(Values(42),
487
- Values(0, 1));
488
-
489
- tuple<int, int> expected_values[] = {make_tuple(42, 0), make_tuple(42, 1)};
490
- VerifyGenerator(gen, expected_values);
491
- }
492
-
493
- // Tests that the Combine() with the second parameter generating a single value
494
- // sequence generates a sequence with the number of elements equal to the
495
- // number of elements in the sequence generated by the first parameter.
496
- TEST(CombineTest, CombineWithSecondParameterSingleValue) {
497
- const ParamGenerator<tuple<int, int> > gen = Combine(Values(0, 1),
498
- Values(42));
499
-
500
- tuple<int, int> expected_values[] = {make_tuple(0, 42), make_tuple(1, 42)};
501
- VerifyGenerator(gen, expected_values);
502
- }
503
-
504
- // Tests that when the first parameter produces an empty sequence,
505
- // Combine() produces an empty sequence, too.
506
- TEST(CombineTest, CombineWithFirstParameterEmptyRange) {
507
- const ParamGenerator<tuple<int, int> > gen = Combine(Range(0, 0),
508
- Values(0, 1));
509
- VerifyGeneratorIsEmpty(gen);
510
- }
511
-
512
- // Tests that when the second parameter produces an empty sequence,
513
- // Combine() produces an empty sequence, too.
514
- TEST(CombineTest, CombineWithSecondParameterEmptyRange) {
515
- const ParamGenerator<tuple<int, int> > gen = Combine(Values(0, 1),
516
- Range(1, 1));
517
- VerifyGeneratorIsEmpty(gen);
518
- }
519
-
520
- // Edge case. Tests that combine works with the maximum number
521
- // of parameters supported by Google Test (currently 10).
522
- TEST(CombineTest, CombineWithMaxNumberOfParameters) {
523
- const char* foo = "foo";
524
- const char* bar = "bar";
525
- const ParamGenerator<tuple<const char*, int, int, int, int, int, int, int,
526
- int, int> > gen = Combine(Values(foo, bar),
527
- Values(1), Values(2),
528
- Values(3), Values(4),
529
- Values(5), Values(6),
530
- Values(7), Values(8),
531
- Values(9));
532
-
533
- tuple<const char*, int, int, int, int, int, int, int, int, int>
534
- expected_values[] = {make_tuple(foo, 1, 2, 3, 4, 5, 6, 7, 8, 9),
535
- make_tuple(bar, 1, 2, 3, 4, 5, 6, 7, 8, 9)};
536
- VerifyGenerator(gen, expected_values);
537
- }
538
-
539
- #if GTEST_LANG_CXX11
540
-
541
- class NonDefaultConstructAssignString {
542
- public:
543
- NonDefaultConstructAssignString(const std::string& s) : str_(s) {}
544
-
545
- const std::string& str() const { return str_; }
546
-
547
- private:
548
- std::string str_;
549
-
550
- // Not default constructible
551
- NonDefaultConstructAssignString();
552
- // Not assignable
553
- void operator=(const NonDefaultConstructAssignString&);
554
- };
555
-
556
- TEST(CombineTest, NonDefaultConstructAssign) {
557
- const ParamGenerator<tuple<int, NonDefaultConstructAssignString> > gen =
558
- Combine(Values(0, 1), Values(NonDefaultConstructAssignString("A"),
559
- NonDefaultConstructAssignString("B")));
560
-
561
- ParamGenerator<tuple<int, NonDefaultConstructAssignString> >::iterator it =
562
- gen.begin();
563
-
564
- EXPECT_EQ(0, std::get<0>(*it));
565
- EXPECT_EQ("A", std::get<1>(*it).str());
566
- ++it;
567
-
568
- EXPECT_EQ(0, std::get<0>(*it));
569
- EXPECT_EQ("B", std::get<1>(*it).str());
570
- ++it;
571
-
572
- EXPECT_EQ(1, std::get<0>(*it));
573
- EXPECT_EQ("A", std::get<1>(*it).str());
574
- ++it;
575
-
576
- EXPECT_EQ(1, std::get<0>(*it));
577
- EXPECT_EQ("B", std::get<1>(*it).str());
578
- ++it;
579
-
580
- EXPECT_TRUE(it == gen.end());
581
- }
582
-
583
- #endif // GTEST_LANG_CXX11
584
- # endif // GTEST_HAS_COMBINE
585
-
586
- // Tests that an generator produces correct sequence after being
587
- // assigned from another generator.
588
- TEST(ParamGeneratorTest, AssignmentWorks) {
589
- ParamGenerator<int> gen = Values(1, 2);
590
- const ParamGenerator<int> gen2 = Values(3, 4);
591
- gen = gen2;
592
-
593
- const int expected_values[] = {3, 4};
594
- VerifyGenerator(gen, expected_values);
595
- }
596
-
597
- // This test verifies that the tests are expanded and run as specified:
598
- // one test per element from the sequence produced by the generator
599
- // specified in INSTANTIATE_TEST_CASE_P. It also verifies that the test's
600
- // fixture constructor, SetUp(), and TearDown() have run and have been
601
- // supplied with the correct parameters.
602
-
603
- // The use of environment object allows detection of the case where no test
604
- // case functionality is run at all. In this case TestCaseTearDown will not
605
- // be able to detect missing tests, naturally.
606
- template <int kExpectedCalls>
607
- class TestGenerationEnvironment : public ::testing::Environment {
608
- public:
609
- static TestGenerationEnvironment* Instance() {
610
- static TestGenerationEnvironment* instance = new TestGenerationEnvironment;
611
- return instance;
612
- }
613
-
614
- void FixtureConstructorExecuted() { fixture_constructor_count_++; }
615
- void SetUpExecuted() { set_up_count_++; }
616
- void TearDownExecuted() { tear_down_count_++; }
617
- void TestBodyExecuted() { test_body_count_++; }
618
-
619
- virtual void TearDown() {
620
- // If all MultipleTestGenerationTest tests have been de-selected
621
- // by the filter flag, the following checks make no sense.
622
- bool perform_check = false;
623
-
624
- for (int i = 0; i < kExpectedCalls; ++i) {
625
- Message msg;
626
- msg << "TestsExpandedAndRun/" << i;
627
- if (UnitTestOptions::FilterMatchesTest(
628
- "TestExpansionModule/MultipleTestGenerationTest",
629
- msg.GetString().c_str())) {
630
- perform_check = true;
631
- }
632
- }
633
- if (perform_check) {
634
- EXPECT_EQ(kExpectedCalls, fixture_constructor_count_)
635
- << "Fixture constructor of ParamTestGenerationTest test case "
636
- << "has not been run as expected.";
637
- EXPECT_EQ(kExpectedCalls, set_up_count_)
638
- << "Fixture SetUp method of ParamTestGenerationTest test case "
639
- << "has not been run as expected.";
640
- EXPECT_EQ(kExpectedCalls, tear_down_count_)
641
- << "Fixture TearDown method of ParamTestGenerationTest test case "
642
- << "has not been run as expected.";
643
- EXPECT_EQ(kExpectedCalls, test_body_count_)
644
- << "Test in ParamTestGenerationTest test case "
645
- << "has not been run as expected.";
646
- }
647
- }
648
-
649
- private:
650
- TestGenerationEnvironment() : fixture_constructor_count_(0), set_up_count_(0),
651
- tear_down_count_(0), test_body_count_(0) {}
652
-
653
- int fixture_constructor_count_;
654
- int set_up_count_;
655
- int tear_down_count_;
656
- int test_body_count_;
657
-
658
- GTEST_DISALLOW_COPY_AND_ASSIGN_(TestGenerationEnvironment);
659
- };
660
-
661
- const int test_generation_params[] = {36, 42, 72};
662
-
663
- class TestGenerationTest : public TestWithParam<int> {
664
- public:
665
- enum {
666
- PARAMETER_COUNT =
667
- sizeof(test_generation_params)/sizeof(test_generation_params[0])
668
- };
669
-
670
- typedef TestGenerationEnvironment<PARAMETER_COUNT> Environment;
671
-
672
- TestGenerationTest() {
673
- Environment::Instance()->FixtureConstructorExecuted();
674
- current_parameter_ = GetParam();
675
- }
676
- virtual void SetUp() {
677
- Environment::Instance()->SetUpExecuted();
678
- EXPECT_EQ(current_parameter_, GetParam());
679
- }
680
- virtual void TearDown() {
681
- Environment::Instance()->TearDownExecuted();
682
- EXPECT_EQ(current_parameter_, GetParam());
683
- }
684
-
685
- static void SetUpTestCase() {
686
- bool all_tests_in_test_case_selected = true;
687
-
688
- for (int i = 0; i < PARAMETER_COUNT; ++i) {
689
- Message test_name;
690
- test_name << "TestsExpandedAndRun/" << i;
691
- if ( !UnitTestOptions::FilterMatchesTest(
692
- "TestExpansionModule/MultipleTestGenerationTest",
693
- test_name.GetString())) {
694
- all_tests_in_test_case_selected = false;
695
- }
696
- }
697
- EXPECT_TRUE(all_tests_in_test_case_selected)
698
- << "When running the TestGenerationTest test case all of its tests\n"
699
- << "must be selected by the filter flag for the test case to pass.\n"
700
- << "If not all of them are enabled, we can't reliably conclude\n"
701
- << "that the correct number of tests have been generated.";
702
-
703
- collected_parameters_.clear();
704
- }
705
-
706
- static void TearDownTestCase() {
707
- vector<int> expected_values(test_generation_params,
708
- test_generation_params + PARAMETER_COUNT);
709
- // Test execution order is not guaranteed by Google Test,
710
- // so the order of values in collected_parameters_ can be
711
- // different and we have to sort to compare.
712
- sort(expected_values.begin(), expected_values.end());
713
- sort(collected_parameters_.begin(), collected_parameters_.end());
714
-
715
- EXPECT_TRUE(collected_parameters_ == expected_values);
716
- }
717
-
718
- protected:
719
- int current_parameter_;
720
- static vector<int> collected_parameters_;
721
-
722
- private:
723
- GTEST_DISALLOW_COPY_AND_ASSIGN_(TestGenerationTest);
724
- };
725
- vector<int> TestGenerationTest::collected_parameters_;
726
-
727
- TEST_P(TestGenerationTest, TestsExpandedAndRun) {
728
- Environment::Instance()->TestBodyExecuted();
729
- EXPECT_EQ(current_parameter_, GetParam());
730
- collected_parameters_.push_back(GetParam());
731
- }
732
- INSTANTIATE_TEST_CASE_P(TestExpansionModule, TestGenerationTest,
733
- ValuesIn(test_generation_params));
734
-
735
- // This test verifies that the element sequence (third parameter of
736
- // INSTANTIATE_TEST_CASE_P) is evaluated in InitGoogleTest() and neither at
737
- // the call site of INSTANTIATE_TEST_CASE_P nor in RUN_ALL_TESTS(). For
738
- // that, we declare param_value_ to be a static member of
739
- // GeneratorEvaluationTest and initialize it to 0. We set it to 1 in
740
- // main(), just before invocation of InitGoogleTest(). After calling
741
- // InitGoogleTest(), we set the value to 2. If the sequence is evaluated
742
- // before or after InitGoogleTest, INSTANTIATE_TEST_CASE_P will create a
743
- // test with parameter other than 1, and the test body will fail the
744
- // assertion.
745
- class GeneratorEvaluationTest : public TestWithParam<int> {
746
- public:
747
- static int param_value() { return param_value_; }
748
- static void set_param_value(int param_value) { param_value_ = param_value; }
749
-
750
- private:
751
- static int param_value_;
752
- };
753
- int GeneratorEvaluationTest::param_value_ = 0;
754
-
755
- TEST_P(GeneratorEvaluationTest, GeneratorsEvaluatedInMain) {
756
- EXPECT_EQ(1, GetParam());
757
- }
758
- INSTANTIATE_TEST_CASE_P(GenEvalModule,
759
- GeneratorEvaluationTest,
760
- Values(GeneratorEvaluationTest::param_value()));
761
-
762
- // Tests that generators defined in a different translation unit are
763
- // functional. Generator extern_gen is defined in gtest-param-test_test2.cc.
764
- extern ParamGenerator<int> extern_gen;
765
- class ExternalGeneratorTest : public TestWithParam<int> {};
766
- TEST_P(ExternalGeneratorTest, ExternalGenerator) {
767
- // Sequence produced by extern_gen contains only a single value
768
- // which we verify here.
769
- EXPECT_EQ(GetParam(), 33);
770
- }
771
- INSTANTIATE_TEST_CASE_P(ExternalGeneratorModule,
772
- ExternalGeneratorTest,
773
- extern_gen);
774
-
775
- // Tests that a parameterized test case can be defined in one translation
776
- // unit and instantiated in another. This test will be instantiated in
777
- // gtest-param-test_test2.cc. ExternalInstantiationTest fixture class is
778
- // defined in gtest-param-test_test.h.
779
- TEST_P(ExternalInstantiationTest, IsMultipleOf33) {
780
- EXPECT_EQ(0, GetParam() % 33);
781
- }
782
-
783
- // Tests that a parameterized test case can be instantiated with multiple
784
- // generators.
785
- class MultipleInstantiationTest : public TestWithParam<int> {};
786
- TEST_P(MultipleInstantiationTest, AllowsMultipleInstances) {
787
- }
788
- INSTANTIATE_TEST_CASE_P(Sequence1, MultipleInstantiationTest, Values(1, 2));
789
- INSTANTIATE_TEST_CASE_P(Sequence2, MultipleInstantiationTest, Range(3, 5));
790
-
791
- // Tests that a parameterized test case can be instantiated
792
- // in multiple translation units. This test will be instantiated
793
- // here and in gtest-param-test_test2.cc.
794
- // InstantiationInMultipleTranslationUnitsTest fixture class
795
- // is defined in gtest-param-test_test.h.
796
- TEST_P(InstantiationInMultipleTranslaionUnitsTest, IsMultipleOf42) {
797
- EXPECT_EQ(0, GetParam() % 42);
798
- }
799
- INSTANTIATE_TEST_CASE_P(Sequence1,
800
- InstantiationInMultipleTranslaionUnitsTest,
801
- Values(42, 42*2));
802
-
803
- // Tests that each iteration of parameterized test runs in a separate test
804
- // object.
805
- class SeparateInstanceTest : public TestWithParam<int> {
806
- public:
807
- SeparateInstanceTest() : count_(0) {}
808
-
809
- static void TearDownTestCase() {
810
- EXPECT_GE(global_count_, 2)
811
- << "If some (but not all) SeparateInstanceTest tests have been "
812
- << "filtered out this test will fail. Make sure that all "
813
- << "GeneratorEvaluationTest are selected or de-selected together "
814
- << "by the test filter.";
815
- }
816
-
817
- protected:
818
- int count_;
819
- static int global_count_;
820
- };
821
- int SeparateInstanceTest::global_count_ = 0;
822
-
823
- TEST_P(SeparateInstanceTest, TestsRunInSeparateInstances) {
824
- EXPECT_EQ(0, count_++);
825
- global_count_++;
826
- }
827
- INSTANTIATE_TEST_CASE_P(FourElemSequence, SeparateInstanceTest, Range(1, 4));
828
-
829
- // Tests that all instantiations of a test have named appropriately. Test
830
- // defined with TEST_P(TestCaseName, TestName) and instantiated with
831
- // INSTANTIATE_TEST_CASE_P(SequenceName, TestCaseName, generator) must be named
832
- // SequenceName/TestCaseName.TestName/i, where i is the 0-based index of the
833
- // sequence element used to instantiate the test.
834
- class NamingTest : public TestWithParam<int> {};
835
-
836
- TEST_P(NamingTest, TestsReportCorrectNamesAndParameters) {
837
- const ::testing::TestInfo* const test_info =
838
- ::testing::UnitTest::GetInstance()->current_test_info();
839
-
840
- EXPECT_STREQ("ZeroToFiveSequence/NamingTest", test_info->test_case_name());
841
-
842
- Message index_stream;
843
- index_stream << "TestsReportCorrectNamesAndParameters/" << GetParam();
844
- EXPECT_STREQ(index_stream.GetString().c_str(), test_info->name());
845
-
846
- EXPECT_EQ(::testing::PrintToString(GetParam()), test_info->value_param());
847
- }
848
-
849
- INSTANTIATE_TEST_CASE_P(ZeroToFiveSequence, NamingTest, Range(0, 5));
850
-
851
- // Tests that macros in test names are expanded correctly.
852
- class MacroNamingTest : public TestWithParam<int> {};
853
-
854
- #define PREFIX_WITH_FOO(test_name) Foo##test_name
855
- #define PREFIX_WITH_MACRO(test_name) Macro##test_name
856
-
857
- TEST_P(PREFIX_WITH_MACRO(NamingTest), PREFIX_WITH_FOO(SomeTestName)) {
858
- const ::testing::TestInfo* const test_info =
859
- ::testing::UnitTest::GetInstance()->current_test_info();
860
-
861
- EXPECT_STREQ("FortyTwo/MacroNamingTest", test_info->test_case_name());
862
- EXPECT_STREQ("FooSomeTestName", test_info->name());
863
- }
864
-
865
- INSTANTIATE_TEST_CASE_P(FortyTwo, MacroNamingTest, Values(42));
866
-
867
- // Tests the same thing for non-parametrized tests.
868
- class MacroNamingTestNonParametrized : public ::testing::Test {};
869
-
870
- TEST_F(PREFIX_WITH_MACRO(NamingTestNonParametrized),
871
- PREFIX_WITH_FOO(SomeTestName)) {
872
- const ::testing::TestInfo* const test_info =
873
- ::testing::UnitTest::GetInstance()->current_test_info();
874
-
875
- EXPECT_STREQ("MacroNamingTestNonParametrized", test_info->test_case_name());
876
- EXPECT_STREQ("FooSomeTestName", test_info->name());
877
- }
878
-
879
- // Tests that user supplied custom parameter names are working correctly.
880
- // Runs the test with a builtin helper method which uses PrintToString,
881
- // as well as a custom function and custom functor to ensure all possible
882
- // uses work correctly.
883
- class CustomFunctorNamingTest : public TestWithParam<std::string> {};
884
- TEST_P(CustomFunctorNamingTest, CustomTestNames) {}
885
-
886
- struct CustomParamNameFunctor {
887
- std::string operator()(const ::testing::TestParamInfo<std::string>& inf) {
888
- return inf.param;
889
- }
890
- };
891
-
892
- INSTANTIATE_TEST_CASE_P(CustomParamNameFunctor,
893
- CustomFunctorNamingTest,
894
- Values(std::string("FunctorName")),
895
- CustomParamNameFunctor());
896
-
897
- INSTANTIATE_TEST_CASE_P(AllAllowedCharacters,
898
- CustomFunctorNamingTest,
899
- Values("abcdefghijklmnopqrstuvwxyz",
900
- "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
901
- "01234567890_"),
902
- CustomParamNameFunctor());
903
-
904
- inline std::string CustomParamNameFunction(
905
- const ::testing::TestParamInfo<std::string>& inf) {
906
- return inf.param;
907
- }
908
-
909
- class CustomFunctionNamingTest : public TestWithParam<std::string> {};
910
- TEST_P(CustomFunctionNamingTest, CustomTestNames) {}
911
-
912
- INSTANTIATE_TEST_CASE_P(CustomParamNameFunction,
913
- CustomFunctionNamingTest,
914
- Values(std::string("FunctionName")),
915
- CustomParamNameFunction);
916
-
917
- #if GTEST_LANG_CXX11
918
-
919
- // Test custom naming with a lambda
920
-
921
- class CustomLambdaNamingTest : public TestWithParam<std::string> {};
922
- TEST_P(CustomLambdaNamingTest, CustomTestNames) {}
923
-
924
- INSTANTIATE_TEST_CASE_P(CustomParamNameLambda, CustomLambdaNamingTest,
925
- Values(std::string("LambdaName")),
926
- [](const ::testing::TestParamInfo<std::string>& inf) {
927
- return inf.param;
928
- });
929
-
930
- #endif // GTEST_LANG_CXX11
931
-
932
- TEST(CustomNamingTest, CheckNameRegistry) {
933
- ::testing::UnitTest* unit_test = ::testing::UnitTest::GetInstance();
934
- std::set<std::string> test_names;
935
- for (int case_num = 0;
936
- case_num < unit_test->total_test_case_count();
937
- ++case_num) {
938
- const ::testing::TestCase* test_case = unit_test->GetTestCase(case_num);
939
- for (int test_num = 0;
940
- test_num < test_case->total_test_count();
941
- ++test_num) {
942
- const ::testing::TestInfo* test_info = test_case->GetTestInfo(test_num);
943
- test_names.insert(std::string(test_info->name()));
944
- }
945
- }
946
- EXPECT_EQ(1u, test_names.count("CustomTestNames/FunctorName"));
947
- EXPECT_EQ(1u, test_names.count("CustomTestNames/FunctionName"));
948
- #if GTEST_LANG_CXX11
949
- EXPECT_EQ(1u, test_names.count("CustomTestNames/LambdaName"));
950
- #endif // GTEST_LANG_CXX11
951
- }
952
-
953
- // Test a numeric name to ensure PrintToStringParamName works correctly.
954
-
955
- class CustomIntegerNamingTest : public TestWithParam<int> {};
956
-
957
- TEST_P(CustomIntegerNamingTest, TestsReportCorrectNames) {
958
- const ::testing::TestInfo* const test_info =
959
- ::testing::UnitTest::GetInstance()->current_test_info();
960
- Message test_name_stream;
961
- test_name_stream << "TestsReportCorrectNames/" << GetParam();
962
- EXPECT_STREQ(test_name_stream.GetString().c_str(), test_info->name());
963
- }
964
-
965
- INSTANTIATE_TEST_CASE_P(PrintToString,
966
- CustomIntegerNamingTest,
967
- Range(0, 5),
968
- ::testing::PrintToStringParamName());
969
-
970
- // Test a custom struct with PrintToString.
971
-
972
- struct CustomStruct {
973
- explicit CustomStruct(int value) : x(value) {}
974
- int x;
975
- };
976
-
977
- std::ostream& operator<<(std::ostream& stream, const CustomStruct& val) {
978
- stream << val.x;
979
- return stream;
980
- }
981
-
982
- class CustomStructNamingTest : public TestWithParam<CustomStruct> {};
983
-
984
- TEST_P(CustomStructNamingTest, TestsReportCorrectNames) {
985
- const ::testing::TestInfo* const test_info =
986
- ::testing::UnitTest::GetInstance()->current_test_info();
987
- Message test_name_stream;
988
- test_name_stream << "TestsReportCorrectNames/" << GetParam();
989
- EXPECT_STREQ(test_name_stream.GetString().c_str(), test_info->name());
990
- }
991
-
992
- INSTANTIATE_TEST_CASE_P(PrintToString,
993
- CustomStructNamingTest,
994
- Values(CustomStruct(0), CustomStruct(1)),
995
- ::testing::PrintToStringParamName());
996
-
997
- // Test that using a stateful parameter naming function works as expected.
998
-
999
- struct StatefulNamingFunctor {
1000
- StatefulNamingFunctor() : sum(0) {}
1001
- std::string operator()(const ::testing::TestParamInfo<int>& info) {
1002
- int value = info.param + sum;
1003
- sum += info.param;
1004
- return ::testing::PrintToString(value);
1005
- }
1006
- int sum;
1007
- };
1008
-
1009
- class StatefulNamingTest : public ::testing::TestWithParam<int> {
1010
- protected:
1011
- StatefulNamingTest() : sum_(0) {}
1012
- int sum_;
1013
- };
1014
-
1015
- TEST_P(StatefulNamingTest, TestsReportCorrectNames) {
1016
- const ::testing::TestInfo* const test_info =
1017
- ::testing::UnitTest::GetInstance()->current_test_info();
1018
- sum_ += GetParam();
1019
- Message test_name_stream;
1020
- test_name_stream << "TestsReportCorrectNames/" << sum_;
1021
- EXPECT_STREQ(test_name_stream.GetString().c_str(), test_info->name());
1022
- }
1023
-
1024
- INSTANTIATE_TEST_CASE_P(StatefulNamingFunctor,
1025
- StatefulNamingTest,
1026
- Range(0, 5),
1027
- StatefulNamingFunctor());
1028
-
1029
- // Class that cannot be streamed into an ostream. It needs to be copyable
1030
- // (and, in case of MSVC, also assignable) in order to be a test parameter
1031
- // type. Its default copy constructor and assignment operator do exactly
1032
- // what we need.
1033
- class Unstreamable {
1034
- public:
1035
- explicit Unstreamable(int value) : value_(value) {}
1036
-
1037
- private:
1038
- int value_;
1039
- };
1040
-
1041
- class CommentTest : public TestWithParam<Unstreamable> {};
1042
-
1043
- TEST_P(CommentTest, TestsCorrectlyReportUnstreamableParams) {
1044
- const ::testing::TestInfo* const test_info =
1045
- ::testing::UnitTest::GetInstance()->current_test_info();
1046
-
1047
- EXPECT_EQ(::testing::PrintToString(GetParam()), test_info->value_param());
1048
- }
1049
-
1050
- INSTANTIATE_TEST_CASE_P(InstantiationWithComments,
1051
- CommentTest,
1052
- Values(Unstreamable(1)));
1053
-
1054
- // Verify that we can create a hierarchy of test fixtures, where the base
1055
- // class fixture is not parameterized and the derived class is. In this case
1056
- // ParameterizedDerivedTest inherits from NonParameterizedBaseTest. We
1057
- // perform simple tests on both.
1058
- class NonParameterizedBaseTest : public ::testing::Test {
1059
- public:
1060
- NonParameterizedBaseTest() : n_(17) { }
1061
- protected:
1062
- int n_;
1063
- };
1064
-
1065
- class ParameterizedDerivedTest : public NonParameterizedBaseTest,
1066
- public ::testing::WithParamInterface<int> {
1067
- protected:
1068
- ParameterizedDerivedTest() : count_(0) { }
1069
- int count_;
1070
- static int global_count_;
1071
- };
1072
-
1073
- int ParameterizedDerivedTest::global_count_ = 0;
1074
-
1075
- TEST_F(NonParameterizedBaseTest, FixtureIsInitialized) {
1076
- EXPECT_EQ(17, n_);
1077
- }
1078
-
1079
- TEST_P(ParameterizedDerivedTest, SeesSequence) {
1080
- EXPECT_EQ(17, n_);
1081
- EXPECT_EQ(0, count_++);
1082
- EXPECT_EQ(GetParam(), global_count_++);
1083
- }
1084
-
1085
- class ParameterizedDeathTest : public ::testing::TestWithParam<int> { };
1086
-
1087
- TEST_F(ParameterizedDeathTest, GetParamDiesFromTestF) {
1088
- EXPECT_DEATH_IF_SUPPORTED(GetParam(),
1089
- ".* value-parameterized test .*");
1090
- }
1091
-
1092
- INSTANTIATE_TEST_CASE_P(RangeZeroToFive, ParameterizedDerivedTest, Range(0, 5));
1093
-
1094
-
1095
- int main(int argc, char **argv) {
1096
- // Used in TestGenerationTest test case.
1097
- AddGlobalTestEnvironment(TestGenerationTest::Environment::Instance());
1098
- // Used in GeneratorEvaluationTest test case. Tests that the updated value
1099
- // will be picked up for instantiating tests in GeneratorEvaluationTest.
1100
- GeneratorEvaluationTest::set_param_value(1);
1101
-
1102
- ::testing::InitGoogleTest(&argc, argv);
1103
-
1104
- // Used in GeneratorEvaluationTest test case. Tests that value updated
1105
- // here will NOT be used for instantiating tests in
1106
- // GeneratorEvaluationTest.
1107
- GeneratorEvaluationTest::set_param_value(2);
1108
-
1109
- return RUN_ALL_TESTS();
1110
- }