@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,1092 +0,0 @@
1
-
2
-
3
- If you cannot find the answer to your question here, and you have read
4
- [Primer](primer.md) and [AdvancedGuide](advanced.md), send it to
5
- googletestframework@googlegroups.com.
6
-
7
- ## Why should I use Google Test instead of my favorite C++ testing framework? ##
8
-
9
- First, let us say clearly that we don't want to get into the debate of
10
- which C++ testing framework is **the best**. There exist many fine
11
- frameworks for writing C++ tests, and we have tremendous respect for
12
- the developers and users of them. We don't think there is (or will
13
- be) a single best framework - you have to pick the right tool for the
14
- particular task you are tackling.
15
-
16
- We created Google Test because we couldn't find the right combination
17
- of features and conveniences in an existing framework to satisfy _our_
18
- needs. The following is a list of things that _we_ like about Google
19
- Test. We don't claim them to be unique to Google Test - rather, the
20
- combination of them makes Google Test the choice for us. We hope this
21
- list can help you decide whether it is for you too.
22
-
23
- * Google Test is designed to be portable: it doesn't require exceptions or RTTI; it works around various bugs in various compilers and environments; etc. As a result, it works on Linux, Mac OS X, Windows and several embedded operating systems.
24
- * Nonfatal assertions (`EXPECT_*`) have proven to be great time savers, as they allow a test to report multiple failures in a single edit-compile-test cycle.
25
- * It's easy to write assertions that generate informative messages: you just use the stream syntax to append any additional information, e.g. `ASSERT_EQ(5, Foo(i)) << " where i = " << i;`. It doesn't require a new set of macros or special functions.
26
- * Google Test automatically detects your tests and doesn't require you to enumerate them in order to run them.
27
- * Death tests are pretty handy for ensuring that your asserts in production code are triggered by the right conditions.
28
- * `SCOPED_TRACE` helps you understand the context of an assertion failure when it comes from inside a sub-routine or loop.
29
- * You can decide which tests to run using name patterns. This saves time when you want to quickly reproduce a test failure.
30
- * Google Test can generate XML test result reports that can be parsed by popular continuous build system like Hudson.
31
- * Simple things are easy in Google Test, while hard things are possible: in addition to advanced features like [global test environments](advanced.md#global-set-up-and-tear-down) and tests parameterized by [values](advanced.md#value-parameterized-tests) or [types](docs/advanced.md#typed-tests), Google Test supports various ways for the user to extend the framework -- if Google Test doesn't do something out of the box, chances are that a user can implement the feature using Google Test's public API, without changing Google Test itself. In particular, you can:
32
- * expand your testing vocabulary by defining [custom predicates](advanced.md#predicate-assertions-for-better-error-messages),
33
- * teach Google Test how to [print your types](advanced.md#teaching-google-test-how-to-print-your-values),
34
- * define your own testing macros or utilities and verify them using Google Test's [Service Provider Interface](advanced.md#catching-failures), and
35
- * reflect on the test cases or change the test output format by intercepting the [test events](advanced.md#extending-google-test-by-handling-test-events).
36
-
37
- ## I'm getting warnings when compiling Google Test. Would you fix them? ##
38
-
39
- We strive to minimize compiler warnings Google Test generates. Before releasing a new version, we test to make sure that it doesn't generate warnings when compiled using its CMake script on Windows, Linux, and Mac OS.
40
-
41
- Unfortunately, this doesn't mean you are guaranteed to see no warnings when compiling Google Test in your environment:
42
-
43
- * You may be using a different compiler as we use, or a different version of the same compiler. We cannot possibly test for all compilers.
44
- * You may be compiling on a different platform as we do.
45
- * Your project may be using different compiler flags as we do.
46
-
47
- It is not always possible to make Google Test warning-free for everyone. Or, it may not be desirable if the warning is rarely enabled and fixing the violations makes the code more complex.
48
-
49
- If you see warnings when compiling Google Test, we suggest that you use the `-isystem` flag (assuming your are using GCC) to mark Google Test headers as system headers. That'll suppress warnings from Google Test headers.
50
-
51
- ## Why should not test case names and test names contain underscore? ##
52
-
53
- Underscore (`_`) is special, as C++ reserves the following to be used by
54
- the compiler and the standard library:
55
-
56
- 1. any identifier that starts with an `_` followed by an upper-case letter, and
57
- 1. any identifier that contains two consecutive underscores (i.e. `__`) _anywhere_ in its name.
58
-
59
- User code is _prohibited_ from using such identifiers.
60
-
61
- Now let's look at what this means for `TEST` and `TEST_F`.
62
-
63
- Currently `TEST(TestCaseName, TestName)` generates a class named
64
- `TestCaseName_TestName_Test`. What happens if `TestCaseName` or `TestName`
65
- contains `_`?
66
-
67
- 1. If `TestCaseName` starts with an `_` followed by an upper-case letter (say, `_Foo`), we end up with `_Foo_TestName_Test`, which is reserved and thus invalid.
68
- 1. If `TestCaseName` ends with an `_` (say, `Foo_`), we get `Foo__TestName_Test`, which is invalid.
69
- 1. If `TestName` starts with an `_` (say, `_Bar`), we get `TestCaseName__Bar_Test`, which is invalid.
70
- 1. If `TestName` ends with an `_` (say, `Bar_`), we get `TestCaseName_Bar__Test`, which is invalid.
71
-
72
- So clearly `TestCaseName` and `TestName` cannot start or end with `_`
73
- (Actually, `TestCaseName` can start with `_` -- as long as the `_` isn't
74
- followed by an upper-case letter. But that's getting complicated. So
75
- for simplicity we just say that it cannot start with `_`.).
76
-
77
- It may seem fine for `TestCaseName` and `TestName` to contain `_` in the
78
- middle. However, consider this:
79
- ```c++
80
- TEST(Time, Flies_Like_An_Arrow) { ... }
81
- TEST(Time_Flies, Like_An_Arrow) { ... }
82
- ```
83
-
84
- Now, the two `TEST`s will both generate the same class
85
- (`Time_Files_Like_An_Arrow_Test`). That's not good.
86
-
87
- So for simplicity, we just ask the users to avoid `_` in `TestCaseName`
88
- and `TestName`. The rule is more constraining than necessary, but it's
89
- simple and easy to remember. It also gives Google Test some wiggle
90
- room in case its implementation needs to change in the future.
91
-
92
- If you violate the rule, there may not be immediately consequences,
93
- but your test may (just may) break with a new compiler (or a new
94
- version of the compiler you are using) or with a new version of Google
95
- Test. Therefore it's best to follow the rule.
96
-
97
- ## Why is it not recommended to install a pre-compiled copy of Google Test (for example, into /usr/local)? ##
98
-
99
- In the early days, we said that you could install
100
- compiled Google Test libraries on `*`nix systems using `make install`.
101
- Then every user of your machine can write tests without
102
- recompiling Google Test.
103
-
104
- This seemed like a good idea, but it has a
105
- got-cha: every user needs to compile their tests using the _same_ compiler
106
- flags used to compile the installed Google Test libraries; otherwise
107
- they may run into undefined behaviors (i.e. the tests can behave
108
- strangely and may even crash for no obvious reasons).
109
-
110
- Why? Because C++ has this thing called the One-Definition Rule: if
111
- two C++ source files contain different definitions of the same
112
- class/function/variable, and you link them together, you violate the
113
- rule. The linker may or may not catch the error (in many cases it's
114
- not required by the C++ standard to catch the violation). If it
115
- doesn't, you get strange run-time behaviors that are unexpected and
116
- hard to debug.
117
-
118
- If you compile Google Test and your test code using different compiler
119
- flags, they may see different definitions of the same
120
- class/function/variable (e.g. due to the use of `#if` in Google Test).
121
- Therefore, for your sanity, we recommend to avoid installing pre-compiled
122
- Google Test libraries. Instead, each project should compile
123
- Google Test itself such that it can be sure that the same flags are
124
- used for both Google Test and the tests.
125
-
126
- ## How do I generate 64-bit binaries on Windows (using Visual Studio 2008)? ##
127
-
128
- (Answered by Trevor Robinson)
129
-
130
- Load the supplied Visual Studio solution file, either `msvc\gtest-md.sln` or
131
- `msvc\gtest.sln`. Go through the migration wizard to migrate the
132
- solution and project files to Visual Studio 2008. Select
133
- `Configuration Manager...` from the `Build` menu. Select `<New...>` from
134
- the `Active solution platform` dropdown. Select `x64` from the new
135
- platform dropdown, leave `Copy settings from` set to `Win32` and
136
- `Create new project platforms` checked, then click `OK`. You now have
137
- `Win32` and `x64` platform configurations, selectable from the
138
- `Standard` toolbar, which allow you to toggle between building 32-bit or
139
- 64-bit binaries (or both at once using Batch Build).
140
-
141
- In order to prevent build output files from overwriting one another,
142
- you'll need to change the `Intermediate Directory` settings for the
143
- newly created platform configuration across all the projects. To do
144
- this, multi-select (e.g. using shift-click) all projects (but not the
145
- solution) in the `Solution Explorer`. Right-click one of them and
146
- select `Properties`. In the left pane, select `Configuration Properties`,
147
- and from the `Configuration` dropdown, select `All Configurations`.
148
- Make sure the selected platform is `x64`. For the
149
- `Intermediate Directory` setting, change the value from
150
- `$(PlatformName)\$(ConfigurationName)` to
151
- `$(OutDir)\$(ProjectName)`. Click `OK` and then build the
152
- solution. When the build is complete, the 64-bit binaries will be in
153
- the `msvc\x64\Debug` directory.
154
-
155
- ## Can I use Google Test on MinGW? ##
156
-
157
- We haven't tested this ourselves, but Per Abrahamsen reported that he
158
- was able to compile and install Google Test successfully when using
159
- MinGW from Cygwin. You'll need to configure it with:
160
-
161
- `PATH/TO/configure CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin"`
162
-
163
- You should be able to replace the `-mno-cygwin` option with direct links
164
- to the real MinGW binaries, but we haven't tried that.
165
-
166
- Caveats:
167
-
168
- * There are many warnings when compiling.
169
- * `make check` will produce some errors as not all tests for Google Test itself are compatible with MinGW.
170
-
171
- We also have reports on successful cross compilation of Google Test
172
- MinGW binaries on Linux using
173
- [these instructions](http://wiki.wxwidgets.org/Cross-Compiling_Under_Linux#Cross-compiling_under_Linux_for_MS_Windows)
174
- on the WxWidgets site.
175
-
176
- Please contact `googletestframework@googlegroups.com` if you are
177
- interested in improving the support for MinGW.
178
-
179
- ## Why does Google Test support EXPECT\_EQ(NULL, ptr) and ASSERT\_EQ(NULL, ptr) but not EXPECT\_NE(NULL, ptr) and ASSERT\_NE(NULL, ptr)? ##
180
-
181
- Due to some peculiarity of C++, it requires some non-trivial template
182
- meta programming tricks to support using `NULL` as an argument of the
183
- `EXPECT_XX()` and `ASSERT_XX()` macros. Therefore we only do it where
184
- it's most needed (otherwise we make the implementation of Google Test
185
- harder to maintain and more error-prone than necessary).
186
-
187
- The `EXPECT_EQ()` macro takes the _expected_ value as its first
188
- argument and the _actual_ value as the second. It's reasonable that
189
- someone wants to write `EXPECT_EQ(NULL, some_expression)`, and this
190
- indeed was requested several times. Therefore we implemented it.
191
-
192
- The need for `EXPECT_NE(NULL, ptr)` isn't nearly as strong. When the
193
- assertion fails, you already know that `ptr` must be `NULL`, so it
194
- doesn't add any information to print ptr in this case. That means
195
- `EXPECT_TRUE(ptr != NULL)` works just as well.
196
-
197
- If we were to support `EXPECT_NE(NULL, ptr)`, for consistency we'll
198
- have to support `EXPECT_NE(ptr, NULL)` as well, as unlike `EXPECT_EQ`,
199
- we don't have a convention on the order of the two arguments for
200
- `EXPECT_NE`. This means using the template meta programming tricks
201
- twice in the implementation, making it even harder to understand and
202
- maintain. We believe the benefit doesn't justify the cost.
203
-
204
- Finally, with the growth of Google Mock's [matcher](../../googlemock/docs/CookBook.md#using-matchers-in-google-test-assertions) library, we are
205
- encouraging people to use the unified `EXPECT_THAT(value, matcher)`
206
- syntax more often in tests. One significant advantage of the matcher
207
- approach is that matchers can be easily combined to form new matchers,
208
- while the `EXPECT_NE`, etc, macros cannot be easily
209
- combined. Therefore we want to invest more in the matchers than in the
210
- `EXPECT_XX()` macros.
211
-
212
- ## Does Google Test support running tests in parallel? ##
213
-
214
- Test runners tend to be tightly coupled with the build/test
215
- environment, and Google Test doesn't try to solve the problem of
216
- running tests in parallel. Instead, we tried to make Google Test work
217
- nicely with test runners. For example, Google Test's XML report
218
- contains the time spent on each test, and its `gtest_list_tests` and
219
- `gtest_filter` flags can be used for splitting the execution of test
220
- methods into multiple processes. These functionalities can help the
221
- test runner run the tests in parallel.
222
-
223
- ## Why don't Google Test run the tests in different threads to speed things up? ##
224
-
225
- It's difficult to write thread-safe code. Most tests are not written
226
- with thread-safety in mind, and thus may not work correctly in a
227
- multi-threaded setting.
228
-
229
- If you think about it, it's already hard to make your code work when
230
- you know what other threads are doing. It's much harder, and
231
- sometimes even impossible, to make your code work when you don't know
232
- what other threads are doing (remember that test methods can be added,
233
- deleted, or modified after your test was written). If you want to run
234
- the tests in parallel, you'd better run them in different processes.
235
-
236
- ## Why aren't Google Test assertions implemented using exceptions? ##
237
-
238
- Our original motivation was to be able to use Google Test in projects
239
- that disable exceptions. Later we realized some additional benefits
240
- of this approach:
241
-
242
- 1. Throwing in a destructor is undefined behavior in C++. Not using exceptions means Google Test's assertions are safe to use in destructors.
243
- 1. The `EXPECT_*` family of macros will continue even after a failure, allowing multiple failures in a `TEST` to be reported in a single run. This is a popular feature, as in C++ the edit-compile-test cycle is usually quite long and being able to fixing more than one thing at a time is a blessing.
244
- 1. If assertions are implemented using exceptions, a test may falsely ignore a failure if it's caught by user code:
245
- ```c++
246
- try { ... ASSERT_TRUE(...) ... }
247
- catch (...) { ... }
248
- ```
249
- The above code will pass even if the `ASSERT_TRUE` throws. While it's unlikely for someone to write this in a test, it's possible to run into this pattern when you write assertions in callbacks that are called by the code under test.
250
-
251
- The downside of not using exceptions is that `ASSERT_*` (implemented
252
- using `return`) will only abort the current function, not the current
253
- `TEST`.
254
-
255
- ## Why do we use two different macros for tests with and without fixtures? ##
256
-
257
- Unfortunately, C++'s macro system doesn't allow us to use the same
258
- macro for both cases. One possibility is to provide only one macro
259
- for tests with fixtures, and require the user to define an empty
260
- fixture sometimes:
261
-
262
- ```c++
263
- class FooTest : public ::testing::Test {};
264
-
265
- TEST_F(FooTest, DoesThis) { ... }
266
- ```
267
- or
268
- ```c++
269
- typedef ::testing::Test FooTest;
270
-
271
- TEST_F(FooTest, DoesThat) { ... }
272
- ```
273
-
274
- Yet, many people think this is one line too many. :-) Our goal was to
275
- make it really easy to write tests, so we tried to make simple tests
276
- trivial to create. That means using a separate macro for such tests.
277
-
278
- We think neither approach is ideal, yet either of them is reasonable.
279
- In the end, it probably doesn't matter much either way.
280
-
281
- ## Why don't we use structs as test fixtures? ##
282
-
283
- We like to use structs only when representing passive data. This
284
- distinction between structs and classes is good for documenting the
285
- intent of the code's author. Since test fixtures have logic like
286
- `SetUp()` and `TearDown()`, they are better defined as classes.
287
-
288
- ## Why are death tests implemented as assertions instead of using a test runner? ##
289
-
290
- Our goal was to make death tests as convenient for a user as C++
291
- possibly allows. In particular:
292
-
293
- * The runner-style requires to split the information into two pieces: the definition of the death test itself, and the specification for the runner on how to run the death test and what to expect. The death test would be written in C++, while the runner spec may or may not be. A user needs to carefully keep the two in sync. `ASSERT_DEATH(statement, expected_message)` specifies all necessary information in one place, in one language, without boilerplate code. It is very declarative.
294
- * `ASSERT_DEATH` has a similar syntax and error-reporting semantics as other Google Test assertions, and thus is easy to learn.
295
- * `ASSERT_DEATH` can be mixed with other assertions and other logic at your will. You are not limited to one death test per test method. For example, you can write something like:
296
- ```c++
297
- if (FooCondition()) {
298
- ASSERT_DEATH(Bar(), "blah");
299
- } else {
300
- ASSERT_EQ(5, Bar());
301
- }
302
- ```
303
- If you prefer one death test per test method, you can write your tests in that style too, but we don't want to impose that on the users. The fewer artificial limitations the better.
304
- * `ASSERT_DEATH` can reference local variables in the current function, and you can decide how many death tests you want based on run-time information. For example,
305
- ```c++
306
- const int count = GetCount(); // Only known at run time.
307
- for (int i = 1; i <= count; i++) {
308
- ASSERT_DEATH({
309
- double* buffer = new double[i];
310
- ... initializes buffer ...
311
- Foo(buffer, i)
312
- }, "blah blah");
313
- }
314
- ```
315
- The runner-based approach tends to be more static and less flexible, or requires more user effort to get this kind of flexibility.
316
-
317
- Another interesting thing about `ASSERT_DEATH` is that it calls `fork()`
318
- to create a child process to run the death test. This is lightening
319
- fast, as `fork()` uses copy-on-write pages and incurs almost zero
320
- overhead, and the child process starts from the user-supplied
321
- statement directly, skipping all global and local initialization and
322
- any code leading to the given statement. If you launch the child
323
- process from scratch, it can take seconds just to load everything and
324
- start running if the test links to many libraries dynamically.
325
-
326
- ## My death test modifies some state, but the change seems lost after the death test finishes. Why? ##
327
-
328
- Death tests (`EXPECT_DEATH`, etc) are executed in a sub-process s.t. the
329
- expected crash won't kill the test program (i.e. the parent process). As a
330
- result, any in-memory side effects they incur are observable in their
331
- respective sub-processes, but not in the parent process. You can think of them
332
- as running in a parallel universe, more or less.
333
-
334
- ## The compiler complains about "undefined references" to some static const member variables, but I did define them in the class body. What's wrong? ##
335
-
336
- If your class has a static data member:
337
-
338
- ```c++
339
- // foo.h
340
- class Foo {
341
- ...
342
- static const int kBar = 100;
343
- };
344
- ```
345
-
346
- You also need to define it _outside_ of the class body in `foo.cc`:
347
-
348
- ```c++
349
- const int Foo::kBar; // No initializer here.
350
- ```
351
-
352
- Otherwise your code is **invalid C++**, and may break in unexpected ways. In
353
- particular, using it in Google Test comparison assertions (`EXPECT_EQ`, etc)
354
- will generate an "undefined reference" linker error.
355
-
356
- ## I have an interface that has several implementations. Can I write a set of tests once and repeat them over all the implementations? ##
357
-
358
- Google Test doesn't yet have good support for this kind of tests, or
359
- data-driven tests in general. We hope to be able to make improvements in this
360
- area soon.
361
-
362
- ## Can I derive a test fixture from another? ##
363
-
364
- Yes.
365
-
366
- Each test fixture has a corresponding and same named test case. This means only
367
- one test case can use a particular fixture. Sometimes, however, multiple test
368
- cases may want to use the same or slightly different fixtures. For example, you
369
- may want to make sure that all of a GUI library's test cases don't leak
370
- important system resources like fonts and brushes.
371
-
372
- In Google Test, you share a fixture among test cases by putting the shared
373
- logic in a base test fixture, then deriving from that base a separate fixture
374
- for each test case that wants to use this common logic. You then use `TEST_F()`
375
- to write tests using each derived fixture.
376
-
377
- Typically, your code looks like this:
378
-
379
- ```c++
380
- // Defines a base test fixture.
381
- class BaseTest : public ::testing::Test {
382
- protected:
383
- ...
384
- };
385
-
386
- // Derives a fixture FooTest from BaseTest.
387
- class FooTest : public BaseTest {
388
- protected:
389
- virtual void SetUp() {
390
- BaseTest::SetUp(); // Sets up the base fixture first.
391
- ... additional set-up work ...
392
- }
393
- virtual void TearDown() {
394
- ... clean-up work for FooTest ...
395
- BaseTest::TearDown(); // Remember to tear down the base fixture
396
- // after cleaning up FooTest!
397
- }
398
- ... functions and variables for FooTest ...
399
- };
400
-
401
- // Tests that use the fixture FooTest.
402
- TEST_F(FooTest, Bar) { ... }
403
- TEST_F(FooTest, Baz) { ... }
404
-
405
- ... additional fixtures derived from BaseTest ...
406
- ```
407
-
408
- If necessary, you can continue to derive test fixtures from a derived fixture.
409
- Google Test has no limit on how deep the hierarchy can be.
410
-
411
- For a complete example using derived test fixtures, see
412
- [sample5](../samples/sample5_unittest.cc).
413
-
414
- ## My compiler complains "void value not ignored as it ought to be." What does this mean? ##
415
-
416
- You're probably using an `ASSERT_*()` in a function that doesn't return `void`.
417
- `ASSERT_*()` can only be used in `void` functions.
418
-
419
- ## My death test hangs (or seg-faults). How do I fix it? ##
420
-
421
- In Google Test, death tests are run in a child process and the way they work is
422
- delicate. To write death tests you really need to understand how they work.
423
- Please make sure you have read this.
424
-
425
- In particular, death tests don't like having multiple threads in the parent
426
- process. So the first thing you can try is to eliminate creating threads
427
- outside of `EXPECT_DEATH()`.
428
-
429
- Sometimes this is impossible as some library you must use may be creating
430
- threads before `main()` is even reached. In this case, you can try to minimize
431
- the chance of conflicts by either moving as many activities as possible inside
432
- `EXPECT_DEATH()` (in the extreme case, you want to move everything inside), or
433
- leaving as few things as possible in it. Also, you can try to set the death
434
- test style to `"threadsafe"`, which is safer but slower, and see if it helps.
435
-
436
- If you go with thread-safe death tests, remember that they rerun the test
437
- program from the beginning in the child process. Therefore make sure your
438
- program can run side-by-side with itself and is deterministic.
439
-
440
- In the end, this boils down to good concurrent programming. You have to make
441
- sure that there is no race conditions or dead locks in your program. No silver
442
- bullet - sorry!
443
-
444
- ## Should I use the constructor/destructor of the test fixture or the set-up/tear-down function? ##
445
-
446
- The first thing to remember is that Google Test does not reuse the
447
- same test fixture object across multiple tests. For each `TEST_F`,
448
- Google Test will create a fresh test fixture object, _immediately_
449
- call `SetUp()`, run the test body, call `TearDown()`, and then
450
- _immediately_ delete the test fixture object.
451
-
452
- When you need to write per-test set-up and tear-down logic, you have
453
- the choice between using the test fixture constructor/destructor or
454
- `SetUp()/TearDown()`. The former is usually preferred, as it has the
455
- following benefits:
456
-
457
- * By initializing a member variable in the constructor, we have the option to make it `const`, which helps prevent accidental changes to its value and makes the tests more obviously correct.
458
- * In case we need to subclass the test fixture class, the subclass' constructor is guaranteed to call the base class' constructor first, and the subclass' destructor is guaranteed to call the base class' destructor afterward. With `SetUp()/TearDown()`, a subclass may make the mistake of forgetting to call the base class' `SetUp()/TearDown()` or call them at the wrong moment.
459
-
460
- You may still want to use `SetUp()/TearDown()` in the following rare cases:
461
- * If the tear-down operation could throw an exception, you must use `TearDown()` as opposed to the destructor, as throwing in a destructor leads to undefined behavior and usually will kill your program right away. Note that many standard libraries (like STL) may throw when exceptions are enabled in the compiler. Therefore you should prefer `TearDown()` if you want to write portable tests that work with or without exceptions.
462
- * The assertion macros throw an exception when flag `--gtest_throw_on_failure` is specified. Therefore, you shouldn't use Google Test assertions in a destructor if you plan to run your tests with this flag.
463
- * In a constructor or destructor, you cannot make a virtual function call on this object. (You can call a method declared as virtual, but it will be statically bound.) Therefore, if you need to call a method that will be overridden in a derived class, you have to use `SetUp()/TearDown()`.
464
-
465
- ## The compiler complains "no matching function to call" when I use ASSERT\_PREDn. How do I fix it? ##
466
-
467
- If the predicate function you use in `ASSERT_PRED*` or `EXPECT_PRED*` is
468
- overloaded or a template, the compiler will have trouble figuring out which
469
- overloaded version it should use. `ASSERT_PRED_FORMAT*` and
470
- `EXPECT_PRED_FORMAT*` don't have this problem.
471
-
472
- If you see this error, you might want to switch to
473
- `(ASSERT|EXPECT)_PRED_FORMAT*`, which will also give you a better failure
474
- message. If, however, that is not an option, you can resolve the problem by
475
- explicitly telling the compiler which version to pick.
476
-
477
- For example, suppose you have
478
-
479
- ```c++
480
- bool IsPositive(int n) {
481
- return n > 0;
482
- }
483
- bool IsPositive(double x) {
484
- return x > 0;
485
- }
486
- ```
487
-
488
- you will get a compiler error if you write
489
-
490
- ```c++
491
- EXPECT_PRED1(IsPositive, 5);
492
- ```
493
-
494
- However, this will work:
495
-
496
- ```c++
497
- EXPECT_PRED1(static_cast<bool (*)(int)>(IsPositive), 5);
498
- ```
499
-
500
- (The stuff inside the angled brackets for the `static_cast` operator is the
501
- type of the function pointer for the `int`-version of `IsPositive()`.)
502
-
503
- As another example, when you have a template function
504
-
505
- ```c++
506
- template <typename T>
507
- bool IsNegative(T x) {
508
- return x < 0;
509
- }
510
- ```
511
-
512
- you can use it in a predicate assertion like this:
513
-
514
- ```c++
515
- ASSERT_PRED1(IsNegative<int>, -5);
516
- ```
517
-
518
- Things are more interesting if your template has more than one parameters. The
519
- following won't compile:
520
-
521
- ```c++
522
- ASSERT_PRED2(GreaterThan<int, int>, 5, 0);
523
- ```
524
-
525
-
526
- as the C++ pre-processor thinks you are giving `ASSERT_PRED2` 4 arguments,
527
- which is one more than expected. The workaround is to wrap the predicate
528
- function in parentheses:
529
-
530
- ```c++
531
- ASSERT_PRED2((GreaterThan<int, int>), 5, 0);
532
- ```
533
-
534
-
535
- ## My compiler complains about "ignoring return value" when I call RUN\_ALL\_TESTS(). Why? ##
536
-
537
- Some people had been ignoring the return value of `RUN_ALL_TESTS()`. That is,
538
- instead of
539
-
540
- ```c++
541
- return RUN_ALL_TESTS();
542
- ```
543
-
544
- they write
545
-
546
- ```c++
547
- RUN_ALL_TESTS();
548
- ```
549
-
550
- This is wrong and dangerous. A test runner needs to see the return value of
551
- `RUN_ALL_TESTS()` in order to determine if a test has passed. If your `main()`
552
- function ignores it, your test will be considered successful even if it has a
553
- Google Test assertion failure. Very bad.
554
-
555
- To help the users avoid this dangerous bug, the implementation of
556
- `RUN_ALL_TESTS()` causes gcc to raise this warning, when the return value is
557
- ignored. If you see this warning, the fix is simple: just make sure its value
558
- is used as the return value of `main()`.
559
-
560
- ## My compiler complains that a constructor (or destructor) cannot return a value. What's going on? ##
561
-
562
- Due to a peculiarity of C++, in order to support the syntax for streaming
563
- messages to an `ASSERT_*`, e.g.
564
-
565
- ```c++
566
- ASSERT_EQ(1, Foo()) << "blah blah" << foo;
567
- ```
568
-
569
- we had to give up using `ASSERT*` and `FAIL*` (but not `EXPECT*` and
570
- `ADD_FAILURE*`) in constructors and destructors. The workaround is to move the
571
- content of your constructor/destructor to a private void member function, or
572
- switch to `EXPECT_*()` if that works. This section in the user's guide explains
573
- it.
574
-
575
- ## My set-up function is not called. Why? ##
576
-
577
- C++ is case-sensitive. It should be spelled as `SetUp()`. Did you
578
- spell it as `Setup()`?
579
-
580
- Similarly, sometimes people spell `SetUpTestCase()` as `SetupTestCase()` and
581
- wonder why it's never called.
582
-
583
- ## How do I jump to the line of a failure in Emacs directly? ##
584
-
585
- Google Test's failure message format is understood by Emacs and many other
586
- IDEs, like acme and XCode. If a Google Test message is in a compilation buffer
587
- in Emacs, then it's clickable. You can now hit `enter` on a message to jump to
588
- the corresponding source code, or use `C-x `` to jump to the next failure.
589
-
590
- ## I have several test cases which share the same test fixture logic, do I have to define a new test fixture class for each of them? This seems pretty tedious. ##
591
-
592
- You don't have to. Instead of
593
-
594
- ```c++
595
- class FooTest : public BaseTest {};
596
-
597
- TEST_F(FooTest, Abc) { ... }
598
- TEST_F(FooTest, Def) { ... }
599
-
600
- class BarTest : public BaseTest {};
601
-
602
- TEST_F(BarTest, Abc) { ... }
603
- TEST_F(BarTest, Def) { ... }
604
- ```
605
-
606
- you can simply `typedef` the test fixtures:
607
- ```c++
608
- typedef BaseTest FooTest;
609
-
610
- TEST_F(FooTest, Abc) { ... }
611
- TEST_F(FooTest, Def) { ... }
612
-
613
- typedef BaseTest BarTest;
614
-
615
- TEST_F(BarTest, Abc) { ... }
616
- TEST_F(BarTest, Def) { ... }
617
- ```
618
-
619
- ## The Google Test output is buried in a whole bunch of log messages. What do I do? ##
620
-
621
- The Google Test output is meant to be a concise and human-friendly report. If
622
- your test generates textual output itself, it will mix with the Google Test
623
- output, making it hard to read. However, there is an easy solution to this
624
- problem.
625
-
626
- Since most log messages go to stderr, we decided to let Google Test output go
627
- to stdout. This way, you can easily separate the two using redirection. For
628
- example:
629
- ```
630
- ./my_test > googletest_output.txt
631
- ```
632
-
633
- ## Why should I prefer test fixtures over global variables? ##
634
-
635
- There are several good reasons:
636
- 1. It's likely your test needs to change the states of its global variables. This makes it difficult to keep side effects from escaping one test and contaminating others, making debugging difficult. By using fixtures, each test has a fresh set of variables that's different (but with the same names). Thus, tests are kept independent of each other.
637
- 1. Global variables pollute the global namespace.
638
- 1. Test fixtures can be reused via subclassing, which cannot be done easily with global variables. This is useful if many test cases have something in common.
639
-
640
- ## How do I test private class members without writing FRIEND\_TEST()s? ##
641
-
642
- You should try to write testable code, which means classes should be easily
643
- tested from their public interface. One way to achieve this is the Pimpl idiom:
644
- you move all private members of a class into a helper class, and make all
645
- members of the helper class public.
646
-
647
- You have several other options that don't require using `FRIEND_TEST`:
648
- * Write the tests as members of the fixture class:
649
- ```c++
650
- class Foo {
651
- friend class FooTest;
652
- ...
653
- };
654
-
655
- class FooTest : public ::testing::Test {
656
- protected:
657
- ...
658
- void Test1() {...} // This accesses private members of class Foo.
659
- void Test2() {...} // So does this one.
660
- };
661
-
662
- TEST_F(FooTest, Test1) {
663
- Test1();
664
- }
665
-
666
- TEST_F(FooTest, Test2) {
667
- Test2();
668
- }
669
- ```
670
- * In the fixture class, write accessors for the tested class' private members, then use the accessors in your tests:
671
- ```c++
672
- class Foo {
673
- friend class FooTest;
674
- ...
675
- };
676
-
677
- class FooTest : public ::testing::Test {
678
- protected:
679
- ...
680
- T1 get_private_member1(Foo* obj) {
681
- return obj->private_member1_;
682
- }
683
- };
684
-
685
- TEST_F(FooTest, Test1) {
686
- ...
687
- get_private_member1(x)
688
- ...
689
- }
690
- ```
691
- * If the methods are declared **protected**, you can change their access level in a test-only subclass:
692
- ```c++
693
- class YourClass {
694
- ...
695
- protected: // protected access for testability.
696
- int DoSomethingReturningInt();
697
- ...
698
- };
699
-
700
- // in the your_class_test.cc file:
701
- class TestableYourClass : public YourClass {
702
- ...
703
- public: using YourClass::DoSomethingReturningInt; // changes access rights
704
- ...
705
- };
706
-
707
- TEST_F(YourClassTest, DoSomethingTest) {
708
- TestableYourClass obj;
709
- assertEquals(expected_value, obj.DoSomethingReturningInt());
710
- }
711
- ```
712
-
713
- ## How do I test private class static members without writing FRIEND\_TEST()s? ##
714
-
715
- We find private static methods clutter the header file. They are
716
- implementation details and ideally should be kept out of a .h. So often I make
717
- them free functions instead.
718
-
719
- Instead of:
720
- ```c++
721
- // foo.h
722
- class Foo {
723
- ...
724
- private:
725
- static bool Func(int n);
726
- };
727
-
728
- // foo.cc
729
- bool Foo::Func(int n) { ... }
730
-
731
- // foo_test.cc
732
- EXPECT_TRUE(Foo::Func(12345));
733
- ```
734
-
735
- You probably should better write:
736
- ```c++
737
- // foo.h
738
- class Foo {
739
- ...
740
- };
741
-
742
- // foo.cc
743
- namespace internal {
744
- bool Func(int n) { ... }
745
- }
746
-
747
- // foo_test.cc
748
- namespace internal {
749
- bool Func(int n);
750
- }
751
-
752
- EXPECT_TRUE(internal::Func(12345));
753
- ```
754
-
755
- ## I would like to run a test several times with different parameters. Do I need to write several similar copies of it? ##
756
-
757
- No. You can use a feature called [value-parameterized tests](advanced.md#Value_Parameterized_Tests) which
758
- lets you repeat your tests with different parameters, without defining it more than once.
759
-
760
- ## How do I test a file that defines main()? ##
761
-
762
- To test a `foo.cc` file, you need to compile and link it into your unit test
763
- program. However, when the file contains a definition for the `main()`
764
- function, it will clash with the `main()` of your unit test, and will result in
765
- a build error.
766
-
767
- The right solution is to split it into three files:
768
- 1. `foo.h` which contains the declarations,
769
- 1. `foo.cc` which contains the definitions except `main()`, and
770
- 1. `foo_main.cc` which contains nothing but the definition of `main()`.
771
-
772
- Then `foo.cc` can be easily tested.
773
-
774
- If you are adding tests to an existing file and don't want an intrusive change
775
- like this, there is a hack: just include the entire `foo.cc` file in your unit
776
- test. For example:
777
- ```c++
778
- // File foo_unittest.cc
779
-
780
- // The headers section
781
- ...
782
-
783
- // Renames main() in foo.cc to make room for the unit test main()
784
- #define main FooMain
785
-
786
- #include "a/b/foo.cc"
787
-
788
- // The tests start here.
789
- ...
790
- ```
791
-
792
-
793
- However, please remember this is a hack and should only be used as the last
794
- resort.
795
-
796
- ## What can the statement argument in ASSERT\_DEATH() be? ##
797
-
798
- `ASSERT_DEATH(_statement_, _regex_)` (or any death assertion macro) can be used
799
- wherever `_statement_` is valid. So basically `_statement_` can be any C++
800
- statement that makes sense in the current context. In particular, it can
801
- reference global and/or local variables, and can be:
802
- * a simple function call (often the case),
803
- * a complex expression, or
804
- * a compound statement.
805
-
806
- Some examples are shown here:
807
-
808
- ```c++
809
- // A death test can be a simple function call.
810
- TEST(MyDeathTest, FunctionCall) {
811
- ASSERT_DEATH(Xyz(5), "Xyz failed");
812
- }
813
-
814
- // Or a complex expression that references variables and functions.
815
- TEST(MyDeathTest, ComplexExpression) {
816
- const bool c = Condition();
817
- ASSERT_DEATH((c ? Func1(0) : object2.Method("test")),
818
- "(Func1|Method) failed");
819
- }
820
-
821
- // Death assertions can be used any where in a function. In
822
- // particular, they can be inside a loop.
823
- TEST(MyDeathTest, InsideLoop) {
824
- // Verifies that Foo(0), Foo(1), ..., and Foo(4) all die.
825
- for (int i = 0; i < 5; i++) {
826
- EXPECT_DEATH_M(Foo(i), "Foo has \\d+ errors",
827
- ::testing::Message() << "where i is " << i);
828
- }
829
- }
830
-
831
- // A death assertion can contain a compound statement.
832
- TEST(MyDeathTest, CompoundStatement) {
833
- // Verifies that at lease one of Bar(0), Bar(1), ..., and
834
- // Bar(4) dies.
835
- ASSERT_DEATH({
836
- for (int i = 0; i < 5; i++) {
837
- Bar(i);
838
- }
839
- },
840
- "Bar has \\d+ errors");}
841
- ```
842
-
843
- `googletest_unittest.cc` contains more examples if you are interested.
844
-
845
- ## What syntax does the regular expression in ASSERT\_DEATH use? ##
846
-
847
- On POSIX systems, Google Test uses the POSIX Extended regular
848
- expression syntax
849
- (http://en.wikipedia.org/wiki/Regular_expression#POSIX_Extended_Regular_Expressions).
850
- On Windows, it uses a limited variant of regular expression
851
- syntax. For more details, see the
852
- [regular expression syntax](advanced.md#Regular_Expression_Syntax).
853
-
854
- ## I have a fixture class Foo, but TEST\_F(Foo, Bar) gives me error "no matching function for call to Foo::Foo()". Why? ##
855
-
856
- Google Test needs to be able to create objects of your test fixture class, so
857
- it must have a default constructor. Normally the compiler will define one for
858
- you. However, there are cases where you have to define your own:
859
- * If you explicitly declare a non-default constructor for class `Foo`, then you need to define a default constructor, even if it would be empty.
860
- * If `Foo` has a const non-static data member, then you have to define the default constructor _and_ initialize the const member in the initializer list of the constructor. (Early versions of `gcc` doesn't force you to initialize the const member. It's a bug that has been fixed in `gcc 4`.)
861
-
862
- ## Why does ASSERT\_DEATH complain about previous threads that were already joined? ##
863
-
864
- With the Linux pthread library, there is no turning back once you cross the
865
- line from single thread to multiple threads. The first time you create a
866
- thread, a manager thread is created in addition, so you get 3, not 2, threads.
867
- Later when the thread you create joins the main thread, the thread count
868
- decrements by 1, but the manager thread will never be killed, so you still have
869
- 2 threads, which means you cannot safely run a death test.
870
-
871
- The new NPTL thread library doesn't suffer from this problem, as it doesn't
872
- create a manager thread. However, if you don't control which machine your test
873
- runs on, you shouldn't depend on this.
874
-
875
- ## Why does Google Test require the entire test case, instead of individual tests, to be named FOODeathTest when it uses ASSERT\_DEATH? ##
876
-
877
- Google Test does not interleave tests from different test cases. That is, it
878
- runs all tests in one test case first, and then runs all tests in the next test
879
- case, and so on. Google Test does this because it needs to set up a test case
880
- before the first test in it is run, and tear it down afterwords. Splitting up
881
- the test case would require multiple set-up and tear-down processes, which is
882
- inefficient and makes the semantics unclean.
883
-
884
- If we were to determine the order of tests based on test name instead of test
885
- case name, then we would have a problem with the following situation:
886
-
887
- ```c++
888
- TEST_F(FooTest, AbcDeathTest) { ... }
889
- TEST_F(FooTest, Uvw) { ... }
890
-
891
- TEST_F(BarTest, DefDeathTest) { ... }
892
- TEST_F(BarTest, Xyz) { ... }
893
- ```
894
-
895
- Since `FooTest.AbcDeathTest` needs to run before `BarTest.Xyz`, and we don't
896
- interleave tests from different test cases, we need to run all tests in the
897
- `FooTest` case before running any test in the `BarTest` case. This contradicts
898
- with the requirement to run `BarTest.DefDeathTest` before `FooTest.Uvw`.
899
-
900
- ## But I don't like calling my entire test case FOODeathTest when it contains both death tests and non-death tests. What do I do? ##
901
-
902
- You don't have to, but if you like, you may split up the test case into
903
- `FooTest` and `FooDeathTest`, where the names make it clear that they are
904
- related:
905
-
906
- ```c++
907
- class FooTest : public ::testing::Test { ... };
908
-
909
- TEST_F(FooTest, Abc) { ... }
910
- TEST_F(FooTest, Def) { ... }
911
-
912
- typedef FooTest FooDeathTest;
913
-
914
- TEST_F(FooDeathTest, Uvw) { ... EXPECT_DEATH(...) ... }
915
- TEST_F(FooDeathTest, Xyz) { ... ASSERT_DEATH(...) ... }
916
- ```
917
-
918
- ## The compiler complains about "no match for 'operator<<'" when I use an assertion. What gives? ##
919
-
920
- If you use a user-defined type `FooType` in an assertion, you must make sure
921
- there is an `std::ostream& operator<<(std::ostream&, const FooType&)` function
922
- defined such that we can print a value of `FooType`.
923
-
924
- In addition, if `FooType` is declared in a name space, the `<<` operator also
925
- needs to be defined in the _same_ name space.
926
-
927
- ## How do I suppress the memory leak messages on Windows? ##
928
-
929
- Since the statically initialized Google Test singleton requires allocations on
930
- the heap, the Visual C++ memory leak detector will report memory leaks at the
931
- end of the program run. The easiest way to avoid this is to use the
932
- `_CrtMemCheckpoint` and `_CrtMemDumpAllObjectsSince` calls to not report any
933
- statically initialized heap objects. See MSDN for more details and additional
934
- heap check/debug routines.
935
-
936
- ## I am building my project with Google Test in Visual Studio and all I'm getting is a bunch of linker errors (or warnings). Help! ##
937
-
938
- You may get a number of the following linker error or warnings if you
939
- attempt to link your test project with the Google Test library when
940
- your project and the are not built using the same compiler settings.
941
-
942
- * LNK2005: symbol already defined in object
943
- * LNK4217: locally defined symbol 'symbol' imported in function 'function'
944
- * LNK4049: locally defined symbol 'symbol' imported
945
-
946
- The Google Test project (gtest.vcproj) has the Runtime Library option
947
- set to /MT (use multi-threaded static libraries, /MTd for debug). If
948
- your project uses something else, for example /MD (use multi-threaded
949
- DLLs, /MDd for debug), you need to change the setting in the Google
950
- Test project to match your project's.
951
-
952
- To update this setting open the project properties in the Visual
953
- Studio IDE then select the branch Configuration Properties | C/C++ |
954
- Code Generation and change the option "Runtime Library". You may also try
955
- using gtest-md.vcproj instead of gtest.vcproj.
956
-
957
- ## I put my tests in a library and Google Test doesn't run them. What's happening? ##
958
- Have you read a
959
- [warning](primer.md#important-note-for-visual-c-users) on
960
- the Google Test Primer page?
961
-
962
- ## I want to use Google Test with Visual Studio but don't know where to start. ##
963
- Many people are in your position and one of them posted his solution to our mailing list.
964
-
965
- ## I am seeing compile errors mentioning std::type\_traits when I try to use Google Test on Solaris. ##
966
- Google Test uses parts of the standard C++ library that SunStudio does not support.
967
- Our users reported success using alternative implementations. Try running the build after running this command:
968
-
969
- `export CC=cc CXX=CC CXXFLAGS='-library=stlport4'`
970
-
971
- ## How can my code detect if it is running in a test? ##
972
-
973
- If you write code that sniffs whether it's running in a test and does
974
- different things accordingly, you are leaking test-only logic into
975
- production code and there is no easy way to ensure that the test-only
976
- code paths aren't run by mistake in production. Such cleverness also
977
- leads to
978
- [Heisenbugs](http://en.wikipedia.org/wiki/Unusual_software_bug#Heisenbug).
979
- Therefore we strongly advise against the practice, and Google Test doesn't
980
- provide a way to do it.
981
-
982
- In general, the recommended way to cause the code to behave
983
- differently under test is [dependency injection](http://jamesshore.com/Blog/Dependency-Injection-Demystified.html).
984
- You can inject different functionality from the test and from the
985
- production code. Since your production code doesn't link in the
986
- for-test logic at all, there is no danger in accidentally running it.
987
-
988
- However, if you _really_, _really_, _really_ have no choice, and if
989
- you follow the rule of ending your test program names with `_test`,
990
- you can use the _horrible_ hack of sniffing your executable name
991
- (`argv[0]` in `main()`) to know whether the code is under test.
992
-
993
- ## Google Test defines a macro that clashes with one defined by another library. How do I deal with that? ##
994
-
995
- In C++, macros don't obey namespaces. Therefore two libraries that
996
- both define a macro of the same name will clash if you `#include` both
997
- definitions. In case a Google Test macro clashes with another
998
- library, you can force Google Test to rename its macro to avoid the
999
- conflict.
1000
-
1001
- Specifically, if both Google Test and some other code define macro
1002
- `FOO`, you can add
1003
- ```
1004
- -DGTEST_DONT_DEFINE_FOO=1
1005
- ```
1006
- to the compiler flags to tell Google Test to change the macro's name
1007
- from `FOO` to `GTEST_FOO`. For example, with `-DGTEST_DONT_DEFINE_TEST=1`, you'll need to write
1008
- ```c++
1009
- GTEST_TEST(SomeTest, DoesThis) { ... }
1010
- ```
1011
- instead of
1012
- ```c++
1013
- TEST(SomeTest, DoesThis) { ... }
1014
- ```
1015
- in order to define a test.
1016
-
1017
- Currently, the following `TEST`, `FAIL`, `SUCCEED`, and the basic comparison assertion macros can have . You can see the full list of covered macros [here](../include/gtest/gtest.h). More information can be found in the "Avoiding Macro Name Clashes" section of the README file.
1018
-
1019
-
1020
- ## Is it OK if I have two separate `TEST(Foo, Bar)` test methods defined in different namespaces? ##
1021
-
1022
- Yes.
1023
-
1024
- The rule is **all test methods in the same test case must use the same fixture class**. This means that the following is **allowed** because both tests use the same fixture class (`::testing::Test`).
1025
-
1026
- ```c++
1027
- namespace foo {
1028
- TEST(CoolTest, DoSomething) {
1029
- SUCCEED();
1030
- }
1031
- } // namespace foo
1032
-
1033
- namespace bar {
1034
- TEST(CoolTest, DoSomething) {
1035
- SUCCEED();
1036
- }
1037
- } // namespace bar
1038
- ```
1039
-
1040
- However, the following code is **not allowed** and will produce a runtime error from Google Test because the test methods are using different test fixture classes with the same test case name.
1041
-
1042
- ```c++
1043
- namespace foo {
1044
- class CoolTest : public ::testing::Test {}; // Fixture foo::CoolTest
1045
- TEST_F(CoolTest, DoSomething) {
1046
- SUCCEED();
1047
- }
1048
- } // namespace foo
1049
-
1050
- namespace bar {
1051
- class CoolTest : public ::testing::Test {}; // Fixture: bar::CoolTest
1052
- TEST_F(CoolTest, DoSomething) {
1053
- SUCCEED();
1054
- }
1055
- } // namespace bar
1056
- ```
1057
-
1058
- ## How do I build Google Testing Framework with Xcode 4? ##
1059
-
1060
- If you try to build Google Test's Xcode project with Xcode 4.0 or later, you may encounter an error message that looks like
1061
- "Missing SDK in target gtest\_framework: /Developer/SDKs/MacOSX10.4u.sdk". That means that Xcode does not support the SDK the project is targeting. See the Xcode section in the [README](../README.md) file on how to resolve this.
1062
-
1063
- ## How do I easily discover the flags needed for GoogleTest? ##
1064
-
1065
- GoogleTest (and GoogleMock) now support discovering all necessary flags using pkg-config.
1066
- See the [pkg-config guide](Pkgconfig.md) on how you can easily discover all compiler and
1067
- linker flags using pkg-config.
1068
-
1069
- ## My question is not covered in your FAQ! ##
1070
-
1071
- If you cannot find the answer to your question in this FAQ, there are
1072
- some other resources you can use:
1073
-
1074
- 1. read other [wiki pages](../docs),
1075
- 1. search the mailing list [archive](https://groups.google.com/forum/#!forum/googletestframework),
1076
- 1. ask it on [googletestframework@googlegroups.com](mailto:googletestframework@googlegroups.com) and someone will answer it (to prevent spam, we require you to join the [discussion group](http://groups.google.com/group/googletestframework) before you can post.).
1077
-
1078
- Please note that creating an issue in the
1079
- [issue tracker](https://github.com/google/googletest/issues) is _not_
1080
- a good way to get your answer, as it is monitored infrequently by a
1081
- very small number of people.
1082
-
1083
- When asking a question, it's helpful to provide as much of the
1084
- following information as possible (people cannot help you if there's
1085
- not enough information in your question):
1086
-
1087
- * the version (or the commit hash if you check out from Git directly) of Google Test you use (Google Test is under active development, so it's possible that your problem has been solved in a later version),
1088
- * your operating system,
1089
- * the name and version of your compiler,
1090
- * the complete command line flags you give to your compiler,
1091
- * the complete compiler error messages (if the question is about compilation),
1092
- * the _actual_ code (ideally, a minimal but complete program) that has the problem you encounter.