simdjson 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2532) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -0
  3. data/.gitmodules +2 -0
  4. data/Rakefile +14 -11
  5. data/ext/simdjson/extconf.rb +2 -17
  6. data/ext/simdjson/simdjson.cpp +14137 -52
  7. data/ext/simdjson/simdjson_ruby.cpp +72 -0
  8. data/lib/simdjson/version.rb +1 -1
  9. data/simdjson.gemspec +3 -2
  10. metadata +4 -2596
  11. data/ext/simdjson/simdjson.hpp +0 -13
  12. data/vendor/simdjson/AUTHORS +0 -4
  13. data/vendor/simdjson/CMakeFiles/3.16.3/CompilerIdC/a.out +0 -0
  14. data/vendor/simdjson/CMakeFiles/3.16.3/CompilerIdCXX/a.out +0 -0
  15. data/vendor/simdjson/CMakeLists.txt +0 -92
  16. data/vendor/simdjson/CONTRIBUTING.md +0 -92
  17. data/vendor/simdjson/CONTRIBUTORS +0 -39
  18. data/vendor/simdjson/Dockerfile +0 -88
  19. data/vendor/simdjson/Doxyfile +0 -2578
  20. data/vendor/simdjson/HACKING.md +0 -652
  21. data/vendor/simdjson/LICENSE +0 -201
  22. data/vendor/simdjson/README.md +0 -190
  23. data/vendor/simdjson/RELEASES.md +0 -50
  24. data/vendor/simdjson/benchmark/CMakeLists.txt +0 -37
  25. data/vendor/simdjson/benchmark/Dockerfile +0 -19
  26. data/vendor/simdjson/benchmark/bench_dom_api.cpp +0 -552
  27. data/vendor/simdjson/benchmark/bench_parse_call.cpp +0 -162
  28. data/vendor/simdjson/benchmark/benchfeatures.cpp +0 -466
  29. data/vendor/simdjson/benchmark/benchmark.h +0 -106
  30. data/vendor/simdjson/benchmark/benchmarker.h +0 -522
  31. data/vendor/simdjson/benchmark/checkperf.cmake +0 -101
  32. data/vendor/simdjson/benchmark/distinctuseridcompetition.cpp +0 -406
  33. data/vendor/simdjson/benchmark/event_counter.h +0 -152
  34. data/vendor/simdjson/benchmark/get_corpus_benchmark.cpp +0 -57
  35. data/vendor/simdjson/benchmark/linux/linux-perf-events.h +0 -101
  36. data/vendor/simdjson/benchmark/minifiercompetition.cpp +0 -184
  37. data/vendor/simdjson/benchmark/parse.cpp +0 -222
  38. data/vendor/simdjson/benchmark/parse_stream.cpp +0 -191
  39. data/vendor/simdjson/benchmark/parseandstatcompetition.cpp +0 -488
  40. data/vendor/simdjson/benchmark/parsingcompetition.cpp +0 -361
  41. data/vendor/simdjson/benchmark/perfdiff.cpp +0 -114
  42. data/vendor/simdjson/benchmark/statisticalmodel.cpp +0 -207
  43. data/vendor/simdjson/cmake/add_cpp_test.cmake +0 -49
  44. data/vendor/simdjson/cmake/simdjson-flags.cmake +0 -155
  45. data/vendor/simdjson/cmake/simdjson-user-cmakecache.cmake +0 -24
  46. data/vendor/simdjson/dependencies/CMakeLists.txt +0 -89
  47. data/vendor/simdjson/dependencies/benchmark/AUTHORS +0 -56
  48. data/vendor/simdjson/dependencies/benchmark/BUILD.bazel +0 -44
  49. data/vendor/simdjson/dependencies/benchmark/CMakeFiles/CMakeDirectoryInformation.cmake +0 -16
  50. data/vendor/simdjson/dependencies/benchmark/CMakeFiles/progress.marks +0 -1
  51. data/vendor/simdjson/dependencies/benchmark/CMakeLists.txt +0 -279
  52. data/vendor/simdjson/dependencies/benchmark/CONTRIBUTING.md +0 -58
  53. data/vendor/simdjson/dependencies/benchmark/CONTRIBUTORS +0 -78
  54. data/vendor/simdjson/dependencies/benchmark/CTestTestfile.cmake +0 -7
  55. data/vendor/simdjson/dependencies/benchmark/LICENSE +0 -202
  56. data/vendor/simdjson/dependencies/benchmark/Makefile +0 -220
  57. data/vendor/simdjson/dependencies/benchmark/README.md +0 -1290
  58. data/vendor/simdjson/dependencies/benchmark/WORKSPACE +0 -15
  59. data/vendor/simdjson/dependencies/benchmark/_config.yml +0 -1
  60. data/vendor/simdjson/dependencies/benchmark/appveyor.yml +0 -50
  61. data/vendor/simdjson/dependencies/benchmark/cmake/AddCXXCompilerFlag.cmake +0 -74
  62. data/vendor/simdjson/dependencies/benchmark/cmake/CXXFeatureCheck.cmake +0 -64
  63. data/vendor/simdjson/dependencies/benchmark/cmake/Config.cmake.in +0 -1
  64. data/vendor/simdjson/dependencies/benchmark/cmake/GetGitVersion.cmake +0 -54
  65. data/vendor/simdjson/dependencies/benchmark/cmake/GoogleTest.cmake +0 -41
  66. data/vendor/simdjson/dependencies/benchmark/cmake/GoogleTest.cmake.in +0 -58
  67. data/vendor/simdjson/dependencies/benchmark/cmake/Modules/FindLLVMAr.cmake +0 -16
  68. data/vendor/simdjson/dependencies/benchmark/cmake/Modules/FindLLVMNm.cmake +0 -16
  69. data/vendor/simdjson/dependencies/benchmark/cmake/Modules/FindLLVMRanLib.cmake +0 -15
  70. data/vendor/simdjson/dependencies/benchmark/cmake/benchmark.pc.in +0 -12
  71. data/vendor/simdjson/dependencies/benchmark/cmake/gnu_posix_regex.cpp +0 -12
  72. data/vendor/simdjson/dependencies/benchmark/cmake/llvm-toolchain.cmake +0 -8
  73. data/vendor/simdjson/dependencies/benchmark/cmake/posix_regex.cpp +0 -14
  74. data/vendor/simdjson/dependencies/benchmark/cmake/split_list.cmake +0 -3
  75. data/vendor/simdjson/dependencies/benchmark/cmake/std_regex.cpp +0 -10
  76. data/vendor/simdjson/dependencies/benchmark/cmake/steady_clock.cpp +0 -7
  77. data/vendor/simdjson/dependencies/benchmark/cmake/thread_safety_attributes.cpp +0 -4
  78. data/vendor/simdjson/dependencies/benchmark/cmake_install.cmake +0 -45
  79. data/vendor/simdjson/dependencies/benchmark/conan/CMakeLists.txt +0 -7
  80. data/vendor/simdjson/dependencies/benchmark/conan/test_package/CMakeLists.txt +0 -10
  81. data/vendor/simdjson/dependencies/benchmark/conan/test_package/conanfile.py +0 -19
  82. data/vendor/simdjson/dependencies/benchmark/conan/test_package/test_package.cpp +0 -18
  83. data/vendor/simdjson/dependencies/benchmark/conanfile.py +0 -79
  84. data/vendor/simdjson/dependencies/benchmark/dependencies.md +0 -18
  85. data/vendor/simdjson/dependencies/benchmark/docs/AssemblyTests.md +0 -147
  86. data/vendor/simdjson/dependencies/benchmark/docs/_config.yml +0 -1
  87. data/vendor/simdjson/dependencies/benchmark/docs/tools.md +0 -199
  88. data/vendor/simdjson/dependencies/benchmark/include/benchmark/benchmark.h +0 -1586
  89. data/vendor/simdjson/dependencies/benchmark/mingw.py +0 -320
  90. data/vendor/simdjson/dependencies/benchmark/releasing.md +0 -16
  91. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/CMakeDirectoryInformation.cmake +0 -16
  92. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/CXX.includecache +0 -738
  93. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/DependInfo.cmake +0 -47
  94. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/build.make +0 -354
  95. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/cmake_clean.cmake +0 -27
  96. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/cmake_clean_target.cmake +0 -3
  97. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/depend.internal +0 -157
  98. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/depend.make +0 -157
  99. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/flags.make +0 -10
  100. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/link.txt +0 -2
  101. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/progress.make +0 -20
  102. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/CXX.includecache +0 -40
  103. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/DependInfo.cmake +0 -31
  104. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/build.make +0 -99
  105. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/cmake_clean.cmake +0 -10
  106. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/cmake_clean_target.cmake +0 -3
  107. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/depend.internal +0 -6
  108. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/depend.make +0 -6
  109. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/flags.make +0 -10
  110. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/link.txt +0 -2
  111. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/progress.make +0 -3
  112. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/progress.marks +0 -1
  113. data/vendor/simdjson/dependencies/benchmark/src/CMakeLists.txt +0 -116
  114. data/vendor/simdjson/dependencies/benchmark/src/CTestTestfile.cmake +0 -6
  115. data/vendor/simdjson/dependencies/benchmark/src/Makefile +0 -822
  116. data/vendor/simdjson/dependencies/benchmark/src/arraysize.h +0 -33
  117. data/vendor/simdjson/dependencies/benchmark/src/benchmark.cc +0 -499
  118. data/vendor/simdjson/dependencies/benchmark/src/benchmark_api_internal.cc +0 -15
  119. data/vendor/simdjson/dependencies/benchmark/src/benchmark_api_internal.h +0 -53
  120. data/vendor/simdjson/dependencies/benchmark/src/benchmark_main.cc +0 -17
  121. data/vendor/simdjson/dependencies/benchmark/src/benchmark_name.cc +0 -58
  122. data/vendor/simdjson/dependencies/benchmark/src/benchmark_register.cc +0 -506
  123. data/vendor/simdjson/dependencies/benchmark/src/benchmark_register.h +0 -107
  124. data/vendor/simdjson/dependencies/benchmark/src/benchmark_runner.cc +0 -361
  125. data/vendor/simdjson/dependencies/benchmark/src/benchmark_runner.h +0 -51
  126. data/vendor/simdjson/dependencies/benchmark/src/check.h +0 -82
  127. data/vendor/simdjson/dependencies/benchmark/src/cmake_install.cmake +0 -39
  128. data/vendor/simdjson/dependencies/benchmark/src/colorprint.cc +0 -188
  129. data/vendor/simdjson/dependencies/benchmark/src/colorprint.h +0 -33
  130. data/vendor/simdjson/dependencies/benchmark/src/commandlineflags.cc +0 -228
  131. data/vendor/simdjson/dependencies/benchmark/src/commandlineflags.h +0 -103
  132. data/vendor/simdjson/dependencies/benchmark/src/complexity.cc +0 -238
  133. data/vendor/simdjson/dependencies/benchmark/src/complexity.h +0 -55
  134. data/vendor/simdjson/dependencies/benchmark/src/console_reporter.cc +0 -177
  135. data/vendor/simdjson/dependencies/benchmark/src/counter.cc +0 -80
  136. data/vendor/simdjson/dependencies/benchmark/src/counter.h +0 -32
  137. data/vendor/simdjson/dependencies/benchmark/src/csv_reporter.cc +0 -154
  138. data/vendor/simdjson/dependencies/benchmark/src/cycleclock.h +0 -192
  139. data/vendor/simdjson/dependencies/benchmark/src/internal_macros.h +0 -94
  140. data/vendor/simdjson/dependencies/benchmark/src/json_reporter.cc +0 -253
  141. data/vendor/simdjson/dependencies/benchmark/src/log.h +0 -74
  142. data/vendor/simdjson/dependencies/benchmark/src/mutex.h +0 -155
  143. data/vendor/simdjson/dependencies/benchmark/src/re.h +0 -158
  144. data/vendor/simdjson/dependencies/benchmark/src/reporter.cc +0 -105
  145. data/vendor/simdjson/dependencies/benchmark/src/sleep.cc +0 -51
  146. data/vendor/simdjson/dependencies/benchmark/src/sleep.h +0 -15
  147. data/vendor/simdjson/dependencies/benchmark/src/statistics.cc +0 -193
  148. data/vendor/simdjson/dependencies/benchmark/src/statistics.h +0 -37
  149. data/vendor/simdjson/dependencies/benchmark/src/string_util.cc +0 -252
  150. data/vendor/simdjson/dependencies/benchmark/src/string_util.h +0 -59
  151. data/vendor/simdjson/dependencies/benchmark/src/sysinfo.cc +0 -708
  152. data/vendor/simdjson/dependencies/benchmark/src/thread_manager.h +0 -64
  153. data/vendor/simdjson/dependencies/benchmark/src/thread_timer.h +0 -86
  154. data/vendor/simdjson/dependencies/benchmark/src/timers.cc +0 -217
  155. data/vendor/simdjson/dependencies/benchmark/src/timers.h +0 -48
  156. data/vendor/simdjson/dependencies/benchmark/test/AssemblyTests.cmake +0 -46
  157. data/vendor/simdjson/dependencies/benchmark/test/BUILD +0 -73
  158. data/vendor/simdjson/dependencies/benchmark/test/CMakeLists.txt +0 -260
  159. data/vendor/simdjson/dependencies/benchmark/test/basic_test.cc +0 -136
  160. data/vendor/simdjson/dependencies/benchmark/test/benchmark_gtest.cc +0 -128
  161. data/vendor/simdjson/dependencies/benchmark/test/benchmark_name_gtest.cc +0 -74
  162. data/vendor/simdjson/dependencies/benchmark/test/benchmark_test.cc +0 -245
  163. data/vendor/simdjson/dependencies/benchmark/test/clobber_memory_assembly_test.cc +0 -64
  164. data/vendor/simdjson/dependencies/benchmark/test/commandlineflags_gtest.cc +0 -201
  165. data/vendor/simdjson/dependencies/benchmark/test/complexity_test.cc +0 -213
  166. data/vendor/simdjson/dependencies/benchmark/test/cxx03_test.cc +0 -63
  167. data/vendor/simdjson/dependencies/benchmark/test/diagnostics_test.cc +0 -80
  168. data/vendor/simdjson/dependencies/benchmark/test/display_aggregates_only_test.cc +0 -43
  169. data/vendor/simdjson/dependencies/benchmark/test/donotoptimize_assembly_test.cc +0 -163
  170. data/vendor/simdjson/dependencies/benchmark/test/donotoptimize_test.cc +0 -52
  171. data/vendor/simdjson/dependencies/benchmark/test/filter_test.cc +0 -104
  172. data/vendor/simdjson/dependencies/benchmark/test/fixture_test.cc +0 -49
  173. data/vendor/simdjson/dependencies/benchmark/test/internal_threading_test.cc +0 -184
  174. data/vendor/simdjson/dependencies/benchmark/test/link_main_test.cc +0 -8
  175. data/vendor/simdjson/dependencies/benchmark/test/map_test.cc +0 -57
  176. data/vendor/simdjson/dependencies/benchmark/test/memory_manager_test.cc +0 -44
  177. data/vendor/simdjson/dependencies/benchmark/test/multiple_ranges_test.cc +0 -96
  178. data/vendor/simdjson/dependencies/benchmark/test/options_test.cc +0 -75
  179. data/vendor/simdjson/dependencies/benchmark/test/output_test.h +0 -213
  180. data/vendor/simdjson/dependencies/benchmark/test/output_test_helper.cc +0 -515
  181. data/vendor/simdjson/dependencies/benchmark/test/register_benchmark_test.cc +0 -184
  182. data/vendor/simdjson/dependencies/benchmark/test/report_aggregates_only_test.cc +0 -39
  183. data/vendor/simdjson/dependencies/benchmark/test/reporter_output_test.cc +0 -748
  184. data/vendor/simdjson/dependencies/benchmark/test/skip_with_error_test.cc +0 -189
  185. data/vendor/simdjson/dependencies/benchmark/test/state_assembly_test.cc +0 -68
  186. data/vendor/simdjson/dependencies/benchmark/test/statistics_gtest.cc +0 -28
  187. data/vendor/simdjson/dependencies/benchmark/test/string_util_gtest.cc +0 -153
  188. data/vendor/simdjson/dependencies/benchmark/test/templated_fixture_test.cc +0 -28
  189. data/vendor/simdjson/dependencies/benchmark/test/user_counters_tabular_test.cc +0 -285
  190. data/vendor/simdjson/dependencies/benchmark/test/user_counters_test.cc +0 -531
  191. data/vendor/simdjson/dependencies/benchmark/test/user_counters_thousands_test.cc +0 -173
  192. data/vendor/simdjson/dependencies/benchmark/tools/compare.py +0 -408
  193. data/vendor/simdjson/dependencies/benchmark/tools/gbench/__init__.py +0 -8
  194. data/vendor/simdjson/dependencies/benchmark/tools/gbench/report.py +0 -541
  195. data/vendor/simdjson/dependencies/benchmark/tools/gbench/util.py +0 -164
  196. data/vendor/simdjson/dependencies/benchmark/tools/strip_asm.py +0 -151
  197. data/vendor/simdjson/dependencies/cJSON/CHANGELOG.md +0 -375
  198. data/vendor/simdjson/dependencies/cJSON/CMakeLists.txt +0 -251
  199. data/vendor/simdjson/dependencies/cJSON/CONTRIBUTORS.md +0 -51
  200. data/vendor/simdjson/dependencies/cJSON/LICENSE +0 -20
  201. data/vendor/simdjson/dependencies/cJSON/Makefile +0 -157
  202. data/vendor/simdjson/dependencies/cJSON/README.md +0 -533
  203. data/vendor/simdjson/dependencies/cJSON/appveyor.yml +0 -86
  204. data/vendor/simdjson/dependencies/cJSON/cJSON.c +0 -2936
  205. data/vendor/simdjson/dependencies/cJSON/cJSON.h +0 -285
  206. data/vendor/simdjson/dependencies/cJSON/cJSON_Utils.c +0 -1450
  207. data/vendor/simdjson/dependencies/cJSON/cJSON_Utils.h +0 -88
  208. data/vendor/simdjson/dependencies/cJSON/fuzzing/CMakeLists.txt +0 -28
  209. data/vendor/simdjson/dependencies/cJSON/fuzzing/afl-prepare-linux.sh +0 -5
  210. data/vendor/simdjson/dependencies/cJSON/fuzzing/afl.c +0 -176
  211. data/vendor/simdjson/dependencies/cJSON/fuzzing/afl.sh +0 -9
  212. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test1 +0 -22
  213. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test10 +0 -1
  214. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test11 +0 -8
  215. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test2 +0 -11
  216. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test3 +0 -26
  217. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test3.bu +0 -26
  218. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test3.uf +0 -26
  219. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test3.uu +0 -26
  220. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test4 +0 -88
  221. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test5 +0 -27
  222. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test6 +0 -16
  223. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test7 +0 -22
  224. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test8 +0 -13
  225. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test9 +0 -5
  226. data/vendor/simdjson/dependencies/cJSON/fuzzing/json.dict +0 -47
  227. data/vendor/simdjson/dependencies/cJSON/library_config/cJSONConfig.cmake.in +0 -29
  228. data/vendor/simdjson/dependencies/cJSON/library_config/cJSONConfigVersion.cmake.in +0 -11
  229. data/vendor/simdjson/dependencies/cJSON/library_config/libcjson.pc.in +0 -10
  230. data/vendor/simdjson/dependencies/cJSON/library_config/libcjson_utils.pc.in +0 -10
  231. data/vendor/simdjson/dependencies/cJSON/test.c +0 -268
  232. data/vendor/simdjson/dependencies/cJSON/tests/CMakeLists.txt +0 -115
  233. data/vendor/simdjson/dependencies/cJSON/tests/cjson_add.c +0 -422
  234. data/vendor/simdjson/dependencies/cJSON/tests/common.h +0 -122
  235. data/vendor/simdjson/dependencies/cJSON/tests/compare_tests.c +0 -205
  236. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test1 +0 -22
  237. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test1.expected +0 -22
  238. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test10 +0 -1
  239. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test10.expected +0 -1
  240. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test11 +0 -8
  241. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test11.expected +0 -10
  242. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test2 +0 -11
  243. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test2.expected +0 -18
  244. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test3 +0 -26
  245. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test3.expected +0 -28
  246. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test4 +0 -88
  247. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test4.expected +0 -94
  248. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test5 +0 -27
  249. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test5.expected +0 -54
  250. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test6 +0 -16
  251. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test7 +0 -22
  252. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test7.expected +0 -19
  253. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test8 +0 -13
  254. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test8.expected +0 -13
  255. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test9 +0 -5
  256. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test9.expected +0 -1
  257. data/vendor/simdjson/dependencies/cJSON/tests/json-patch-tests/README.md +0 -75
  258. data/vendor/simdjson/dependencies/cJSON/tests/json_patch_tests.c +0 -243
  259. data/vendor/simdjson/dependencies/cJSON/tests/misc_tests.c +0 -579
  260. data/vendor/simdjson/dependencies/cJSON/tests/misc_utils_tests.c +0 -80
  261. data/vendor/simdjson/dependencies/cJSON/tests/old_utils_tests.c +0 -205
  262. data/vendor/simdjson/dependencies/cJSON/tests/parse_array.c +0 -166
  263. data/vendor/simdjson/dependencies/cJSON/tests/parse_examples.c +0 -214
  264. data/vendor/simdjson/dependencies/cJSON/tests/parse_hex4.c +0 -73
  265. data/vendor/simdjson/dependencies/cJSON/tests/parse_number.c +0 -110
  266. data/vendor/simdjson/dependencies/cJSON/tests/parse_object.c +0 -176
  267. data/vendor/simdjson/dependencies/cJSON/tests/parse_string.c +0 -135
  268. data/vendor/simdjson/dependencies/cJSON/tests/parse_value.c +0 -112
  269. data/vendor/simdjson/dependencies/cJSON/tests/parse_with_opts.c +0 -112
  270. data/vendor/simdjson/dependencies/cJSON/tests/print_array.c +0 -100
  271. data/vendor/simdjson/dependencies/cJSON/tests/print_number.c +0 -105
  272. data/vendor/simdjson/dependencies/cJSON/tests/print_object.c +0 -101
  273. data/vendor/simdjson/dependencies/cJSON/tests/print_string.c +0 -78
  274. data/vendor/simdjson/dependencies/cJSON/tests/print_value.c +0 -107
  275. data/vendor/simdjson/dependencies/cJSON/tests/readme_examples.c +0 -258
  276. data/vendor/simdjson/dependencies/cJSON/tests/unity/README.md +0 -231
  277. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/colour_prompt.rb +0 -118
  278. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/colour_reporter.rb +0 -39
  279. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/generate_config.yml +0 -36
  280. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/generate_module.rb +0 -308
  281. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/generate_test_runner.rb +0 -454
  282. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/parse_output.rb +0 -220
  283. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/stylize_as_junit.rb +0 -252
  284. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/test_file_filter.rb +0 -25
  285. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/type_sanitizer.rb +0 -6
  286. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/unity_test_summary.py +0 -139
  287. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/unity_test_summary.rb +0 -136
  288. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/unity_to_junit.py +0 -146
  289. data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/ThrowTheSwitchCodingStandard.md +0 -207
  290. data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf +0 -0
  291. data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityAssertionsReference.md +0 -770
  292. data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityConfigurationGuide.md +0 -435
  293. data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityGettingStartedGuide.md +0 -191
  294. data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityHelperScriptsGuide.md +0 -254
  295. data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/license.txt +0 -21
  296. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/makefile +0 -71
  297. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/readme.txt +0 -5
  298. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/src/ProductionCode.c +0 -24
  299. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/src/ProductionCode.h +0 -3
  300. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/src/ProductionCode2.c +0 -11
  301. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/src/ProductionCode2.h +0 -2
  302. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/test/TestProductionCode.c +0 -62
  303. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/test/TestProductionCode2.c +0 -31
  304. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +0 -53
  305. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +0 -57
  306. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/makefile +0 -70
  307. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/readme.txt +0 -5
  308. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/src/ProductionCode.c +0 -24
  309. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/src/ProductionCode.h +0 -3
  310. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/src/ProductionCode2.c +0 -11
  311. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/src/ProductionCode2.h +0 -2
  312. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/TestProductionCode.c +0 -64
  313. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/TestProductionCode2.c +0 -33
  314. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +0 -9
  315. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +0 -11
  316. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/test_runners/all_tests.c +0 -12
  317. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/helper/UnityHelper.c +0 -10
  318. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/helper/UnityHelper.h +0 -12
  319. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/rakefile.rb +0 -43
  320. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/rakefile_helper.rb +0 -249
  321. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/readme.txt +0 -13
  322. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/src/ProductionCode.c +0 -24
  323. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/src/ProductionCode.h +0 -3
  324. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/src/ProductionCode2.c +0 -11
  325. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/src/ProductionCode2.h +0 -2
  326. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/target_gcc_32.yml +0 -46
  327. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/test/TestProductionCode.c +0 -62
  328. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/test/TestProductionCode2.c +0 -31
  329. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/unity_config.h +0 -239
  330. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/eclipse/error_parsers.txt +0 -26
  331. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/rakefile.rb +0 -48
  332. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/rakefile_helper.rb +0 -178
  333. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/readme.txt +0 -9
  334. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/src/unity_fixture.c +0 -432
  335. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/src/unity_fixture.h +0 -83
  336. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/src/unity_fixture_internals.h +0 -51
  337. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +0 -47
  338. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/Makefile +0 -75
  339. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/main/AllTests.c +0 -22
  340. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/template_fixture_tests.c +0 -39
  341. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/unity_fixture_Test.c +0 -543
  342. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/unity_fixture_TestRunner.c +0 -57
  343. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/unity_output_Spy.c +0 -57
  344. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/unity_output_Spy.h +0 -17
  345. data/vendor/simdjson/dependencies/cJSON/tests/unity/release/build.info +0 -2
  346. data/vendor/simdjson/dependencies/cJSON/tests/unity/release/version.info +0 -2
  347. data/vendor/simdjson/dependencies/cJSON/tests/unity/src/unity.c +0 -1570
  348. data/vendor/simdjson/dependencies/cJSON/tests/unity/src/unity.h +0 -503
  349. data/vendor/simdjson/dependencies/cJSON/tests/unity/src/unity_internals.h +0 -870
  350. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/Makefile +0 -66
  351. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_cmd.c +0 -61
  352. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_def.c +0 -57
  353. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_head1.c +0 -55
  354. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_head1.h +0 -15
  355. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_cmd.c +0 -80
  356. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_def.c +0 -76
  357. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_head1.c +0 -75
  358. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_head1.h +0 -13
  359. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_new1.c +0 -89
  360. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_new2.c +0 -89
  361. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_param.c +0 -77
  362. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_run1.c +0 -89
  363. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_run2.c +0 -89
  364. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_yaml.c +0 -90
  365. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_new1.c +0 -67
  366. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_new2.c +0 -70
  367. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_param.c +0 -58
  368. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_run1.c +0 -67
  369. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_run2.c +0 -70
  370. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_yaml.c +0 -71
  371. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/rakefile +0 -125
  372. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/rakefile_helper.rb +0 -260
  373. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/spec/generate_module_existing_file_spec.rb +0 -158
  374. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/clang_file.yml +0 -78
  375. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/clang_strict.yml +0 -78
  376. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_32.yml +0 -49
  377. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_64.yml +0 -50
  378. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_auto_limits.yml +0 -47
  379. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_auto_stdint.yml +0 -59
  380. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_manual_math.yml +0 -47
  381. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/hitech_picc18.yml +0 -101
  382. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_arm_v4.yml +0 -90
  383. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_arm_v5.yml +0 -80
  384. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_arm_v5_3.yml +0 -80
  385. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +0 -94
  386. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_cortexm3_v5.yml +0 -84
  387. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_msp430.yml +0 -95
  388. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_sh2a_v6.yml +0 -86
  389. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/CException.h +0 -11
  390. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/Defs.h +0 -8
  391. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/cmock.h +0 -14
  392. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/mockMock.h +0 -13
  393. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/testRunnerGenerator.c +0 -183
  394. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/testRunnerGeneratorSmall.c +0 -67
  395. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/testRunnerGeneratorWithMocks.c +0 -192
  396. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/tests/test_generate_test_runner.rb +0 -1252
  397. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/tests/testparameterized.c +0 -110
  398. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/tests/testunity.c +0 -5337
  399. data/vendor/simdjson/dependencies/cJSON/tests/unity_setup.c +0 -3
  400. data/vendor/simdjson/dependencies/cJSON/valgrind.supp +0 -6
  401. data/vendor/simdjson/dependencies/cxxopts/CHANGELOG.md +0 -97
  402. data/vendor/simdjson/dependencies/cxxopts/CMakeLists.txt +0 -108
  403. data/vendor/simdjson/dependencies/cxxopts/INSTALL +0 -23
  404. data/vendor/simdjson/dependencies/cxxopts/LICENSE +0 -19
  405. data/vendor/simdjson/dependencies/cxxopts/README.md +0 -208
  406. data/vendor/simdjson/dependencies/cxxopts/cxxopts-config.cmake.in +0 -4
  407. data/vendor/simdjson/dependencies/cxxopts/include/cxxopts.hpp +0 -2193
  408. data/vendor/simdjson/dependencies/cxxopts/src/CMakeLists.txt +0 -24
  409. data/vendor/simdjson/dependencies/cxxopts/src/example.cpp +0 -167
  410. data/vendor/simdjson/dependencies/cxxopts/test/CMakeLists.txt +0 -35
  411. data/vendor/simdjson/dependencies/cxxopts/test/add-subdirectory-test/CMakeLists.txt +0 -11
  412. data/vendor/simdjson/dependencies/cxxopts/test/catch.hpp +0 -10460
  413. data/vendor/simdjson/dependencies/cxxopts/test/find-package-test/CMakeLists.txt +0 -11
  414. data/vendor/simdjson/dependencies/cxxopts/test/link_a.cpp +0 -6
  415. data/vendor/simdjson/dependencies/cxxopts/test/link_b.cpp +0 -1
  416. data/vendor/simdjson/dependencies/cxxopts/test/main.cpp +0 -2
  417. data/vendor/simdjson/dependencies/cxxopts/test/options.cpp +0 -776
  418. data/vendor/simdjson/dependencies/fastjson/LICENSE.txt +0 -24
  419. data/vendor/simdjson/dependencies/fastjson/Makefile +0 -5
  420. data/vendor/simdjson/dependencies/fastjson/README.md +0 -68
  421. data/vendor/simdjson/dependencies/fastjson/SConstruct +0 -44
  422. data/vendor/simdjson/dependencies/fastjson/examples/address_book/Makefile +0 -2
  423. data/vendor/simdjson/dependencies/fastjson/examples/address_book/README.markdown +0 -5
  424. data/vendor/simdjson/dependencies/fastjson/examples/address_book/address_book.cpp +0 -166
  425. data/vendor/simdjson/dependencies/fastjson/include/fastjson/core.h +0 -146
  426. data/vendor/simdjson/dependencies/fastjson/include/fastjson/dom.h +0 -799
  427. data/vendor/simdjson/dependencies/fastjson/include/fastjson/error.h +0 -64
  428. data/vendor/simdjson/dependencies/fastjson/include/fastjson/fastjson.h +0 -161
  429. data/vendor/simdjson/dependencies/fastjson/include/fastjson/utils.h +0 -62
  430. data/vendor/simdjson/dependencies/fastjson/src/fastjson.cpp +0 -1016
  431. data/vendor/simdjson/dependencies/fastjson/src/fastjson2.cpp +0 -440
  432. data/vendor/simdjson/dependencies/fastjson/src/fastjson_dom.cpp +0 -165
  433. data/vendor/simdjson/dependencies/fastjson/tests/00-bug-00-bad-parse.cpp +0 -59
  434. data/vendor/simdjson/dependencies/fastjson/tests/00-bug-01-string-roundtrip.cpp +0 -88
  435. data/vendor/simdjson/dependencies/fastjson/tests/00-bug-02-unicode-escape.cpp +0 -66
  436. data/vendor/simdjson/dependencies/fastjson/tests/01-dom-00-dict-const-get.cpp +0 -35
  437. data/vendor/simdjson/dependencies/fastjson/tests/01-dom-01-vector-from-json.cpp +0 -36
  438. data/vendor/simdjson/dependencies/fastjson/tests/Makefile +0 -4
  439. data/vendor/simdjson/dependencies/fastjson/tests/clone_token.cpp +0 -49
  440. data/vendor/simdjson/dependencies/fastjson/tests/dom_from_string.cpp +0 -77
  441. data/vendor/simdjson/dependencies/fastjson/tests/misc/dynamic_test.cpp +0 -49
  442. data/vendor/simdjson/dependencies/fastjson/tests/misc/from_file.cpp +0 -57
  443. data/vendor/simdjson/dependencies/fastjson/tests/misc/speed_test.cpp +0 -127
  444. data/vendor/simdjson/dependencies/fastjson/tests/misc/speed_test_boost.cpp +0 -115
  445. data/vendor/simdjson/dependencies/fastjson/tests/saruconf +0 -3
  446. data/vendor/simdjson/dependencies/fastjson/tests/test0.cpp +0 -385
  447. data/vendor/simdjson/dependencies/fastjson/tests/test1.cpp +0 -237
  448. data/vendor/simdjson/dependencies/fastjson/tests/test2.cpp +0 -301
  449. data/vendor/simdjson/dependencies/fastjson/tests/test_permissive_count.cpp +0 -100
  450. data/vendor/simdjson/dependencies/fastjson/tests/test_permissive_parse.cpp +0 -83
  451. data/vendor/simdjson/dependencies/fastjson/tests/test_permissive_roundtrip.cpp +0 -64
  452. data/vendor/simdjson/dependencies/fastjson/tests/test_utils.cpp +0 -176
  453. data/vendor/simdjson/dependencies/gason/CMakeLists.txt +0 -16
  454. data/vendor/simdjson/dependencies/gason/LICENSE +0 -20
  455. data/vendor/simdjson/dependencies/gason/README.md +0 -167
  456. data/vendor/simdjson/dependencies/gason/data/download.sh +0 -5
  457. data/vendor/simdjson/dependencies/gason/ruberoid/AndroidManifest.xml +0 -32
  458. data/vendor/simdjson/dependencies/gason/ruberoid/res/values/strings.xml +0 -4
  459. data/vendor/simdjson/dependencies/gason/src/benchmark.cpp +0 -257
  460. data/vendor/simdjson/dependencies/gason/src/gason.cpp +0 -334
  461. data/vendor/simdjson/dependencies/gason/src/gason.h +0 -135
  462. data/vendor/simdjson/dependencies/gason/src/pretty-print.cpp +0 -192
  463. data/vendor/simdjson/dependencies/gason/src/test-suite.cpp +0 -146
  464. data/vendor/simdjson/dependencies/jsmn/LICENSE +0 -20
  465. data/vendor/simdjson/dependencies/jsmn/Makefile +0 -41
  466. data/vendor/simdjson/dependencies/jsmn/README.md +0 -168
  467. data/vendor/simdjson/dependencies/jsmn/example/jsondump.c +0 -126
  468. data/vendor/simdjson/dependencies/jsmn/example/simple.c +0 -76
  469. data/vendor/simdjson/dependencies/jsmn/jsmn.c +0 -314
  470. data/vendor/simdjson/dependencies/jsmn/jsmn.h +0 -76
  471. data/vendor/simdjson/dependencies/jsmn/test/test.h +0 -27
  472. data/vendor/simdjson/dependencies/jsmn/test/tests.c +0 -407
  473. data/vendor/simdjson/dependencies/jsmn/test/testutil.h +0 -94
  474. data/vendor/simdjson/dependencies/json/CMakeLists.txt +0 -131
  475. data/vendor/simdjson/dependencies/json/CODE_OF_CONDUCT.md +0 -46
  476. data/vendor/simdjson/dependencies/json/ChangeLog.md +0 -1670
  477. data/vendor/simdjson/dependencies/json/LICENSE.MIT +0 -21
  478. data/vendor/simdjson/dependencies/json/Makefile +0 -629
  479. data/vendor/simdjson/dependencies/json/README.md +0 -1370
  480. data/vendor/simdjson/dependencies/json/appveyor.yml +0 -111
  481. data/vendor/simdjson/dependencies/json/benchmarks/CMakeLists.txt +0 -28
  482. data/vendor/simdjson/dependencies/json/benchmarks/src/benchmarks.cpp +0 -109
  483. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/AUTHORS +0 -46
  484. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/BUILD.bazel +0 -42
  485. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/CMakeLists.txt +0 -251
  486. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/CONTRIBUTING.md +0 -58
  487. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/CONTRIBUTORS +0 -65
  488. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/LICENSE +0 -202
  489. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/README.md +0 -950
  490. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/WORKSPACE +0 -7
  491. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/appveyor.yml +0 -56
  492. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/AddCXXCompilerFlag.cmake +0 -74
  493. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/CXXFeatureCheck.cmake +0 -64
  494. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/Config.cmake.in +0 -1
  495. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/GetGitVersion.cmake +0 -54
  496. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/HandleGTest.cmake +0 -113
  497. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/Modules/FindLLVMAr.cmake +0 -16
  498. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/Modules/FindLLVMNm.cmake +0 -16
  499. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/Modules/FindLLVMRanLib.cmake +0 -15
  500. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/benchmark.pc.in +0 -11
  501. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/gnu_posix_regex.cpp +0 -12
  502. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/llvm-toolchain.cmake +0 -8
  503. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/posix_regex.cpp +0 -14
  504. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/split_list.cmake +0 -3
  505. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/std_regex.cpp +0 -10
  506. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/steady_clock.cpp +0 -7
  507. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/thread_safety_attributes.cpp +0 -4
  508. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/docs/AssemblyTests.md +0 -147
  509. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/docs/tools.md +0 -242
  510. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/include/benchmark/benchmark.h +0 -1456
  511. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/mingw.py +0 -320
  512. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/releasing.md +0 -16
  513. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/CMakeLists.txt +0 -105
  514. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/arraysize.h +0 -33
  515. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark.cc +0 -630
  516. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark_api_internal.h +0 -47
  517. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark_main.cc +0 -17
  518. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark_register.cc +0 -461
  519. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark_register.h +0 -33
  520. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/check.h +0 -79
  521. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/colorprint.cc +0 -188
  522. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/colorprint.h +0 -33
  523. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/commandlineflags.cc +0 -218
  524. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/commandlineflags.h +0 -79
  525. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/complexity.cc +0 -220
  526. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/complexity.h +0 -55
  527. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/console_reporter.cc +0 -182
  528. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/counter.cc +0 -68
  529. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/counter.h +0 -26
  530. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/csv_reporter.cc +0 -149
  531. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/cycleclock.h +0 -177
  532. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/internal_macros.h +0 -89
  533. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/json_reporter.cc +0 -205
  534. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/log.h +0 -73
  535. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/mutex.h +0 -155
  536. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/re.h +0 -152
  537. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/reporter.cc +0 -87
  538. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/sleep.cc +0 -51
  539. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/sleep.h +0 -15
  540. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/statistics.cc +0 -178
  541. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/statistics.h +0 -37
  542. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/string_util.cc +0 -172
  543. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/string_util.h +0 -40
  544. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/sysinfo.cc +0 -587
  545. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/thread_manager.h +0 -66
  546. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/thread_timer.h +0 -69
  547. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/timers.cc +0 -217
  548. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/timers.h +0 -48
  549. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/compare.py +0 -316
  550. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/compare_bench.py +0 -67
  551. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/gbench/__init__.py +0 -8
  552. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/gbench/report.py +0 -208
  553. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/gbench/util.py +0 -159
  554. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/strip_asm.py +0 -151
  555. data/vendor/simdjson/dependencies/json/cmake/config.cmake.in +0 -15
  556. data/vendor/simdjson/dependencies/json/doc/Doxyfile +0 -335
  557. data/vendor/simdjson/dependencies/json/doc/Makefile +0 -90
  558. data/vendor/simdjson/dependencies/json/doc/avatars.png +0 -0
  559. data/vendor/simdjson/dependencies/json/doc/binary_formats.md +0 -171
  560. data/vendor/simdjson/dependencies/json/doc/css/mylayout.css +0 -26
  561. data/vendor/simdjson/dependencies/json/doc/css/mylayout_docset.css +0 -27
  562. data/vendor/simdjson/dependencies/json/doc/examples/README.cpp +0 -39
  563. data/vendor/simdjson/dependencies/json/doc/examples/README.link +0 -1
  564. data/vendor/simdjson/dependencies/json/doc/examples/README.output +0 -27
  565. data/vendor/simdjson/dependencies/json/doc/examples/array.cpp +0 -19
  566. data/vendor/simdjson/dependencies/json/doc/examples/array.link +0 -1
  567. data/vendor/simdjson/dependencies/json/doc/examples/array.output +0 -4
  568. data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type.cpp +0 -48
  569. data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type.link +0 -1
  570. data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type.output +0 -4
  571. data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type_const.cpp +0 -42
  572. data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type_const.link +0 -1
  573. data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type_const.output +0 -3
  574. data/vendor/simdjson/dependencies/json/doc/examples/at__size_type.cpp +0 -43
  575. data/vendor/simdjson/dependencies/json/doc/examples/at__size_type.link +0 -1
  576. data/vendor/simdjson/dependencies/json/doc/examples/at__size_type.output +0 -4
  577. data/vendor/simdjson/dependencies/json/doc/examples/at__size_type_const.cpp +0 -37
  578. data/vendor/simdjson/dependencies/json/doc/examples/at__size_type_const.link +0 -1
  579. data/vendor/simdjson/dependencies/json/doc/examples/at__size_type_const.output +0 -3
  580. data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer.cpp +0 -103
  581. data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer.link +0 -1
  582. data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer.output +0 -12
  583. data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer_const.cpp +0 -79
  584. data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer_const.link +0 -1
  585. data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer_const.output +0 -9
  586. data/vendor/simdjson/dependencies/json/doc/examples/back.cpp +0 -38
  587. data/vendor/simdjson/dependencies/json/doc/examples/back.link +0 -1
  588. data/vendor/simdjson/dependencies/json/doc/examples/back.output +0 -7
  589. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__CompatibleType.cpp +0 -218
  590. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__CompatibleType.link +0 -1
  591. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__CompatibleType.output +0 -39
  592. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__InputIt_InputIt.cpp +0 -32
  593. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__InputIt_InputIt.link +0 -1
  594. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__InputIt_InputIt.output +0 -4
  595. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__basic_json.cpp +0 -17
  596. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__basic_json.link +0 -1
  597. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__basic_json.output +0 -2
  598. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__copyassignment.cpp +0 -18
  599. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__copyassignment.link +0 -1
  600. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__copyassignment.output +0 -2
  601. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__list_init_t.cpp +0 -21
  602. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__list_init_t.link +0 -1
  603. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__list_init_t.output +0 -5
  604. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__moveconstructor.cpp +0 -17
  605. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__moveconstructor.link +0 -1
  606. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__moveconstructor.output +0 -2
  607. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__nullptr_t.cpp +0 -16
  608. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__nullptr_t.link +0 -1
  609. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__nullptr_t.output +0 -2
  610. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__size_type_basic_json.cpp +0 -18
  611. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__size_type_basic_json.link +0 -1
  612. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__size_type_basic_json.output +0 -3
  613. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value.cpp +0 -30
  614. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value.link +0 -1
  615. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value.output +0 -1
  616. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_ptr.cpp +0 -30
  617. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_ptr.link +0 -1
  618. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_ptr.output +0 -1
  619. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_t.cpp +0 -25
  620. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_t.link +0 -1
  621. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_t.output +0 -7
  622. data/vendor/simdjson/dependencies/json/doc/examples/begin.cpp +0 -16
  623. data/vendor/simdjson/dependencies/json/doc/examples/begin.link +0 -1
  624. data/vendor/simdjson/dependencies/json/doc/examples/begin.output +0 -1
  625. data/vendor/simdjson/dependencies/json/doc/examples/cbegin.cpp +0 -16
  626. data/vendor/simdjson/dependencies/json/doc/examples/cbegin.link +0 -1
  627. data/vendor/simdjson/dependencies/json/doc/examples/cbegin.output +0 -1
  628. data/vendor/simdjson/dependencies/json/doc/examples/cend.cpp +0 -19
  629. data/vendor/simdjson/dependencies/json/doc/examples/cend.link +0 -1
  630. data/vendor/simdjson/dependencies/json/doc/examples/cend.output +0 -1
  631. data/vendor/simdjson/dependencies/json/doc/examples/clear.cpp +0 -34
  632. data/vendor/simdjson/dependencies/json/doc/examples/clear.link +0 -1
  633. data/vendor/simdjson/dependencies/json/doc/examples/clear.output +0 -7
  634. data/vendor/simdjson/dependencies/json/doc/examples/contains.cpp +0 -17
  635. data/vendor/simdjson/dependencies/json/doc/examples/contains.link +0 -1
  636. data/vendor/simdjson/dependencies/json/doc/examples/contains.output +0 -3
  637. data/vendor/simdjson/dependencies/json/doc/examples/contains_json_pointer.cpp +0 -45
  638. data/vendor/simdjson/dependencies/json/doc/examples/contains_json_pointer.link +0 -1
  639. data/vendor/simdjson/dependencies/json/doc/examples/contains_json_pointer.output +0 -10
  640. data/vendor/simdjson/dependencies/json/doc/examples/count.cpp +0 -18
  641. data/vendor/simdjson/dependencies/json/doc/examples/count.link +0 -1
  642. data/vendor/simdjson/dependencies/json/doc/examples/count.output +0 -2
  643. data/vendor/simdjson/dependencies/json/doc/examples/crbegin.cpp +0 -16
  644. data/vendor/simdjson/dependencies/json/doc/examples/crbegin.link +0 -1
  645. data/vendor/simdjson/dependencies/json/doc/examples/crbegin.output +0 -1
  646. data/vendor/simdjson/dependencies/json/doc/examples/crend.cpp +0 -19
  647. data/vendor/simdjson/dependencies/json/doc/examples/crend.link +0 -1
  648. data/vendor/simdjson/dependencies/json/doc/examples/crend.output +0 -1
  649. data/vendor/simdjson/dependencies/json/doc/examples/diff.cpp +0 -36
  650. data/vendor/simdjson/dependencies/json/doc/examples/diff.link +0 -1
  651. data/vendor/simdjson/dependencies/json/doc/examples/diff.output +0 -25
  652. data/vendor/simdjson/dependencies/json/doc/examples/dump.cpp +0 -48
  653. data/vendor/simdjson/dependencies/json/doc/examples/dump.link +0 -1
  654. data/vendor/simdjson/dependencies/json/doc/examples/dump.output +0 -55
  655. data/vendor/simdjson/dependencies/json/doc/examples/emplace.cpp +0 -31
  656. data/vendor/simdjson/dependencies/json/doc/examples/emplace.link +0 -1
  657. data/vendor/simdjson/dependencies/json/doc/examples/emplace.output +0 -6
  658. data/vendor/simdjson/dependencies/json/doc/examples/emplace_back.cpp +0 -24
  659. data/vendor/simdjson/dependencies/json/doc/examples/emplace_back.link +0 -1
  660. data/vendor/simdjson/dependencies/json/doc/examples/emplace_back.output +0 -4
  661. data/vendor/simdjson/dependencies/json/doc/examples/empty.cpp +0 -30
  662. data/vendor/simdjson/dependencies/json/doc/examples/empty.link +0 -1
  663. data/vendor/simdjson/dependencies/json/doc/examples/empty.output +0 -9
  664. data/vendor/simdjson/dependencies/json/doc/examples/end.cpp +0 -19
  665. data/vendor/simdjson/dependencies/json/doc/examples/end.link +0 -1
  666. data/vendor/simdjson/dependencies/json/doc/examples/end.output +0 -1
  667. data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType.cpp +0 -31
  668. data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType.link +0 -1
  669. data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType.output +0 -6
  670. data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType_IteratorType.cpp +0 -31
  671. data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType_IteratorType.link +0 -1
  672. data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType_IteratorType.output +0 -6
  673. data/vendor/simdjson/dependencies/json/doc/examples/erase__key_type.cpp +0 -18
  674. data/vendor/simdjson/dependencies/json/doc/examples/erase__key_type.link +0 -1
  675. data/vendor/simdjson/dependencies/json/doc/examples/erase__key_type.output +0 -2
  676. data/vendor/simdjson/dependencies/json/doc/examples/erase__size_type.cpp +0 -16
  677. data/vendor/simdjson/dependencies/json/doc/examples/erase__size_type.link +0 -1
  678. data/vendor/simdjson/dependencies/json/doc/examples/erase__size_type.output +0 -1
  679. data/vendor/simdjson/dependencies/json/doc/examples/exception.cpp +0 -20
  680. data/vendor/simdjson/dependencies/json/doc/examples/exception.link +0 -1
  681. data/vendor/simdjson/dependencies/json/doc/examples/exception.output +0 -2
  682. data/vendor/simdjson/dependencies/json/doc/examples/find__key_type.cpp +0 -20
  683. data/vendor/simdjson/dependencies/json/doc/examples/find__key_type.link +0 -1
  684. data/vendor/simdjson/dependencies/json/doc/examples/find__key_type.output +0 -3
  685. data/vendor/simdjson/dependencies/json/doc/examples/flatten.cpp +0 -32
  686. data/vendor/simdjson/dependencies/json/doc/examples/flatten.link +0 -1
  687. data/vendor/simdjson/dependencies/json/doc/examples/flatten.output +0 -12
  688. data/vendor/simdjson/dependencies/json/doc/examples/from_bson.cpp +0 -21
  689. data/vendor/simdjson/dependencies/json/doc/examples/from_bson.link +0 -1
  690. data/vendor/simdjson/dependencies/json/doc/examples/from_bson.output +0 -4
  691. data/vendor/simdjson/dependencies/json/doc/examples/from_cbor.cpp +0 -20
  692. data/vendor/simdjson/dependencies/json/doc/examples/from_cbor.link +0 -1
  693. data/vendor/simdjson/dependencies/json/doc/examples/from_cbor.output +0 -4
  694. data/vendor/simdjson/dependencies/json/doc/examples/from_msgpack.cpp +0 -20
  695. data/vendor/simdjson/dependencies/json/doc/examples/from_msgpack.link +0 -1
  696. data/vendor/simdjson/dependencies/json/doc/examples/from_msgpack.output +0 -4
  697. data/vendor/simdjson/dependencies/json/doc/examples/from_ubjson.cpp +0 -20
  698. data/vendor/simdjson/dependencies/json/doc/examples/from_ubjson.link +0 -1
  699. data/vendor/simdjson/dependencies/json/doc/examples/from_ubjson.output +0 -4
  700. data/vendor/simdjson/dependencies/json/doc/examples/front.cpp +0 -29
  701. data/vendor/simdjson/dependencies/json/doc/examples/front.link +0 -1
  702. data/vendor/simdjson/dependencies/json/doc/examples/front.output +0 -6
  703. data/vendor/simdjson/dependencies/json/doc/examples/get__PointerType.cpp +0 -21
  704. data/vendor/simdjson/dependencies/json/doc/examples/get__PointerType.link +0 -1
  705. data/vendor/simdjson/dependencies/json/doc/examples/get__PointerType.output +0 -2
  706. data/vendor/simdjson/dependencies/json/doc/examples/get__ValueType_const.cpp +0 -50
  707. data/vendor/simdjson/dependencies/json/doc/examples/get__ValueType_const.link +0 -1
  708. data/vendor/simdjson/dependencies/json/doc/examples/get__ValueType_const.output +0 -11
  709. data/vendor/simdjson/dependencies/json/doc/examples/get_ptr.cpp +0 -21
  710. data/vendor/simdjson/dependencies/json/doc/examples/get_ptr.link +0 -1
  711. data/vendor/simdjson/dependencies/json/doc/examples/get_ptr.output +0 -2
  712. data/vendor/simdjson/dependencies/json/doc/examples/get_ref.cpp +0 -27
  713. data/vendor/simdjson/dependencies/json/doc/examples/get_ref.link +0 -1
  714. data/vendor/simdjson/dependencies/json/doc/examples/get_ref.output +0 -2
  715. data/vendor/simdjson/dependencies/json/doc/examples/get_to.cpp +0 -60
  716. data/vendor/simdjson/dependencies/json/doc/examples/get_to.link +0 -1
  717. data/vendor/simdjson/dependencies/json/doc/examples/get_to.output +0 -11
  718. data/vendor/simdjson/dependencies/json/doc/examples/insert.cpp +0 -17
  719. data/vendor/simdjson/dependencies/json/doc/examples/insert.link +0 -1
  720. data/vendor/simdjson/dependencies/json/doc/examples/insert.output +0 -2
  721. data/vendor/simdjson/dependencies/json/doc/examples/insert__count.cpp +0 -17
  722. data/vendor/simdjson/dependencies/json/doc/examples/insert__count.link +0 -1
  723. data/vendor/simdjson/dependencies/json/doc/examples/insert__count.output +0 -2
  724. data/vendor/simdjson/dependencies/json/doc/examples/insert__ilist.cpp +0 -17
  725. data/vendor/simdjson/dependencies/json/doc/examples/insert__ilist.link +0 -1
  726. data/vendor/simdjson/dependencies/json/doc/examples/insert__ilist.output +0 -2
  727. data/vendor/simdjson/dependencies/json/doc/examples/insert__range.cpp +0 -20
  728. data/vendor/simdjson/dependencies/json/doc/examples/insert__range.link +0 -1
  729. data/vendor/simdjson/dependencies/json/doc/examples/insert__range.output +0 -2
  730. data/vendor/simdjson/dependencies/json/doc/examples/insert__range_object.cpp +0 -21
  731. data/vendor/simdjson/dependencies/json/doc/examples/insert__range_object.link +0 -1
  732. data/vendor/simdjson/dependencies/json/doc/examples/insert__range_object.output +0 -3
  733. data/vendor/simdjson/dependencies/json/doc/examples/invalid_iterator.cpp +0 -21
  734. data/vendor/simdjson/dependencies/json/doc/examples/invalid_iterator.link +0 -1
  735. data/vendor/simdjson/dependencies/json/doc/examples/invalid_iterator.output +0 -2
  736. data/vendor/simdjson/dependencies/json/doc/examples/is_array.cpp +0 -28
  737. data/vendor/simdjson/dependencies/json/doc/examples/is_array.link +0 -1
  738. data/vendor/simdjson/dependencies/json/doc/examples/is_array.output +0 -8
  739. data/vendor/simdjson/dependencies/json/doc/examples/is_boolean.cpp +0 -28
  740. data/vendor/simdjson/dependencies/json/doc/examples/is_boolean.link +0 -1
  741. data/vendor/simdjson/dependencies/json/doc/examples/is_boolean.output +0 -8
  742. data/vendor/simdjson/dependencies/json/doc/examples/is_discarded.cpp +0 -28
  743. data/vendor/simdjson/dependencies/json/doc/examples/is_discarded.link +0 -1
  744. data/vendor/simdjson/dependencies/json/doc/examples/is_discarded.output +0 -8
  745. data/vendor/simdjson/dependencies/json/doc/examples/is_null.cpp +0 -28
  746. data/vendor/simdjson/dependencies/json/doc/examples/is_null.link +0 -1
  747. data/vendor/simdjson/dependencies/json/doc/examples/is_null.output +0 -8
  748. data/vendor/simdjson/dependencies/json/doc/examples/is_number.cpp +0 -28
  749. data/vendor/simdjson/dependencies/json/doc/examples/is_number.link +0 -1
  750. data/vendor/simdjson/dependencies/json/doc/examples/is_number.output +0 -8
  751. data/vendor/simdjson/dependencies/json/doc/examples/is_number_float.cpp +0 -28
  752. data/vendor/simdjson/dependencies/json/doc/examples/is_number_float.link +0 -1
  753. data/vendor/simdjson/dependencies/json/doc/examples/is_number_float.output +0 -8
  754. data/vendor/simdjson/dependencies/json/doc/examples/is_number_integer.cpp +0 -28
  755. data/vendor/simdjson/dependencies/json/doc/examples/is_number_integer.link +0 -1
  756. data/vendor/simdjson/dependencies/json/doc/examples/is_number_integer.output +0 -8
  757. data/vendor/simdjson/dependencies/json/doc/examples/is_number_unsigned.cpp +0 -28
  758. data/vendor/simdjson/dependencies/json/doc/examples/is_number_unsigned.link +0 -1
  759. data/vendor/simdjson/dependencies/json/doc/examples/is_number_unsigned.output +0 -8
  760. data/vendor/simdjson/dependencies/json/doc/examples/is_object.cpp +0 -28
  761. data/vendor/simdjson/dependencies/json/doc/examples/is_object.link +0 -1
  762. data/vendor/simdjson/dependencies/json/doc/examples/is_object.output +0 -8
  763. data/vendor/simdjson/dependencies/json/doc/examples/is_primitive.cpp +0 -28
  764. data/vendor/simdjson/dependencies/json/doc/examples/is_primitive.link +0 -1
  765. data/vendor/simdjson/dependencies/json/doc/examples/is_primitive.output +0 -8
  766. data/vendor/simdjson/dependencies/json/doc/examples/is_string.cpp +0 -28
  767. data/vendor/simdjson/dependencies/json/doc/examples/is_string.link +0 -1
  768. data/vendor/simdjson/dependencies/json/doc/examples/is_string.output +0 -8
  769. data/vendor/simdjson/dependencies/json/doc/examples/is_structured.cpp +0 -28
  770. data/vendor/simdjson/dependencies/json/doc/examples/is_structured.link +0 -1
  771. data/vendor/simdjson/dependencies/json/doc/examples/is_structured.output +0 -8
  772. data/vendor/simdjson/dependencies/json/doc/examples/items.cpp +0 -23
  773. data/vendor/simdjson/dependencies/json/doc/examples/items.link +0 -1
  774. data/vendor/simdjson/dependencies/json/doc/examples/items.output +0 -7
  775. data/vendor/simdjson/dependencies/json/doc/examples/iterator_wrapper.cpp +0 -23
  776. data/vendor/simdjson/dependencies/json/doc/examples/iterator_wrapper.link +0 -1
  777. data/vendor/simdjson/dependencies/json/doc/examples/iterator_wrapper.output +0 -7
  778. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer.cpp +0 -47
  779. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer.link +0 -1
  780. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer.output +0 -3
  781. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__back.cpp +0 -15
  782. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__back.link +0 -1
  783. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__back.output +0 -2
  784. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__empty.cpp +0 -20
  785. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__empty.link +0 -1
  786. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__empty.output +0 -4
  787. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add.cpp +0 -23
  788. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add.link +0 -1
  789. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add.output +0 -4
  790. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add_binary.cpp +0 -19
  791. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add_binary.link +0 -1
  792. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add_binary.output +0 -3
  793. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__parent_pointer.cpp +0 -18
  794. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__parent_pointer.link +0 -1
  795. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__parent_pointer.output +0 -3
  796. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__pop_back.cpp +0 -21
  797. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__pop_back.link +0 -1
  798. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__pop_back.output +0 -4
  799. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__push_back.cpp +0 -21
  800. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__push_back.link +0 -1
  801. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__push_back.output +0 -4
  802. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__to_string.cpp +0 -35
  803. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__to_string.link +0 -1
  804. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__to_string.output +0 -12
  805. data/vendor/simdjson/dependencies/json/doc/examples/max_size.cpp +0 -25
  806. data/vendor/simdjson/dependencies/json/doc/examples/max_size.link +0 -1
  807. data/vendor/simdjson/dependencies/json/doc/examples/max_size.output +0 -7
  808. data/vendor/simdjson/dependencies/json/doc/examples/merge_patch.cpp +0 -40
  809. data/vendor/simdjson/dependencies/json/doc/examples/merge_patch.link +0 -1
  810. data/vendor/simdjson/dependencies/json/doc/examples/merge_patch.output +0 -11
  811. data/vendor/simdjson/dependencies/json/doc/examples/meta.cpp +0 -11
  812. data/vendor/simdjson/dependencies/json/doc/examples/meta.link +0 -1
  813. data/vendor/simdjson/dependencies/json/doc/examples/meta.output +0 -17
  814. data/vendor/simdjson/dependencies/json/doc/examples/object.cpp +0 -28
  815. data/vendor/simdjson/dependencies/json/doc/examples/object.link +0 -1
  816. data/vendor/simdjson/dependencies/json/doc/examples/object.output +0 -4
  817. data/vendor/simdjson/dependencies/json/doc/examples/operator__ValueType.cpp +0 -60
  818. data/vendor/simdjson/dependencies/json/doc/examples/operator__ValueType.link +0 -1
  819. data/vendor/simdjson/dependencies/json/doc/examples/operator__ValueType.output +0 -12
  820. data/vendor/simdjson/dependencies/json/doc/examples/operator__equal.cpp +0 -24
  821. data/vendor/simdjson/dependencies/json/doc/examples/operator__equal.link +0 -1
  822. data/vendor/simdjson/dependencies/json/doc/examples/operator__equal.output +0 -4
  823. data/vendor/simdjson/dependencies/json/doc/examples/operator__equal__nullptr_t.cpp +0 -22
  824. data/vendor/simdjson/dependencies/json/doc/examples/operator__equal__nullptr_t.link +0 -1
  825. data/vendor/simdjson/dependencies/json/doc/examples/operator__equal__nullptr_t.output +0 -5
  826. data/vendor/simdjson/dependencies/json/doc/examples/operator__greater.cpp +0 -24
  827. data/vendor/simdjson/dependencies/json/doc/examples/operator__greater.link +0 -1
  828. data/vendor/simdjson/dependencies/json/doc/examples/operator__greater.output +0 -4
  829. data/vendor/simdjson/dependencies/json/doc/examples/operator__greaterequal.cpp +0 -24
  830. data/vendor/simdjson/dependencies/json/doc/examples/operator__greaterequal.link +0 -1
  831. data/vendor/simdjson/dependencies/json/doc/examples/operator__greaterequal.output +0 -4
  832. data/vendor/simdjson/dependencies/json/doc/examples/operator__less.cpp +0 -24
  833. data/vendor/simdjson/dependencies/json/doc/examples/operator__less.link +0 -1
  834. data/vendor/simdjson/dependencies/json/doc/examples/operator__less.output +0 -4
  835. data/vendor/simdjson/dependencies/json/doc/examples/operator__lessequal.cpp +0 -24
  836. data/vendor/simdjson/dependencies/json/doc/examples/operator__lessequal.link +0 -1
  837. data/vendor/simdjson/dependencies/json/doc/examples/operator__lessequal.output +0 -4
  838. data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal.cpp +0 -24
  839. data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal.link +0 -1
  840. data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal.output +0 -4
  841. data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal__nullptr_t.cpp +0 -22
  842. data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal__nullptr_t.link +0 -1
  843. data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal__nullptr_t.output +0 -5
  844. data/vendor/simdjson/dependencies/json/doc/examples/operator__value_t.cpp +0 -38
  845. data/vendor/simdjson/dependencies/json/doc/examples/operator__value_t.link +0 -1
  846. data/vendor/simdjson/dependencies/json/doc/examples/operator__value_t.output +0 -8
  847. data/vendor/simdjson/dependencies/json/doc/examples/operator_deserialize.cpp +0 -26
  848. data/vendor/simdjson/dependencies/json/doc/examples/operator_deserialize.link +0 -1
  849. data/vendor/simdjson/dependencies/json/doc/examples/operator_deserialize.output +0 -13
  850. data/vendor/simdjson/dependencies/json/doc/examples/operator_serialize.cpp +0 -21
  851. data/vendor/simdjson/dependencies/json/doc/examples/operator_serialize.link +0 -1
  852. data/vendor/simdjson/dependencies/json/doc/examples/operator_serialize.output +0 -22
  853. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type.cpp +0 -32
  854. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type.link +0 -1
  855. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type.output +0 -19
  856. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type_const.cpp +0 -16
  857. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type_const.link +0 -1
  858. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type_const.output +0 -1
  859. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type.cpp +0 -25
  860. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type.link +0 -1
  861. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type.output +0 -3
  862. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type_const.cpp +0 -13
  863. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type_const.link +0 -1
  864. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type_const.output +0 -1
  865. data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer.cpp +0 -48
  866. data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer.link +0 -1
  867. data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer.output +0 -8
  868. data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer_const.cpp +0 -24
  869. data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer_const.link +0 -1
  870. data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer_const.output +0 -4
  871. data/vendor/simdjson/dependencies/json/doc/examples/other_error.cpp +0 -29
  872. data/vendor/simdjson/dependencies/json/doc/examples/other_error.link +0 -1
  873. data/vendor/simdjson/dependencies/json/doc/examples/other_error.output +0 -2
  874. data/vendor/simdjson/dependencies/json/doc/examples/out_of_range.cpp +0 -20
  875. data/vendor/simdjson/dependencies/json/doc/examples/out_of_range.link +0 -1
  876. data/vendor/simdjson/dependencies/json/doc/examples/out_of_range.output +0 -2
  877. data/vendor/simdjson/dependencies/json/doc/examples/parse__array__parser_callback_t.cpp +0 -30
  878. data/vendor/simdjson/dependencies/json/doc/examples/parse__array__parser_callback_t.link +0 -1
  879. data/vendor/simdjson/dependencies/json/doc/examples/parse__array__parser_callback_t.output +0 -20
  880. data/vendor/simdjson/dependencies/json/doc/examples/parse__contiguouscontainer__parser_callback_t.cpp +0 -15
  881. data/vendor/simdjson/dependencies/json/doc/examples/parse__contiguouscontainer__parser_callback_t.link +0 -1
  882. data/vendor/simdjson/dependencies/json/doc/examples/parse__contiguouscontainer__parser_callback_t.output +0 -6
  883. data/vendor/simdjson/dependencies/json/doc/examples/parse__istream__parser_callback_t.cpp +0 -58
  884. data/vendor/simdjson/dependencies/json/doc/examples/parse__istream__parser_callback_t.link +0 -1
  885. data/vendor/simdjson/dependencies/json/doc/examples/parse__istream__parser_callback_t.output +0 -34
  886. data/vendor/simdjson/dependencies/json/doc/examples/parse__iteratortype__parser_callback_t.cpp +0 -15
  887. data/vendor/simdjson/dependencies/json/doc/examples/parse__iteratortype__parser_callback_t.link +0 -1
  888. data/vendor/simdjson/dependencies/json/doc/examples/parse__iteratortype__parser_callback_t.output +0 -6
  889. data/vendor/simdjson/dependencies/json/doc/examples/parse__string__parser_callback_t.cpp +0 -49
  890. data/vendor/simdjson/dependencies/json/doc/examples/parse__string__parser_callback_t.link +0 -1
  891. data/vendor/simdjson/dependencies/json/doc/examples/parse__string__parser_callback_t.output +0 -34
  892. data/vendor/simdjson/dependencies/json/doc/examples/parse_error.cpp +0 -20
  893. data/vendor/simdjson/dependencies/json/doc/examples/parse_error.link +0 -1
  894. data/vendor/simdjson/dependencies/json/doc/examples/parse_error.output +0 -3
  895. data/vendor/simdjson/dependencies/json/doc/examples/patch.cpp +0 -32
  896. data/vendor/simdjson/dependencies/json/doc/examples/patch.link +0 -1
  897. data/vendor/simdjson/dependencies/json/doc/examples/patch.output +0 -11
  898. data/vendor/simdjson/dependencies/json/doc/examples/push_back.cpp +0 -25
  899. data/vendor/simdjson/dependencies/json/doc/examples/push_back.link +0 -1
  900. data/vendor/simdjson/dependencies/json/doc/examples/push_back.output +0 -4
  901. data/vendor/simdjson/dependencies/json/doc/examples/push_back__initializer_list.cpp +0 -27
  902. data/vendor/simdjson/dependencies/json/doc/examples/push_back__initializer_list.link +0 -1
  903. data/vendor/simdjson/dependencies/json/doc/examples/push_back__initializer_list.output +0 -4
  904. data/vendor/simdjson/dependencies/json/doc/examples/push_back__object_t__value.cpp +0 -25
  905. data/vendor/simdjson/dependencies/json/doc/examples/push_back__object_t__value.link +0 -1
  906. data/vendor/simdjson/dependencies/json/doc/examples/push_back__object_t__value.output +0 -4
  907. data/vendor/simdjson/dependencies/json/doc/examples/rbegin.cpp +0 -16
  908. data/vendor/simdjson/dependencies/json/doc/examples/rbegin.link +0 -1
  909. data/vendor/simdjson/dependencies/json/doc/examples/rbegin.output +0 -1
  910. data/vendor/simdjson/dependencies/json/doc/examples/rend.cpp +0 -19
  911. data/vendor/simdjson/dependencies/json/doc/examples/rend.link +0 -1
  912. data/vendor/simdjson/dependencies/json/doc/examples/rend.output +0 -1
  913. data/vendor/simdjson/dependencies/json/doc/examples/sax_parse.cpp +0 -124
  914. data/vendor/simdjson/dependencies/json/doc/examples/sax_parse.link +0 -1
  915. data/vendor/simdjson/dependencies/json/doc/examples/sax_parse.output +0 -2
  916. data/vendor/simdjson/dependencies/json/doc/examples/size.cpp +0 -29
  917. data/vendor/simdjson/dependencies/json/doc/examples/size.link +0 -1
  918. data/vendor/simdjson/dependencies/json/doc/examples/size.output +0 -9
  919. data/vendor/simdjson/dependencies/json/doc/examples/swap__array_t.cpp +0 -20
  920. data/vendor/simdjson/dependencies/json/doc/examples/swap__array_t.link +0 -1
  921. data/vendor/simdjson/dependencies/json/doc/examples/swap__array_t.output +0 -2
  922. data/vendor/simdjson/dependencies/json/doc/examples/swap__object_t.cpp +0 -20
  923. data/vendor/simdjson/dependencies/json/doc/examples/swap__object_t.link +0 -1
  924. data/vendor/simdjson/dependencies/json/doc/examples/swap__object_t.output +0 -2
  925. data/vendor/simdjson/dependencies/json/doc/examples/swap__reference.cpp +0 -18
  926. data/vendor/simdjson/dependencies/json/doc/examples/swap__reference.link +0 -1
  927. data/vendor/simdjson/dependencies/json/doc/examples/swap__reference.output +0 -2
  928. data/vendor/simdjson/dependencies/json/doc/examples/swap__string_t.cpp +0 -20
  929. data/vendor/simdjson/dependencies/json/doc/examples/swap__string_t.link +0 -1
  930. data/vendor/simdjson/dependencies/json/doc/examples/swap__string_t.output +0 -2
  931. data/vendor/simdjson/dependencies/json/doc/examples/to_bson.cpp +0 -21
  932. data/vendor/simdjson/dependencies/json/doc/examples/to_bson.link +0 -1
  933. data/vendor/simdjson/dependencies/json/doc/examples/to_bson.output +0 -1
  934. data/vendor/simdjson/dependencies/json/doc/examples/to_cbor.cpp +0 -21
  935. data/vendor/simdjson/dependencies/json/doc/examples/to_cbor.link +0 -1
  936. data/vendor/simdjson/dependencies/json/doc/examples/to_cbor.output +0 -1
  937. data/vendor/simdjson/dependencies/json/doc/examples/to_msgpack.cpp +0 -21
  938. data/vendor/simdjson/dependencies/json/doc/examples/to_msgpack.link +0 -1
  939. data/vendor/simdjson/dependencies/json/doc/examples/to_msgpack.output +0 -1
  940. data/vendor/simdjson/dependencies/json/doc/examples/to_ubjson.cpp +0 -63
  941. data/vendor/simdjson/dependencies/json/doc/examples/to_ubjson.link +0 -1
  942. data/vendor/simdjson/dependencies/json/doc/examples/to_ubjson.output +0 -4
  943. data/vendor/simdjson/dependencies/json/doc/examples/type.cpp +0 -28
  944. data/vendor/simdjson/dependencies/json/doc/examples/type.link +0 -1
  945. data/vendor/simdjson/dependencies/json/doc/examples/type.output +0 -8
  946. data/vendor/simdjson/dependencies/json/doc/examples/type_error.cpp +0 -20
  947. data/vendor/simdjson/dependencies/json/doc/examples/type_error.link +0 -1
  948. data/vendor/simdjson/dependencies/json/doc/examples/type_error.output +0 -2
  949. data/vendor/simdjson/dependencies/json/doc/examples/type_name.cpp +0 -27
  950. data/vendor/simdjson/dependencies/json/doc/examples/type_name.link +0 -1
  951. data/vendor/simdjson/dependencies/json/doc/examples/type_name.output +0 -8
  952. data/vendor/simdjson/dependencies/json/doc/examples/unflatten.cpp +0 -26
  953. data/vendor/simdjson/dependencies/json/doc/examples/unflatten.link +0 -1
  954. data/vendor/simdjson/dependencies/json/doc/examples/unflatten.output +0 -18
  955. data/vendor/simdjson/dependencies/json/doc/examples/update.cpp +0 -18
  956. data/vendor/simdjson/dependencies/json/doc/examples/update.link +0 -1
  957. data/vendor/simdjson/dependencies/json/doc/examples/update.output +0 -5
  958. data/vendor/simdjson/dependencies/json/doc/examples/update__range.cpp +0 -18
  959. data/vendor/simdjson/dependencies/json/doc/examples/update__range.link +0 -1
  960. data/vendor/simdjson/dependencies/json/doc/examples/update__range.output +0 -5
  961. data/vendor/simdjson/dependencies/json/doc/faq.md +0 -87
  962. data/vendor/simdjson/dependencies/json/doc/images/binary.png +0 -0
  963. data/vendor/simdjson/dependencies/json/doc/images/callback_events.png +0 -0
  964. data/vendor/simdjson/dependencies/json/doc/images/range-begin-end.svg +0 -435
  965. data/vendor/simdjson/dependencies/json/doc/images/range-rbegin-rend.svg +0 -1232
  966. data/vendor/simdjson/dependencies/json/doc/index.md +0 -332
  967. data/vendor/simdjson/dependencies/json/doc/json.gif +0 -0
  968. data/vendor/simdjson/dependencies/json/doc/scripts/git-update-ghpages +0 -193
  969. data/vendor/simdjson/dependencies/json/doc/scripts/send_to_wandbox.py +0 -120
  970. data/vendor/simdjson/dependencies/json/doc/usages/ios.png +0 -0
  971. data/vendor/simdjson/dependencies/json/doc/usages/macos.png +0 -0
  972. data/vendor/simdjson/dependencies/json/include/nlohmann/adl_serializer.hpp +0 -49
  973. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/conversions/from_json.hpp +0 -389
  974. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/conversions/to_chars.hpp +0 -1106
  975. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/conversions/to_json.hpp +0 -344
  976. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/exceptions.hpp +0 -356
  977. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/binary_reader.hpp +0 -1983
  978. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/input_adapters.hpp +0 -442
  979. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/json_sax.hpp +0 -701
  980. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/lexer.hpp +0 -1512
  981. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/parser.hpp +0 -498
  982. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/position_t.hpp +0 -27
  983. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/internal_iterator.hpp +0 -25
  984. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/iter_impl.hpp +0 -638
  985. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/iteration_proxy.hpp +0 -170
  986. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/iterator_traits.hpp +0 -51
  987. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/json_reverse_iterator.hpp +0 -119
  988. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/primitive_iterator.hpp +0 -120
  989. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/json_pointer.hpp +0 -1011
  990. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/json_ref.hpp +0 -69
  991. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/macro_scope.hpp +0 -121
  992. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/macro_unscope.hpp +0 -21
  993. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/cpp_future.hpp +0 -63
  994. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/detected.hpp +0 -58
  995. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/is_sax.hpp +0 -142
  996. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/type_traits.hpp +0 -361
  997. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/void_t.hpp +0 -13
  998. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/output/binary_writer.hpp +0 -1336
  999. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/output/output_adapters.hpp +0 -123
  1000. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/output/serializer.hpp +0 -840
  1001. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/value_t.hpp +0 -77
  1002. data/vendor/simdjson/dependencies/json/include/nlohmann/json.hpp +0 -8134
  1003. data/vendor/simdjson/dependencies/json/include/nlohmann/json_fwd.hpp +0 -64
  1004. data/vendor/simdjson/dependencies/json/include/nlohmann/thirdparty/hedley/hedley.hpp +0 -1505
  1005. data/vendor/simdjson/dependencies/json/include/nlohmann/thirdparty/hedley/hedley_undef.hpp +0 -121
  1006. data/vendor/simdjson/dependencies/json/meson.build +0 -23
  1007. data/vendor/simdjson/dependencies/json/nlohmann_json.natvis +0 -32
  1008. data/vendor/simdjson/dependencies/json/single_include/nlohmann/json.hpp +0 -22684
  1009. data/vendor/simdjson/dependencies/json/test/CMakeLists.txt +0 -150
  1010. data/vendor/simdjson/dependencies/json/test/Makefile +0 -110
  1011. data/vendor/simdjson/dependencies/json/test/cmake_add_subdirectory/CMakeLists.txt +0 -15
  1012. data/vendor/simdjson/dependencies/json/test/cmake_add_subdirectory/project/CMakeLists.txt +0 -13
  1013. data/vendor/simdjson/dependencies/json/test/cmake_add_subdirectory/project/main.cpp +0 -8
  1014. data/vendor/simdjson/dependencies/json/test/cmake_import/CMakeLists.txt +0 -15
  1015. data/vendor/simdjson/dependencies/json/test/cmake_import/project/CMakeLists.txt +0 -12
  1016. data/vendor/simdjson/dependencies/json/test/cmake_import/project/main.cpp +0 -8
  1017. data/vendor/simdjson/dependencies/json/test/cmake_import_minver/CMakeLists.txt +0 -15
  1018. data/vendor/simdjson/dependencies/json/test/cmake_import_minver/project/CMakeLists.txt +0 -8
  1019. data/vendor/simdjson/dependencies/json/test/cmake_import_minver/project/main.cpp +0 -8
  1020. data/vendor/simdjson/dependencies/json/test/data/big-list-of-naughty-strings/LICENSE +0 -22
  1021. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test01 +0 -1
  1022. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test02 +0 -0
  1023. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test03 +0 -0
  1024. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test04 +0 -0
  1025. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test05 +0 -0
  1026. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test06 +0 -0
  1027. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test07 +0 -0
  1028. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test08 +0 -0
  1029. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test09 +0 -0
  1030. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test10 +0 -1
  1031. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test11 +0 -0
  1032. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test12 +0 -0
  1033. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test13 +0 -0
  1034. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test14 +0 -0
  1035. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test15 +0 -0
  1036. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test16 +0 -0
  1037. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test17 +0 -0
  1038. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test18 +0 -0
  1039. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test19 +0 -0
  1040. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test20 +0 -0
  1041. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test21 +0 -0
  1042. data/vendor/simdjson/dependencies/json/test/data/json-patch-tests/README.md +0 -75
  1043. data/vendor/simdjson/dependencies/json/test/data/json.org/1.json.bson +0 -0
  1044. data/vendor/simdjson/dependencies/json/test/data/json.org/1.json.cbor +0 -1
  1045. data/vendor/simdjson/dependencies/json/test/data/json.org/1.json.msgpack +0 -0
  1046. data/vendor/simdjson/dependencies/json/test/data/json.org/2.json.bson +0 -0
  1047. data/vendor/simdjson/dependencies/json/test/data/json.org/2.json.cbor +0 -1
  1048. data/vendor/simdjson/dependencies/json/test/data/json.org/2.json.msgpack +0 -1
  1049. data/vendor/simdjson/dependencies/json/test/data/json.org/3.json.bson +0 -0
  1050. data/vendor/simdjson/dependencies/json/test/data/json.org/3.json.cbor +0 -1
  1051. data/vendor/simdjson/dependencies/json/test/data/json.org/3.json.msgpack +0 -0
  1052. data/vendor/simdjson/dependencies/json/test/data/json.org/4.json.bson +0 -0
  1053. data/vendor/simdjson/dependencies/json/test/data/json.org/4.json.cbor +0 -4
  1054. data/vendor/simdjson/dependencies/json/test/data/json.org/4.json.msgpack +0 -0
  1055. data/vendor/simdjson/dependencies/json/test/data/json.org/5.json.bson +0 -0
  1056. data/vendor/simdjson/dependencies/json/test/data/json.org/5.json.cbor +0 -1
  1057. data/vendor/simdjson/dependencies/json/test/data/json.org/5.json.msgpack +0 -0
  1058. data/vendor/simdjson/dependencies/json/test/data/json_nlohmann_tests/all_unicode.json.cbor +0 -0
  1059. data/vendor/simdjson/dependencies/json/test/data/json_nlohmann_tests/all_unicode.json.msgpack +0 -0
  1060. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip01.json.cbor +0 -1
  1061. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip01.json.msgpack +0 -1
  1062. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip02.json.cbor +0 -1
  1063. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip02.json.msgpack +0 -1
  1064. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip03.json.cbor +0 -1
  1065. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip03.json.msgpack +0 -1
  1066. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip04.json.cbor +0 -0
  1067. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip04.json.msgpack +0 -0
  1068. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip05.json.cbor +0 -1
  1069. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip05.json.msgpack +0 -1
  1070. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip06.json.cbor +0 -1
  1071. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip06.json.msgpack +0 -1
  1072. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip07.json.cbor +0 -1
  1073. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip07.json.msgpack +0 -1
  1074. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip08.json.cbor +0 -0
  1075. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip08.json.msgpack +0 -0
  1076. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip09.json.cbor +0 -1
  1077. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip09.json.msgpack +0 -1
  1078. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip10.json.cbor +0 -1
  1079. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip10.json.msgpack +0 -1
  1080. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip11.json.cbor +0 -1
  1081. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip11.json.msgpack +0 -1
  1082. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip12.json.cbor +0 -1
  1083. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip12.json.msgpack +0 -0
  1084. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip13.json.cbor +0 -1
  1085. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip13.json.msgpack +0 -1
  1086. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip14.json.cbor +0 -1
  1087. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip14.json.msgpack +0 -0
  1088. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip15.json.cbor +0 -1
  1089. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip15.json.msgpack +0 -1
  1090. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip16.json.cbor +0 -1
  1091. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip16.json.msgpack +0 -1
  1092. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip17.json.cbor +0 -1
  1093. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip17.json.msgpack +0 -1
  1094. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip18.json.cbor +0 -1
  1095. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip18.json.msgpack +0 -1
  1096. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip19.json.cbor +0 -1
  1097. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip19.json.msgpack +0 -1
  1098. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip20.json.cbor +0 -0
  1099. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip20.json.msgpack +0 -0
  1100. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip21.json.cbor +0 -0
  1101. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip21.json.msgpack +0 -0
  1102. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip22.json.cbor +0 -1
  1103. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip22.json.msgpack +0 -1
  1104. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip23.json.cbor +0 -1
  1105. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip23.json.msgpack +0 -1
  1106. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip24.json.cbor +0 -0
  1107. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip24.json.msgpack +0 -0
  1108. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip25.json.cbor +0 -0
  1109. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip25.json.msgpack +0 -0
  1110. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip26.json.cbor +0 -0
  1111. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip26.json.msgpack +0 -0
  1112. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip27.json.cbor +0 -1
  1113. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip27.json.msgpack +0 -1
  1114. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip28.json.cbor +0 -0
  1115. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip28.json.msgpack +0 -0
  1116. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip29.json.cbor +0 -0
  1117. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip29.json.msgpack +0 -0
  1118. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip30.json.cbor +0 -1
  1119. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip30.json.msgpack +0 -1
  1120. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip31.json.cbor +0 -1
  1121. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip31.json.msgpack +0 -1
  1122. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip32.json.cbor +0 -1
  1123. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip32.json.msgpack +0 -1
  1124. data/vendor/simdjson/dependencies/json/test/data/json_tests/pass1.json.cbor +0 -0
  1125. data/vendor/simdjson/dependencies/json/test/data/json_tests/pass1.json.msgpack +0 -0
  1126. data/vendor/simdjson/dependencies/json/test/data/json_tests/pass2.json.cbor +0 -1
  1127. data/vendor/simdjson/dependencies/json/test/data/json_tests/pass2.json.msgpack +0 -1
  1128. data/vendor/simdjson/dependencies/json/test/data/json_tests/pass3.json.bson +0 -0
  1129. data/vendor/simdjson/dependencies/json/test/data/json_tests/pass3.json.cbor +0 -1
  1130. data/vendor/simdjson/dependencies/json/test/data/json_tests/pass3.json.msgpack +0 -1
  1131. data/vendor/simdjson/dependencies/json/test/data/json_testsuite/README.md +0 -10
  1132. data/vendor/simdjson/dependencies/json/test/data/json_testsuite/sample.json.cbor +0 -0
  1133. data/vendor/simdjson/dependencies/json/test/data/json_testsuite/sample.json.msgpack +0 -0
  1134. data/vendor/simdjson/dependencies/json/test/data/markus_kuhn/UTF-8-test.txt +0 -0
  1135. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/LICENSE +0 -21
  1136. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_arraysWithSpaces.json.cbor +0 -1
  1137. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_arraysWithSpaces.json.msgpack +0 -1
  1138. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_empty-string.json.cbor +0 -1
  1139. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_empty-string.json.msgpack +0 -1
  1140. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_empty.json.cbor +0 -1
  1141. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_empty.json.msgpack +0 -1
  1142. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_ending_with_newline.json.cbor +0 -1
  1143. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_ending_with_newline.json.msgpack +0 -1
  1144. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_false.json.cbor +0 -1
  1145. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_false.json.msgpack +0 -1
  1146. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_heterogeneous.json.cbor +0 -1
  1147. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_heterogeneous.json.msgpack +0 -1
  1148. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_null.json.cbor +0 -1
  1149. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_null.json.msgpack +0 -1
  1150. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_1_and_newline.json.cbor +0 -1
  1151. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_1_and_newline.json.msgpack +0 -1
  1152. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_leading_space.json.cbor +0 -1
  1153. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_leading_space.json.msgpack +0 -1
  1154. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_several_null.json.cbor +0 -1
  1155. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_several_null.json.msgpack +0 -1
  1156. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_trailing_space.json.cbor +0 -1
  1157. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_trailing_space.json.msgpack +0 -1
  1158. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number.json.cbor +0 -1
  1159. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number.json.msgpack +0 -1
  1160. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_0e+1.json.cbor +0 -0
  1161. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_0e+1.json.msgpack +0 -0
  1162. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_0e1.json.cbor +0 -0
  1163. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_0e1.json.msgpack +0 -0
  1164. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_after_space.json.cbor +0 -1
  1165. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_after_space.json.msgpack +0 -1
  1166. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_double_close_to_zero.json.cbor +0 -1
  1167. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_double_close_to_zero.json.msgpack +0 -1
  1168. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_double_huge_neg_exp.json.cbor +0 -0
  1169. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_double_huge_neg_exp.json.msgpack +0 -0
  1170. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_huge_exp.json.cbor +0 -0
  1171. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_huge_exp.json.msgpack +0 -0
  1172. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_int_with_exp.json.cbor +0 -0
  1173. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_int_with_exp.json.msgpack +0 -0
  1174. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_minus_zero.json.cbor +0 -0
  1175. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_minus_zero.json.msgpack +0 -0
  1176. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_int.json.cbor +0 -1
  1177. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_int.json.msgpack +0 -1
  1178. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_one.json.cbor +0 -1
  1179. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_one.json.msgpack +0 -1
  1180. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_zero.json.cbor +0 -0
  1181. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_zero.json.msgpack +0 -0
  1182. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e.json.cbor +0 -1
  1183. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e.json.msgpack +0 -1
  1184. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_neg_exp.json.cbor +0 -1
  1185. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_neg_exp.json.msgpack +0 -1
  1186. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_pos_exp.json.cbor +0 -0
  1187. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_pos_exp.json.msgpack +0 -0
  1188. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_exponent.json.cbor +0 -0
  1189. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_exponent.json.msgpack +0 -0
  1190. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_fraction_exponent.json.cbor +0 -1
  1191. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_fraction_exponent.json.msgpack +0 -1
  1192. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_neg_exp.json.cbor +0 -1
  1193. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_neg_exp.json.msgpack +0 -1
  1194. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_neg_overflow.json.cbor +0 -0
  1195. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_neg_overflow.json.msgpack +0 -0
  1196. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_pos_exponent.json.cbor +0 -0
  1197. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_pos_exponent.json.msgpack +0 -0
  1198. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_pos_overflow.json.cbor +0 -0
  1199. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_pos_overflow.json.msgpack +0 -0
  1200. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_underflow.json.cbor +0 -0
  1201. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_underflow.json.msgpack +0 -0
  1202. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_simple_int.json.cbor +0 -1
  1203. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_simple_int.json.msgpack +0 -1
  1204. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_simple_real.json.cbor +0 -1
  1205. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_simple_real.json.msgpack +0 -1
  1206. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_too_big_neg_int.json.cbor +0 -1
  1207. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object.json.cbor +0 -1
  1208. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object.json.msgpack +0 -1
  1209. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_basic.json.cbor +0 -1
  1210. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_basic.json.msgpack +0 -1
  1211. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key.json.cbor +0 -1
  1212. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key.json.msgpack +0 -1
  1213. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key_and_value.json.cbor +0 -1
  1214. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key_and_value.json.msgpack +0 -1
  1215. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_empty.json.cbor +0 -1
  1216. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_empty.json.msgpack +0 -1
  1217. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_empty_key.json.cbor +0 -0
  1218. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_empty_key.json.msgpack +0 -0
  1219. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_escaped_null_in_key.json.cbor +0 -0
  1220. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_escaped_null_in_key.json.msgpack +0 -0
  1221. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_extreme_numbers.json.cbor +0 -1
  1222. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_extreme_numbers.json.msgpack +0 -1
  1223. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_long_strings.json.cbor +0 -1
  1224. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_long_strings.json.msgpack +0 -0
  1225. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_simple.json.cbor +0 -1
  1226. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_simple.json.msgpack +0 -1
  1227. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_string_unicode.json.cbor +0 -1
  1228. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_string_unicode.json.msgpack +0 -0
  1229. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_with_newlines.json.cbor +0 -1
  1230. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_with_newlines.json.msgpack +0 -1
  1231. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_1_2_3_bytes_UTF-8_sequences.json.cbor +0 -1
  1232. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_1_2_3_bytes_UTF-8_sequences.json.msgpack +0 -1
  1233. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_UTF-16_Surrogates_U+1D11E_MUSICAL_SYMBOL_G_CLEF.json.cbor +0 -1
  1234. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_UTF-16_Surrogates_U+1D11E_MUSICAL_SYMBOL_G_CLEF.json.msgpack +0 -1
  1235. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pair.json.cbor +0 -1
  1236. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pair.json.msgpack +0 -1
  1237. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pairs.json.cbor +0 -1
  1238. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pairs.json.msgpack +0 -1
  1239. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_allowed_escapes.json.cbor +0 -2
  1240. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_allowed_escapes.json.msgpack +0 -2
  1241. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_backslash_and_u_escaped_zero.json.cbor +0 -1
  1242. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_backslash_and_u_escaped_zero.json.msgpack +0 -1
  1243. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_backslash_doublequotes.json.cbor +0 -1
  1244. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_backslash_doublequotes.json.msgpack +0 -1
  1245. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_comments.json.cbor +0 -1
  1246. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_comments.json.msgpack +0 -1
  1247. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_double_escape_a.json.cbor +0 -1
  1248. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_double_escape_a.json.msgpack +0 -1
  1249. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_double_escape_n.json.cbor +0 -1
  1250. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_double_escape_n.json.msgpack +0 -1
  1251. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_escaped_control_character.json.cbor +0 -1
  1252. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_escaped_control_character.json.msgpack +0 -1
  1253. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_escaped_noncharacter.json.cbor +0 -1
  1254. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_escaped_noncharacter.json.msgpack +0 -1
  1255. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_in_array.json.cbor +0 -1
  1256. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_in_array.json.msgpack +0 -1
  1257. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_in_array_with_leading_space.json.cbor +0 -1
  1258. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_in_array_with_leading_space.json.msgpack +0 -1
  1259. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_last_surrogates_1_and_2.json.cbor +0 -1
  1260. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_last_surrogates_1_and_2.json.msgpack +0 -1
  1261. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_newline_uescaped.json.cbor +0 -1
  1262. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_newline_uescaped.json.msgpack +0 -1
  1263. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+10FFFF.json.cbor +0 -1
  1264. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+10FFFF.json.msgpack +0 -1
  1265. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+1FFFF.json.cbor +0 -1
  1266. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+1FFFF.json.msgpack +0 -1
  1267. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+FFFF.json.cbor +0 -1
  1268. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+FFFF.json.msgpack +0 -1
  1269. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_null_escape.json.cbor +0 -0
  1270. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_null_escape.json.msgpack +0 -0
  1271. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_one-byte-utf-8.json.cbor +0 -1
  1272. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_one-byte-utf-8.json.msgpack +0 -1
  1273. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_pi.json.cbor +0 -1
  1274. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_pi.json.msgpack +0 -1
  1275. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_simple_ascii.json.cbor +0 -1
  1276. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_simple_ascii.json.msgpack +0 -1
  1277. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_space.json.cbor +0 -1
  1278. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_space.json.msgpack +0 -1
  1279. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_three-byte-utf-8.json.cbor +0 -1
  1280. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_three-byte-utf-8.json.msgpack +0 -1
  1281. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_two-byte-utf-8.json.cbor +0 -1
  1282. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_two-byte-utf-8.json.msgpack +0 -1
  1283. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_u+2028_line_sep.json.cbor +0 -1
  1284. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_u+2028_line_sep.json.msgpack +0 -1
  1285. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_u+2029_par_sep.json.cbor +0 -1
  1286. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_u+2029_par_sep.json.msgpack +0 -1
  1287. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_uEscape.json.cbor +0 -1
  1288. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_uEscape.json.msgpack +0 -1
  1289. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unescaped_char_delete.json.cbor +0 -1
  1290. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unescaped_char_delete.json.msgpack +0 -1
  1291. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode.json.cbor +0 -1
  1292. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode.json.msgpack +0 -1
  1293. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicodeEscapedBackslash.json.cbor +0 -1
  1294. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicodeEscapedBackslash.json.msgpack +0 -1
  1295. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_2.json.cbor +0 -1
  1296. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_2.json.msgpack +0 -1
  1297. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json.cbor +0 -1
  1298. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json.msgpack +0 -1
  1299. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+2064_invisible_plus.json.cbor +0 -1
  1300. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+2064_invisible_plus.json.msgpack +0 -1
  1301. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_escaped_double_quote.json.cbor +0 -1
  1302. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_escaped_double_quote.json.msgpack +0 -1
  1303. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_utf8.json.cbor +0 -1
  1304. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_utf8.json.msgpack +0 -1
  1305. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_with_del_character.json.cbor +0 -1
  1306. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_with_del_character.json.msgpack +0 -1
  1307. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_false.json.cbor +0 -1
  1308. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_false.json.msgpack +0 -1
  1309. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_int.json.cbor +0 -1
  1310. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_int.json.msgpack +0 -1
  1311. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_negative_real.json.cbor +0 -1
  1312. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_negative_real.json.msgpack +0 -1
  1313. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_null.json.cbor +0 -1
  1314. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_null.json.msgpack +0 -1
  1315. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_string.json.cbor +0 -1
  1316. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_string.json.msgpack +0 -1
  1317. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_true.json.cbor +0 -1
  1318. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_true.json.msgpack +0 -1
  1319. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_string_empty.json.cbor +0 -1
  1320. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_string_empty.json.msgpack +0 -1
  1321. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_trailing_newline.json.cbor +0 -1
  1322. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_trailing_newline.json.msgpack +0 -1
  1323. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_true_in_array.json.cbor +0 -1
  1324. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_true_in_array.json.msgpack +0 -1
  1325. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_whitespace_array.json.cbor +0 -1
  1326. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_whitespace_array.json.msgpack +0 -1
  1327. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite2/LICENSE +0 -21
  1328. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite2/README.md +0 -55
  1329. data/vendor/simdjson/dependencies/json/test/data/regression/floats.json.cbor +0 -0
  1330. data/vendor/simdjson/dependencies/json/test/data/regression/floats.json.msgpack +0 -0
  1331. data/vendor/simdjson/dependencies/json/test/data/regression/signed_ints.json.cbor +0 -0
  1332. data/vendor/simdjson/dependencies/json/test/data/regression/signed_ints.json.msgpack +0 -0
  1333. data/vendor/simdjson/dependencies/json/test/data/regression/unsigned_ints.json.cbor +0 -0
  1334. data/vendor/simdjson/dependencies/json/test/data/regression/unsigned_ints.json.msgpack +0 -0
  1335. data/vendor/simdjson/dependencies/json/test/data/regression/working_file.json.cbor +0 -1
  1336. data/vendor/simdjson/dependencies/json/test/data/regression/working_file.json.msgpack +0 -1
  1337. data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/exec_speed.png +0 -0
  1338. data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/fuzz.tiff +0 -0
  1339. data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/high_freq.png +0 -0
  1340. data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/index.html +0 -10
  1341. data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/low_freq.png +0 -0
  1342. data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/README.md +0 -31
  1343. data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/conformance_Nlohmann (C++11).md +0 -670
  1344. data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/conformance_overall_Result.png +0 -0
  1345. data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/performance_Corei7-4980HQ@2.80GHz_mac64_clang7.0_1._Parse_Memory_(byte).png +0 -0
  1346. data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/performance_Corei7-4980HQ@2.80GHz_mac64_clang7.0_1._Parse_Time_(ms).png +0 -0
  1347. data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/performance_Corei7-4980HQ@2.80GHz_mac64_clang7.0_2._Stringify_Time_(ms).png +0 -0
  1348. data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/performance_Corei7-4980HQ@2.80GHz_mac64_clang7.0_3._Prettify_Time_(ms).png +0 -0
  1349. data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/performance_Corei7-4980HQ@2.80GHz_mac64_clang7.0_7._Code_size_FileSize_(byte).png +0 -0
  1350. data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/exec_speed.png +0 -0
  1351. data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/fuzz.tiff +0 -0
  1352. data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/high_freq.png +0 -0
  1353. data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/index.html +0 -10
  1354. data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/low_freq.png +0 -0
  1355. data/vendor/simdjson/dependencies/json/test/src/fuzzer-driver_afl.cpp +0 -38
  1356. data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_bson.cpp +0 -73
  1357. data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_cbor.cpp +0 -68
  1358. data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_json.cpp +0 -69
  1359. data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_msgpack.cpp +0 -68
  1360. data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_ubjson.cpp +0 -68
  1361. data/vendor/simdjson/dependencies/json/test/src/unit-algorithms.cpp +0 -320
  1362. data/vendor/simdjson/dependencies/json/test/src/unit-allocator.cpp +0 -236
  1363. data/vendor/simdjson/dependencies/json/test/src/unit-alt-string.cpp +0 -264
  1364. data/vendor/simdjson/dependencies/json/test/src/unit-bson.cpp +0 -1254
  1365. data/vendor/simdjson/dependencies/json/test/src/unit-capacity.cpp +0 -563
  1366. data/vendor/simdjson/dependencies/json/test/src/unit-cbor.cpp +0 -2189
  1367. data/vendor/simdjson/dependencies/json/test/src/unit-class_const_iterator.cpp +0 -419
  1368. data/vendor/simdjson/dependencies/json/test/src/unit-class_iterator.cpp +0 -403
  1369. data/vendor/simdjson/dependencies/json/test/src/unit-class_lexer.cpp +0 -181
  1370. data/vendor/simdjson/dependencies/json/test/src/unit-class_parser.cpp +0 -1770
  1371. data/vendor/simdjson/dependencies/json/test/src/unit-comparison.cpp +0 -263
  1372. data/vendor/simdjson/dependencies/json/test/src/unit-concepts.cpp +0 -171
  1373. data/vendor/simdjson/dependencies/json/test/src/unit-constructor1.cpp +0 -1537
  1374. data/vendor/simdjson/dependencies/json/test/src/unit-constructor2.cpp +0 -192
  1375. data/vendor/simdjson/dependencies/json/test/src/unit-convenience.cpp +0 -117
  1376. data/vendor/simdjson/dependencies/json/test/src/unit-conversions.cpp +0 -1577
  1377. data/vendor/simdjson/dependencies/json/test/src/unit-deserialization.cpp +0 -1026
  1378. data/vendor/simdjson/dependencies/json/test/src/unit-element_access1.cpp +0 -974
  1379. data/vendor/simdjson/dependencies/json/test/src/unit-element_access2.cpp +0 -1109
  1380. data/vendor/simdjson/dependencies/json/test/src/unit-inspection.cpp +0 -442
  1381. data/vendor/simdjson/dependencies/json/test/src/unit-items.cpp +0 -1450
  1382. data/vendor/simdjson/dependencies/json/test/src/unit-iterators1.cpp +0 -1692
  1383. data/vendor/simdjson/dependencies/json/test/src/unit-iterators2.cpp +0 -906
  1384. data/vendor/simdjson/dependencies/json/test/src/unit-json_patch.cpp +0 -1295
  1385. data/vendor/simdjson/dependencies/json/test/src/unit-json_pointer.cpp +0 -646
  1386. data/vendor/simdjson/dependencies/json/test/src/unit-merge_patch.cpp +0 -262
  1387. data/vendor/simdjson/dependencies/json/test/src/unit-meta.cpp +0 -57
  1388. data/vendor/simdjson/dependencies/json/test/src/unit-modifiers.cpp +0 -941
  1389. data/vendor/simdjson/dependencies/json/test/src/unit-msgpack.cpp +0 -1607
  1390. data/vendor/simdjson/dependencies/json/test/src/unit-noexcept.cpp +0 -82
  1391. data/vendor/simdjson/dependencies/json/test/src/unit-pointer_access.cpp +0 -444
  1392. data/vendor/simdjson/dependencies/json/test/src/unit-readme.cpp +0 -327
  1393. data/vendor/simdjson/dependencies/json/test/src/unit-reference_access.cpp +0 -318
  1394. data/vendor/simdjson/dependencies/json/test/src/unit-regression.cpp +0 -1830
  1395. data/vendor/simdjson/dependencies/json/test/src/unit-serialization.cpp +0 -191
  1396. data/vendor/simdjson/dependencies/json/test/src/unit-testsuites.cpp +0 -1415
  1397. data/vendor/simdjson/dependencies/json/test/src/unit-to_chars.cpp +0 -537
  1398. data/vendor/simdjson/dependencies/json/test/src/unit-ubjson.cpp +0 -2295
  1399. data/vendor/simdjson/dependencies/json/test/src/unit-udt.cpp +0 -830
  1400. data/vendor/simdjson/dependencies/json/test/src/unit-unicode.cpp +0 -1610
  1401. data/vendor/simdjson/dependencies/json/test/src/unit-wstring.cpp +0 -117
  1402. data/vendor/simdjson/dependencies/json/test/src/unit.cpp +0 -31
  1403. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/CMakeLists.txt +0 -45
  1404. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerCorpus.h +0 -217
  1405. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerCrossOver.cpp +0 -52
  1406. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerDefs.h +0 -89
  1407. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerDictionary.h +0 -124
  1408. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerDriver.cpp +0 -545
  1409. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctions.def +0 -50
  1410. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctions.h +0 -35
  1411. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctionsDlsym.cpp +0 -52
  1412. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctionsWeak.cpp +0 -53
  1413. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctionsWeakAlias.cpp +0 -56
  1414. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerFlags.def +0 -115
  1415. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerIO.cpp +0 -117
  1416. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerIO.h +0 -64
  1417. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerIOPosix.cpp +0 -88
  1418. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerIOWindows.cpp +0 -282
  1419. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerInterface.h +0 -67
  1420. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerInternal.h +0 -182
  1421. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerLoop.cpp +0 -792
  1422. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMain.cpp +0 -21
  1423. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMerge.cpp +0 -261
  1424. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMerge.h +0 -70
  1425. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMutate.cpp +0 -527
  1426. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMutate.h +0 -145
  1427. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerOptions.h +0 -68
  1428. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerRandom.h +0 -36
  1429. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerSHA1.cpp +0 -222
  1430. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerSHA1.h +0 -33
  1431. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerTracePC.cpp +0 -339
  1432. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerTracePC.h +0 -158
  1433. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerTraceState.cpp +0 -325
  1434. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtil.cpp +0 -218
  1435. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtil.h +0 -72
  1436. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtilDarwin.cpp +0 -152
  1437. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtilLinux.cpp +0 -24
  1438. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtilPosix.cpp +0 -117
  1439. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtilWindows.cpp +0 -182
  1440. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerValueBitMap.h +0 -87
  1441. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/README.txt +0 -2
  1442. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/afl/afl_driver.cpp +0 -295
  1443. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/build.sh +0 -10
  1444. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/cxx.dict +0 -122
  1445. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/standalone/StandaloneFuzzTargetMain.c +0 -41
  1446. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/AFLDriverTest.cpp +0 -22
  1447. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/AbsNegAndConstant64Test.cpp +0 -23
  1448. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/AbsNegAndConstantTest.cpp +0 -23
  1449. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/AccumulateAllocationsTest.cpp +0 -17
  1450. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/BufferOverflowOnInput.cpp +0 -23
  1451. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CMakeLists.txt +0 -217
  1452. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CallerCalleeTest.cpp +0 -59
  1453. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CounterTest.cpp +0 -18
  1454. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CustomCrossOverTest.cpp +0 -63
  1455. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CustomMutatorTest.cpp +0 -38
  1456. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DSO1.cpp +0 -12
  1457. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DSO2.cpp +0 -12
  1458. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DSOTestExtra.cpp +0 -11
  1459. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DSOTestMain.cpp +0 -31
  1460. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DivTest.cpp +0 -20
  1461. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/EmptyTest.cpp +0 -11
  1462. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/FourIndependentBranchesTest.cpp +0 -22
  1463. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/FullCoverageSetTest.cpp +0 -24
  1464. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/FuzzerUnittest.cpp +0 -738
  1465. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/InitializeTest.cpp +0 -28
  1466. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/LeakTest.cpp +0 -17
  1467. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/LeakTimeoutTest.cpp +0 -17
  1468. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/LoadTest.cpp +0 -22
  1469. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/MemcmpTest.cpp +0 -31
  1470. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/NthRunCrashTest.cpp +0 -18
  1471. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/NullDerefOnEmptyTest.cpp +0 -19
  1472. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/NullDerefTest.cpp +0 -26
  1473. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/OneHugeAllocTest.cpp +0 -28
  1474. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/OutOfMemorySingleLargeMallocTest.cpp +0 -27
  1475. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/OutOfMemoryTest.cpp +0 -31
  1476. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/RepeatedBytesTest.cpp +0 -29
  1477. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/RepeatedMemcmp.cpp +0 -22
  1478. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ShrinkControlFlowTest.cpp +0 -28
  1479. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ShrinkValueProfileTest.cpp +0 -22
  1480. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SignedIntOverflowTest.cpp +0 -28
  1481. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleCmpTest.cpp +0 -46
  1482. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleDictionaryTest.cpp +0 -29
  1483. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleHashTest.cpp +0 -40
  1484. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleTest.cpp +0 -27
  1485. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleThreadedTest.cpp +0 -25
  1486. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SingleMemcmpTest.cpp +0 -17
  1487. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SingleStrcmpTest.cpp +0 -17
  1488. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SingleStrncmpTest.cpp +0 -17
  1489. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SpamyTest.cpp +0 -21
  1490. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/StrcmpTest.cpp +0 -32
  1491. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/StrncmpOOBTest.cpp +0 -21
  1492. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/StrncmpTest.cpp +0 -28
  1493. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/StrstrTest.cpp +0 -28
  1494. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SwapCmpTest.cpp +0 -34
  1495. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/Switch2Test.cpp +0 -35
  1496. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SwitchTest.cpp +0 -58
  1497. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ThreadedLeakTest.cpp +0 -18
  1498. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ThreadedTest.cpp +0 -26
  1499. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/TimeoutEmptyTest.cpp +0 -14
  1500. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/TimeoutTest.cpp +0 -26
  1501. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/TraceMallocTest.cpp +0 -27
  1502. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/UninstrumentedTest.cpp +0 -11
  1503. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/afl-driver-extra-stats.test +0 -28
  1504. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/afl-driver-stderr.test +0 -10
  1505. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/caller-callee.test +0 -2
  1506. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/coverage.test +0 -19
  1507. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/dict1.txt +0 -4
  1508. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/dump_coverage.test +0 -16
  1509. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-customcrossover.test +0 -10
  1510. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-custommutator.test +0 -4
  1511. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-dict.test +0 -6
  1512. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-dirs.test +0 -15
  1513. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-fdmask.test +0 -30
  1514. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-finalstats.test +0 -11
  1515. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-flags.test +0 -10
  1516. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-jobs.test +0 -29
  1517. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-leak.test +0 -35
  1518. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-oom-with-profile.test +0 -6
  1519. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-oom.test +0 -11
  1520. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-printcovpcs.test +0 -8
  1521. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-runs.test +0 -8
  1522. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-seed.test +0 -3
  1523. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-segv.test +0 -5
  1524. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-singleinputs.test +0 -16
  1525. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-threaded.test +0 -7
  1526. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-timeout.test +0 -19
  1527. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-traces-hooks.test +0 -25
  1528. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-ubsan.test +0 -4
  1529. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer.test +0 -57
  1530. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/hi.txt +0 -1
  1531. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/lit.cfg +0 -29
  1532. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/lit.site.cfg.in +0 -4
  1533. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/merge.test +0 -46
  1534. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/minimize_crash.test +0 -6
  1535. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/no-coverage/CMakeLists.txt +0 -29
  1536. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/repeated-bytes.test +0 -2
  1537. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/shrink.test +0 -7
  1538. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/simple-cmp.test +0 -2
  1539. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/standalone.test +0 -4
  1540. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/swap-cmp.test +0 -2
  1541. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/trace-malloc.test +0 -10
  1542. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ubsan/CMakeLists.txt +0 -15
  1543. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ulimit.test +0 -2
  1544. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/uninstrumented/CMakeLists.txt +0 -16
  1545. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/unit/lit.cfg +0 -7
  1546. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/unit/lit.site.cfg.in +0 -2
  1547. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-cmp.test +0 -2
  1548. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-cmp2.test +0 -2
  1549. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-cmp3.test +0 -2
  1550. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-cmp4.test +0 -2
  1551. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-div.test +0 -3
  1552. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-load.test +0 -3
  1553. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-mem.test +0 -2
  1554. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-set.test +0 -3
  1555. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-strcmp.test +0 -2
  1556. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-strncmp.test +0 -2
  1557. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-switch.test +0 -3
  1558. data/vendor/simdjson/dependencies/json/test/thirdparty/doctest/LICENSE.txt +0 -21
  1559. data/vendor/simdjson/dependencies/json/test/thirdparty/doctest/doctest.h +0 -6025
  1560. data/vendor/simdjson/dependencies/json/test/thirdparty/doctest/doctest_compatibility.h +0 -37
  1561. data/vendor/simdjson/dependencies/json/test/thirdparty/fastcov/LICENSE +0 -21
  1562. data/vendor/simdjson/dependencies/json/test/thirdparty/fastcov/README.md +0 -46
  1563. data/vendor/simdjson/dependencies/json/test/thirdparty/fastcov/fastcov.py +0 -372
  1564. data/vendor/simdjson/dependencies/json/test/thirdparty/fifo_map/LICENSE.MIT +0 -21
  1565. data/vendor/simdjson/dependencies/json/test/thirdparty/fifo_map/fifo_map.hpp +0 -530
  1566. data/vendor/simdjson/dependencies/json/test/thirdparty/imapdl/filterbr.py +0 -109
  1567. data/vendor/simdjson/dependencies/json/test/thirdparty/imapdl/gpl-3.0.txt +0 -674
  1568. data/vendor/simdjson/dependencies/json/third_party/amalgamate/CHANGES.md +0 -10
  1569. data/vendor/simdjson/dependencies/json/third_party/amalgamate/LICENSE.md +0 -27
  1570. data/vendor/simdjson/dependencies/json/third_party/amalgamate/README.md +0 -66
  1571. data/vendor/simdjson/dependencies/json/third_party/amalgamate/amalgamate.py +0 -299
  1572. data/vendor/simdjson/dependencies/json/third_party/cpplint/LICENSE +0 -27
  1573. data/vendor/simdjson/dependencies/json/third_party/cpplint/README.rst +0 -80
  1574. data/vendor/simdjson/dependencies/json/third_party/cpplint/cpplint.py +0 -6583
  1575. data/vendor/simdjson/dependencies/json/third_party/cpplint/update.sh +0 -5
  1576. data/vendor/simdjson/dependencies/json11/CMakeLists.txt +0 -57
  1577. data/vendor/simdjson/dependencies/json11/LICENSE.txt +0 -19
  1578. data/vendor/simdjson/dependencies/json11/Makefile +0 -15
  1579. data/vendor/simdjson/dependencies/json11/README.md +0 -42
  1580. data/vendor/simdjson/dependencies/json11/json11.cpp +0 -788
  1581. data/vendor/simdjson/dependencies/json11/json11.hpp +0 -232
  1582. data/vendor/simdjson/dependencies/json11/json11.pc.in +0 -9
  1583. data/vendor/simdjson/dependencies/json11/test.cpp +0 -281
  1584. data/vendor/simdjson/dependencies/jsoncpp/AUTHORS +0 -111
  1585. data/vendor/simdjson/dependencies/jsoncpp/CMakeLists.txt +0 -186
  1586. data/vendor/simdjson/dependencies/jsoncpp/CTestConfig.cmake +0 -15
  1587. data/vendor/simdjson/dependencies/jsoncpp/LICENSE +0 -55
  1588. data/vendor/simdjson/dependencies/jsoncpp/README.md +0 -144
  1589. data/vendor/simdjson/dependencies/jsoncpp/amalgamate.py +0 -155
  1590. data/vendor/simdjson/dependencies/jsoncpp/appveyor.yml +0 -26
  1591. data/vendor/simdjson/dependencies/jsoncpp/dev.makefile +0 -35
  1592. data/vendor/simdjson/dependencies/jsoncpp/devtools/__init__.py +0 -6
  1593. data/vendor/simdjson/dependencies/jsoncpp/devtools/antglob.py +0 -205
  1594. data/vendor/simdjson/dependencies/jsoncpp/devtools/batchbuild.py +0 -278
  1595. data/vendor/simdjson/dependencies/jsoncpp/devtools/fixeol.py +0 -70
  1596. data/vendor/simdjson/dependencies/jsoncpp/devtools/licenseupdater.py +0 -94
  1597. data/vendor/simdjson/dependencies/jsoncpp/devtools/tarball.py +0 -52
  1598. data/vendor/simdjson/dependencies/jsoncpp/doc/doxyfile.in +0 -2302
  1599. data/vendor/simdjson/dependencies/jsoncpp/doc/footer.html +0 -21
  1600. data/vendor/simdjson/dependencies/jsoncpp/doc/header.html +0 -64
  1601. data/vendor/simdjson/dependencies/jsoncpp/doc/jsoncpp.dox +0 -164
  1602. data/vendor/simdjson/dependencies/jsoncpp/doc/readme.txt +0 -1
  1603. data/vendor/simdjson/dependencies/jsoncpp/doc/roadmap.dox +0 -3
  1604. data/vendor/simdjson/dependencies/jsoncpp/doc/web_doxyfile.in +0 -2290
  1605. data/vendor/simdjson/dependencies/jsoncpp/doxybuild.py +0 -189
  1606. data/vendor/simdjson/dependencies/jsoncpp/include/CMakeLists.txt +0 -2
  1607. data/vendor/simdjson/dependencies/jsoncpp/include/json/allocator.h +0 -89
  1608. data/vendor/simdjson/dependencies/jsoncpp/include/json/assertions.h +0 -59
  1609. data/vendor/simdjson/dependencies/jsoncpp/include/json/autolink.h +0 -25
  1610. data/vendor/simdjson/dependencies/jsoncpp/include/json/config.h +0 -198
  1611. data/vendor/simdjson/dependencies/jsoncpp/include/json/features.h +0 -61
  1612. data/vendor/simdjson/dependencies/jsoncpp/include/json/forwards.h +0 -37
  1613. data/vendor/simdjson/dependencies/jsoncpp/include/json/json.h +0 -15
  1614. data/vendor/simdjson/dependencies/jsoncpp/include/json/reader.h +0 -417
  1615. data/vendor/simdjson/dependencies/jsoncpp/include/json/value.h +0 -909
  1616. data/vendor/simdjson/dependencies/jsoncpp/include/json/version.h +0 -22
  1617. data/vendor/simdjson/dependencies/jsoncpp/include/json/writer.h +0 -368
  1618. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/jsoncpp.sln +0 -42
  1619. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/jsontest.vcxproj +0 -96
  1620. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/jsontest.vcxproj.filters +0 -13
  1621. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/lib_json.vcxproj +0 -143
  1622. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/lib_json.vcxproj.filters +0 -33
  1623. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/test_lib_json.vcxproj +0 -109
  1624. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/test_lib_json.vcxproj.filters +0 -24
  1625. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2017/jsoncpp.sln +0 -64
  1626. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2017/jsontest.vcxproj +0 -168
  1627. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2017/lib_json.vcxproj +0 -258
  1628. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2017/test_lib_json.vcxproj +0 -189
  1629. data/vendor/simdjson/dependencies/jsoncpp/makefiles/vs71/jsoncpp.sln +0 -46
  1630. data/vendor/simdjson/dependencies/jsoncpp/makefiles/vs71/jsontest.vcproj +0 -119
  1631. data/vendor/simdjson/dependencies/jsoncpp/makefiles/vs71/lib_json.vcproj +0 -205
  1632. data/vendor/simdjson/dependencies/jsoncpp/makefiles/vs71/test_lib_json.vcproj +0 -130
  1633. data/vendor/simdjson/dependencies/jsoncpp/makerelease.py +0 -390
  1634. data/vendor/simdjson/dependencies/jsoncpp/meson.build +0 -115
  1635. data/vendor/simdjson/dependencies/jsoncpp/pkg-config/jsoncpp.pc.in +0 -9
  1636. data/vendor/simdjson/dependencies/jsoncpp/src/CMakeLists.txt +0 -5
  1637. data/vendor/simdjson/dependencies/jsoncpp/src/jsontestrunner/CMakeLists.txt +0 -36
  1638. data/vendor/simdjson/dependencies/jsoncpp/src/jsontestrunner/main.cpp +0 -300
  1639. data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/CMakeLists.txt +0 -145
  1640. data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_reader.cpp +0 -2008
  1641. data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_tool.h +0 -134
  1642. data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_value.cpp +0 -1713
  1643. data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_valueiterator.inl +0 -159
  1644. data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_writer.cpp +0 -1253
  1645. data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/version.h.in +0 -20
  1646. data/vendor/simdjson/dependencies/jsoncpp/src/test_lib_json/CMakeLists.txt +0 -40
  1647. data/vendor/simdjson/dependencies/jsoncpp/src/test_lib_json/jsontest.cpp +0 -435
  1648. data/vendor/simdjson/dependencies/jsoncpp/src/test_lib_json/jsontest.h +0 -276
  1649. data/vendor/simdjson/dependencies/jsoncpp/src/test_lib_json/main.cpp +0 -2597
  1650. data/vendor/simdjson/dependencies/jsoncpp/test/cleantests.py +0 -16
  1651. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_01.expected +0 -1
  1652. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_02.expected +0 -2
  1653. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_03.expected +0 -6
  1654. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_04.expected +0 -5
  1655. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_05.expected +0 -100
  1656. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_06.expected +0 -5
  1657. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_07.expected +0 -2122
  1658. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_01.expected +0 -1
  1659. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_02.expected +0 -1
  1660. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_03.expected +0 -3
  1661. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_04.expected +0 -2
  1662. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_05.expected +0 -2
  1663. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_06.expected +0 -2
  1664. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_07.expected +0 -2
  1665. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_08.expected +0 -3
  1666. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_09.expected +0 -4
  1667. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_comment_00.expected +0 -4
  1668. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_comment_01.expected +0 -10
  1669. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_comment_02.expected +0 -23
  1670. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_complex_01.expected +0 -20
  1671. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_01.expected +0 -2
  1672. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_02.expected +0 -2
  1673. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_03.expected +0 -2
  1674. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_04.expected +0 -3
  1675. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_05.expected +0 -2
  1676. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_06_64bits.expected +0 -1
  1677. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_07_64bits.expected +0 -1
  1678. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_08_64bits.expected +0 -1
  1679. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_large_01.expected +0 -2122
  1680. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_object_01.expected +0 -1
  1681. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_object_02.expected +0 -2
  1682. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_object_03.expected +0 -4
  1683. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_object_04.expected +0 -2
  1684. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_preserve_comment_01.expected +0 -11
  1685. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_01.expected +0 -3
  1686. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_02.expected +0 -3
  1687. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_03.expected +0 -3
  1688. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_04.expected +0 -3
  1689. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_05.expected +0 -4
  1690. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_06.expected +0 -4
  1691. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_07.expected +0 -4
  1692. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_08.expected +0 -4
  1693. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_09.expected +0 -4
  1694. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_10.expected +0 -4
  1695. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_11.expected +0 -4
  1696. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_12.expected +0 -2
  1697. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_01.expected +0 -1
  1698. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_02.expected +0 -1
  1699. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_03.expected +0 -1
  1700. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_04.expected +0 -2
  1701. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_05.expected +0 -2
  1702. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_01.expected +0 -1
  1703. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_02.expected +0 -1
  1704. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_03.expected +0 -1
  1705. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_04.expected +0 -1
  1706. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_05.expected +0 -2
  1707. data/vendor/simdjson/dependencies/jsoncpp/test/generate_expected.py +0 -17
  1708. data/vendor/simdjson/dependencies/jsoncpp/test/jsonchecker/readme.txt +0 -3
  1709. data/vendor/simdjson/dependencies/jsoncpp/test/pyjsontestrunner.py +0 -71
  1710. data/vendor/simdjson/dependencies/jsoncpp/test/runjsontests.py +0 -210
  1711. data/vendor/simdjson/dependencies/jsoncpp/test/rununittests.py +0 -84
  1712. data/vendor/simdjson/dependencies/jsoncpp/version +0 -1
  1713. data/vendor/simdjson/dependencies/jsoncpp/version.in +0 -1
  1714. data/vendor/simdjson/dependencies/jsoncppdist/json/json-forwards.h +0 -344
  1715. data/vendor/simdjson/dependencies/jsoncppdist/json/json.h +0 -2366
  1716. data/vendor/simdjson/dependencies/jsoncppdist/jsoncpp.cpp +0 -5426
  1717. data/vendor/simdjson/dependencies/rapidjson/CHANGELOG.md +0 -158
  1718. data/vendor/simdjson/dependencies/rapidjson/CMakeLists.txt +0 -221
  1719. data/vendor/simdjson/dependencies/rapidjson/CMakeModules/FindGTestSrc.cmake +0 -30
  1720. data/vendor/simdjson/dependencies/rapidjson/RapidJSON.pc.in +0 -7
  1721. data/vendor/simdjson/dependencies/rapidjson/RapidJSONConfig.cmake.in +0 -15
  1722. data/vendor/simdjson/dependencies/rapidjson/RapidJSONConfigVersion.cmake.in +0 -10
  1723. data/vendor/simdjson/dependencies/rapidjson/appveyor.yml +0 -41
  1724. data/vendor/simdjson/dependencies/rapidjson/bin/data/readme.txt +0 -1
  1725. data/vendor/simdjson/dependencies/rapidjson/bin/draft-04/schema +0 -150
  1726. data/vendor/simdjson/dependencies/rapidjson/bin/jsonchecker/readme.txt +0 -3
  1727. data/vendor/simdjson/dependencies/rapidjson/bin/jsonschema/LICENSE +0 -19
  1728. data/vendor/simdjson/dependencies/rapidjson/bin/jsonschema/README.md +0 -148
  1729. data/vendor/simdjson/dependencies/rapidjson/bin/jsonschema/bin/jsonschema_suite +0 -283
  1730. data/vendor/simdjson/dependencies/rapidjson/bin/jsonschema/tox.ini +0 -8
  1731. data/vendor/simdjson/dependencies/rapidjson/bin/types/readme.txt +0 -1
  1732. data/vendor/simdjson/dependencies/rapidjson/contrib/natvis/LICENSE +0 -45
  1733. data/vendor/simdjson/dependencies/rapidjson/contrib/natvis/README.md +0 -7
  1734. data/vendor/simdjson/dependencies/rapidjson/contrib/natvis/rapidjson.natvis +0 -38
  1735. data/vendor/simdjson/dependencies/rapidjson/doc/CMakeLists.txt +0 -27
  1736. data/vendor/simdjson/dependencies/rapidjson/doc/Doxyfile.in +0 -2369
  1737. data/vendor/simdjson/dependencies/rapidjson/doc/Doxyfile.zh-cn.in +0 -2369
  1738. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/architecture.dot +0 -50
  1739. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/architecture.png +0 -0
  1740. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/insituparsing.dot +0 -65
  1741. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/insituparsing.png +0 -0
  1742. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/iterative-parser-states-diagram.dot +0 -62
  1743. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/iterative-parser-states-diagram.png +0 -0
  1744. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/makefile +0 -8
  1745. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move1.dot +0 -47
  1746. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move1.png +0 -0
  1747. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move2.dot +0 -62
  1748. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move2.png +0 -0
  1749. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move3.dot +0 -60
  1750. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move3.png +0 -0
  1751. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/normalparsing.dot +0 -56
  1752. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/normalparsing.png +0 -0
  1753. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/simpledom.dot +0 -54
  1754. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/simpledom.png +0 -0
  1755. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/tutorial.dot +0 -58
  1756. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/tutorial.png +0 -0
  1757. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/utilityclass.dot +0 -73
  1758. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/utilityclass.png +0 -0
  1759. data/vendor/simdjson/dependencies/rapidjson/doc/dom.md +0 -280
  1760. data/vendor/simdjson/dependencies/rapidjson/doc/dom.zh-cn.md +0 -284
  1761. data/vendor/simdjson/dependencies/rapidjson/doc/encoding.md +0 -146
  1762. data/vendor/simdjson/dependencies/rapidjson/doc/encoding.zh-cn.md +0 -152
  1763. data/vendor/simdjson/dependencies/rapidjson/doc/faq.md +0 -289
  1764. data/vendor/simdjson/dependencies/rapidjson/doc/faq.zh-cn.md +0 -290
  1765. data/vendor/simdjson/dependencies/rapidjson/doc/features.md +0 -104
  1766. data/vendor/simdjson/dependencies/rapidjson/doc/features.zh-cn.md +0 -103
  1767. data/vendor/simdjson/dependencies/rapidjson/doc/internals.md +0 -368
  1768. data/vendor/simdjson/dependencies/rapidjson/doc/internals.zh-cn.md +0 -363
  1769. data/vendor/simdjson/dependencies/rapidjson/doc/logo/rapidjson.png +0 -0
  1770. data/vendor/simdjson/dependencies/rapidjson/doc/logo/rapidjson.svg +0 -119
  1771. data/vendor/simdjson/dependencies/rapidjson/doc/misc/DoxygenLayout.xml +0 -194
  1772. data/vendor/simdjson/dependencies/rapidjson/doc/misc/doxygenextra.css +0 -274
  1773. data/vendor/simdjson/dependencies/rapidjson/doc/misc/footer.html +0 -11
  1774. data/vendor/simdjson/dependencies/rapidjson/doc/misc/header.html +0 -24
  1775. data/vendor/simdjson/dependencies/rapidjson/doc/npm.md +0 -31
  1776. data/vendor/simdjson/dependencies/rapidjson/doc/performance.md +0 -26
  1777. data/vendor/simdjson/dependencies/rapidjson/doc/performance.zh-cn.md +0 -26
  1778. data/vendor/simdjson/dependencies/rapidjson/doc/pointer.md +0 -234
  1779. data/vendor/simdjson/dependencies/rapidjson/doc/pointer.zh-cn.md +0 -234
  1780. data/vendor/simdjson/dependencies/rapidjson/doc/sax.md +0 -509
  1781. data/vendor/simdjson/dependencies/rapidjson/doc/sax.zh-cn.md +0 -487
  1782. data/vendor/simdjson/dependencies/rapidjson/doc/schema.md +0 -505
  1783. data/vendor/simdjson/dependencies/rapidjson/doc/schema.zh-cn.md +0 -237
  1784. data/vendor/simdjson/dependencies/rapidjson/doc/stream.md +0 -429
  1785. data/vendor/simdjson/dependencies/rapidjson/doc/stream.zh-cn.md +0 -429
  1786. data/vendor/simdjson/dependencies/rapidjson/doc/tutorial.md +0 -536
  1787. data/vendor/simdjson/dependencies/rapidjson/doc/tutorial.zh-cn.md +0 -534
  1788. data/vendor/simdjson/dependencies/rapidjson/docker/debian/Dockerfile +0 -8
  1789. data/vendor/simdjson/dependencies/rapidjson/example/CMakeLists.txt +0 -45
  1790. data/vendor/simdjson/dependencies/rapidjson/example/archiver/archiver.cpp +0 -292
  1791. data/vendor/simdjson/dependencies/rapidjson/example/archiver/archiver.h +0 -145
  1792. data/vendor/simdjson/dependencies/rapidjson/example/archiver/archivertest.cpp +0 -287
  1793. data/vendor/simdjson/dependencies/rapidjson/example/capitalize/capitalize.cpp +0 -67
  1794. data/vendor/simdjson/dependencies/rapidjson/example/condense/condense.cpp +0 -32
  1795. data/vendor/simdjson/dependencies/rapidjson/example/filterkey/filterkey.cpp +0 -135
  1796. data/vendor/simdjson/dependencies/rapidjson/example/filterkeydom/filterkeydom.cpp +0 -170
  1797. data/vendor/simdjson/dependencies/rapidjson/example/jsonx/jsonx.cpp +0 -207
  1798. data/vendor/simdjson/dependencies/rapidjson/example/lookaheadparser/lookaheadparser.cpp +0 -350
  1799. data/vendor/simdjson/dependencies/rapidjson/example/messagereader/messagereader.cpp +0 -105
  1800. data/vendor/simdjson/dependencies/rapidjson/example/parsebyparts/parsebyparts.cpp +0 -176
  1801. data/vendor/simdjson/dependencies/rapidjson/example/pretty/pretty.cpp +0 -30
  1802. data/vendor/simdjson/dependencies/rapidjson/example/prettyauto/prettyauto.cpp +0 -56
  1803. data/vendor/simdjson/dependencies/rapidjson/example/schemavalidator/schemavalidator.cpp +0 -78
  1804. data/vendor/simdjson/dependencies/rapidjson/example/serialize/serialize.cpp +0 -173
  1805. data/vendor/simdjson/dependencies/rapidjson/example/simpledom/simpledom.cpp +0 -29
  1806. data/vendor/simdjson/dependencies/rapidjson/example/simplepullreader/simplepullreader.cpp +0 -53
  1807. data/vendor/simdjson/dependencies/rapidjson/example/simplereader/simplereader.cpp +0 -42
  1808. data/vendor/simdjson/dependencies/rapidjson/example/simplewriter/simplewriter.cpp +0 -36
  1809. data/vendor/simdjson/dependencies/rapidjson/example/tutorial/tutorial.cpp +0 -151
  1810. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/allocators.h +0 -284
  1811. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/cursorstreamwrapper.h +0 -78
  1812. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/document.h +0 -2658
  1813. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/encodedstream.h +0 -299
  1814. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/encodings.h +0 -716
  1815. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/error/en.h +0 -74
  1816. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/error/error.h +0 -161
  1817. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/filereadstream.h +0 -99
  1818. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/filewritestream.h +0 -104
  1819. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/fwd.h +0 -151
  1820. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/biginteger.h +0 -290
  1821. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/diyfp.h +0 -258
  1822. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/dtoa.h +0 -245
  1823. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/ieee754.h +0 -78
  1824. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/itoa.h +0 -309
  1825. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/meta.h +0 -186
  1826. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/pow10.h +0 -55
  1827. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/regex.h +0 -732
  1828. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/stack.h +0 -231
  1829. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/strfunc.h +0 -69
  1830. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/strtod.h +0 -269
  1831. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/swap.h +0 -46
  1832. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/istreamwrapper.h +0 -113
  1833. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/memorybuffer.h +0 -70
  1834. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/memorystream.h +0 -71
  1835. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/msinttypes/inttypes.h +0 -316
  1836. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/msinttypes/stdint.h +0 -300
  1837. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/ostreamwrapper.h +0 -81
  1838. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/pointer.h +0 -1357
  1839. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/prettywriter.h +0 -277
  1840. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/rapidjson.h +0 -628
  1841. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/reader.h +0 -2216
  1842. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/schema.h +0 -2483
  1843. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/stream.h +0 -223
  1844. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/stringbuffer.h +0 -121
  1845. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/writer.h +0 -710
  1846. data/vendor/simdjson/dependencies/rapidjson/include_dirs.js +0 -2
  1847. data/vendor/simdjson/dependencies/rapidjson/license.txt +0 -57
  1848. data/vendor/simdjson/dependencies/rapidjson/rapidjson.autopkg +0 -77
  1849. data/vendor/simdjson/dependencies/rapidjson/readme.md +0 -160
  1850. data/vendor/simdjson/dependencies/rapidjson/readme.zh-cn.md +0 -152
  1851. data/vendor/simdjson/dependencies/rapidjson/test/CMakeLists.txt +0 -20
  1852. data/vendor/simdjson/dependencies/rapidjson/test/perftest/CMakeLists.txt +0 -28
  1853. data/vendor/simdjson/dependencies/rapidjson/test/perftest/misctest.cpp +0 -974
  1854. data/vendor/simdjson/dependencies/rapidjson/test/perftest/perftest.cpp +0 -24
  1855. data/vendor/simdjson/dependencies/rapidjson/test/perftest/perftest.h +0 -185
  1856. data/vendor/simdjson/dependencies/rapidjson/test/perftest/platformtest.cpp +0 -166
  1857. data/vendor/simdjson/dependencies/rapidjson/test/perftest/rapidjsontest.cpp +0 -472
  1858. data/vendor/simdjson/dependencies/rapidjson/test/perftest/schematest.cpp +0 -216
  1859. data/vendor/simdjson/dependencies/rapidjson/test/unittest/CMakeLists.txt +0 -92
  1860. data/vendor/simdjson/dependencies/rapidjson/test/unittest/allocatorstest.cpp +0 -102
  1861. data/vendor/simdjson/dependencies/rapidjson/test/unittest/bigintegertest.cpp +0 -133
  1862. data/vendor/simdjson/dependencies/rapidjson/test/unittest/cursorstreamwrappertest.cpp +0 -115
  1863. data/vendor/simdjson/dependencies/rapidjson/test/unittest/documenttest.cpp +0 -672
  1864. data/vendor/simdjson/dependencies/rapidjson/test/unittest/dtoatest.cpp +0 -98
  1865. data/vendor/simdjson/dependencies/rapidjson/test/unittest/encodedstreamtest.cpp +0 -313
  1866. data/vendor/simdjson/dependencies/rapidjson/test/unittest/encodingstest.cpp +0 -451
  1867. data/vendor/simdjson/dependencies/rapidjson/test/unittest/filestreamtest.cpp +0 -112
  1868. data/vendor/simdjson/dependencies/rapidjson/test/unittest/fwdtest.cpp +0 -230
  1869. data/vendor/simdjson/dependencies/rapidjson/test/unittest/istreamwrappertest.cpp +0 -181
  1870. data/vendor/simdjson/dependencies/rapidjson/test/unittest/itoatest.cpp +0 -160
  1871. data/vendor/simdjson/dependencies/rapidjson/test/unittest/jsoncheckertest.cpp +0 -143
  1872. data/vendor/simdjson/dependencies/rapidjson/test/unittest/namespacetest.cpp +0 -70
  1873. data/vendor/simdjson/dependencies/rapidjson/test/unittest/ostreamwrappertest.cpp +0 -92
  1874. data/vendor/simdjson/dependencies/rapidjson/test/unittest/pointertest.cpp +0 -1529
  1875. data/vendor/simdjson/dependencies/rapidjson/test/unittest/prettywritertest.cpp +0 -344
  1876. data/vendor/simdjson/dependencies/rapidjson/test/unittest/readertest.cpp +0 -1895
  1877. data/vendor/simdjson/dependencies/rapidjson/test/unittest/regextest.cpp +0 -638
  1878. data/vendor/simdjson/dependencies/rapidjson/test/unittest/schematest.cpp +0 -2045
  1879. data/vendor/simdjson/dependencies/rapidjson/test/unittest/simdtest.cpp +0 -219
  1880. data/vendor/simdjson/dependencies/rapidjson/test/unittest/strfunctest.cpp +0 -30
  1881. data/vendor/simdjson/dependencies/rapidjson/test/unittest/stringbuffertest.cpp +0 -192
  1882. data/vendor/simdjson/dependencies/rapidjson/test/unittest/strtodtest.cpp +0 -132
  1883. data/vendor/simdjson/dependencies/rapidjson/test/unittest/unittest.cpp +0 -51
  1884. data/vendor/simdjson/dependencies/rapidjson/test/unittest/unittest.h +0 -140
  1885. data/vendor/simdjson/dependencies/rapidjson/test/unittest/valuetest.cpp +0 -1851
  1886. data/vendor/simdjson/dependencies/rapidjson/test/unittest/writertest.cpp +0 -598
  1887. data/vendor/simdjson/dependencies/rapidjson/test/valgrind.supp +0 -17
  1888. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/CMakeLists.txt +0 -16
  1889. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/README.md +0 -141
  1890. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/CHANGES +0 -126
  1891. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt +0 -202
  1892. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/CONTRIBUTORS +0 -40
  1893. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/LICENSE +0 -28
  1894. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/Makefile.am +0 -224
  1895. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/README.md +0 -333
  1896. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/configure.ac +0 -146
  1897. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/CheatSheet.md +0 -562
  1898. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/CookBook.md +0 -3675
  1899. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/DesignDoc.md +0 -280
  1900. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/DevGuide.md +0 -132
  1901. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/Documentation.md +0 -12
  1902. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/ForDummies.md +0 -439
  1903. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/FrequentlyAskedQuestions.md +0 -628
  1904. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/KnownIssues.md +0 -19
  1905. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CheatSheet.md +0 -525
  1906. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CookBook.md +0 -3250
  1907. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/Documentation.md +0 -11
  1908. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/ForDummies.md +0 -439
  1909. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/FrequentlyAskedQuestions.md +0 -624
  1910. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CheatSheet.md +0 -534
  1911. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CookBook.md +0 -3342
  1912. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/Documentation.md +0 -12
  1913. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/ForDummies.md +0 -439
  1914. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/FrequentlyAskedQuestions.md +0 -628
  1915. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CheatSheet.md +0 -556
  1916. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CookBook.md +0 -3432
  1917. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/Documentation.md +0 -12
  1918. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/ForDummies.md +0 -439
  1919. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/FrequentlyAskedQuestions.md +0 -628
  1920. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-actions.h +0 -1205
  1921. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-cardinalities.h +0 -147
  1922. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h +0 -2377
  1923. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h.pump +0 -794
  1924. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h +0 -1095
  1925. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +0 -291
  1926. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h +0 -2179
  1927. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h.pump +0 -672
  1928. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h +0 -397
  1929. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h.pump +0 -161
  1930. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h +0 -4399
  1931. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-actions.h +0 -246
  1932. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-matchers.h +0 -58
  1933. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-spec-builders.h +0 -1847
  1934. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock.h +0 -94
  1935. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +0 -8
  1936. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +0 -10
  1937. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-matchers.h +0 -39
  1938. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-port.h +0 -46
  1939. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h +0 -279
  1940. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h.pump +0 -136
  1941. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-internal-utils.h +0 -511
  1942. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-port.h +0 -91
  1943. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/make/Makefile +0 -101
  1944. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.sln +0 -32
  1945. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.vcproj +0 -191
  1946. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_config.vsprops +0 -15
  1947. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_main.vcproj +0 -187
  1948. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_test.vcproj +0 -201
  1949. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.sln +0 -32
  1950. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.vcxproj +0 -82
  1951. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_config.props +0 -19
  1952. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_main.vcxproj +0 -88
  1953. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_test.vcxproj +0 -101
  1954. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.sln +0 -32
  1955. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.vcxproj +0 -84
  1956. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_config.props +0 -19
  1957. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_main.vcxproj +0 -90
  1958. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_test.vcxproj +0 -103
  1959. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/fuse_gmock_files.py +0 -240
  1960. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/LICENSE +0 -203
  1961. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README +0 -35
  1962. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README.cppclean +0 -115
  1963. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/__init__.py +0 -0
  1964. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/ast.py +0 -1733
  1965. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class.py +0 -227
  1966. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class_test.py +0 -448
  1967. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/keywords.py +0 -59
  1968. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/tokenize.py +0 -287
  1969. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/utils.py +0 -41
  1970. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/gmock_gen.py +0 -31
  1971. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/gmock-config.in +0 -303
  1972. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/gmock_doctor.py +0 -640
  1973. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/upload.py +0 -1387
  1974. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/upload_gmock.py +0 -78
  1975. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-all.cc +0 -47
  1976. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-cardinalities.cc +0 -156
  1977. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-internal-utils.cc +0 -174
  1978. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-matchers.cc +0 -498
  1979. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-spec-builders.cc +0 -823
  1980. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock.cc +0 -183
  1981. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock_main.cc +0 -54
  1982. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-actions_test.cc +0 -1411
  1983. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-cardinalities_test.cc +0 -428
  1984. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-actions_test.cc +0 -1228
  1985. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-function-mockers_test.cc +0 -622
  1986. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-internal-utils_test.cc +0 -127
  1987. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-matchers_test.cc +0 -1286
  1988. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-internal-utils_test.cc +0 -699
  1989. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-matchers_test.cc +0 -5648
  1990. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-more-actions_test.cc +0 -708
  1991. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-nice-strict_test.cc +0 -424
  1992. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-port_test.cc +0 -43
  1993. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-spec-builders_test.cc +0 -2644
  1994. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_all_test.cc +0 -51
  1995. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_ex_test.cc +0 -81
  1996. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test.py +0 -108
  1997. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test_.cc +0 -100
  1998. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_link2_test.cc +0 -40
  1999. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.cc +0 -40
  2000. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.h +0 -669
  2001. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test.py +0 -180
  2002. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_.cc +0 -291
  2003. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_golden.txt +0 -310
  2004. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_stress_test.cc +0 -322
  2005. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_test.cc +0 -220
  2006. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_test_utils.py +0 -112
  2007. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/CHANGES +0 -157
  2008. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt +0 -286
  2009. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/CONTRIBUTORS +0 -37
  2010. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/LICENSE +0 -28
  2011. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/Makefile.am +0 -310
  2012. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/README.md +0 -280
  2013. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/cmake/internal_utils.cmake +0 -242
  2014. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest.cbproj +0 -138
  2015. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest.groupproj +0 -54
  2016. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest_all.cc +0 -38
  2017. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest_link.cc +0 -40
  2018. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest_main.cbproj +0 -82
  2019. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest_unittest.cbproj +0 -88
  2020. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/configure.ac +0 -68
  2021. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/AdvancedGuide.md +0 -2182
  2022. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/DevGuide.md +0 -126
  2023. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/Documentation.md +0 -14
  2024. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/FAQ.md +0 -1087
  2025. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/Primer.md +0 -502
  2026. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/PumpManual.md +0 -177
  2027. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/Samples.md +0 -14
  2028. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_AdvancedGuide.md +0 -2096
  2029. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Documentation.md +0 -12
  2030. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_FAQ.md +0 -886
  2031. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Primer.md +0 -497
  2032. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_PumpManual.md +0 -177
  2033. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_XcodeGuide.md +0 -93
  2034. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_AdvancedGuide.md +0 -2178
  2035. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Documentation.md +0 -14
  2036. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_FAQ.md +0 -1038
  2037. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Primer.md +0 -501
  2038. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_PumpManual.md +0 -177
  2039. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Samples.md +0 -14
  2040. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_XcodeGuide.md +0 -93
  2041. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_AdvancedGuide.md +0 -2181
  2042. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Documentation.md +0 -14
  2043. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_FAQ.md +0 -1082
  2044. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Primer.md +0 -501
  2045. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_PumpManual.md +0 -177
  2046. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Samples.md +0 -14
  2047. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_XcodeGuide.md +0 -93
  2048. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/XcodeGuide.md +0 -93
  2049. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-death-test.h +0 -294
  2050. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-message.h +0 -250
  2051. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h +0 -1444
  2052. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h.pump +0 -510
  2053. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-printers.h +0 -993
  2054. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-spi.h +0 -232
  2055. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-test-part.h +0 -179
  2056. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-typed-test.h +0 -263
  2057. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest.h +0 -2236
  2058. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_pred_impl.h +0 -358
  2059. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_prod.h +0 -58
  2060. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-port.h +0 -69
  2061. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-printers.h +0 -42
  2062. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest.h +0 -41
  2063. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h +0 -319
  2064. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-filepath.h +0 -206
  2065. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-internal.h +0 -1238
  2066. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-linked_ptr.h +0 -243
  2067. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h +0 -5146
  2068. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +0 -286
  2069. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util.h +0 -731
  2070. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port-arch.h +0 -93
  2071. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port.h +0 -2554
  2072. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-string.h +0 -167
  2073. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h +0 -1020
  2074. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h.pump +0 -347
  2075. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h +0 -3331
  2076. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h.pump +0 -297
  2077. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/m4/acx_pthread.m4 +0 -363
  2078. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/m4/gtest.m4 +0 -74
  2079. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/make/Makefile +0 -82
  2080. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.sln +0 -45
  2081. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.vcproj +0 -126
  2082. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest.sln +0 -45
  2083. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest.vcproj +0 -126
  2084. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main-md.vcproj +0 -129
  2085. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main.vcproj +0 -129
  2086. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test-md.vcproj +0 -164
  2087. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test.vcproj +0 -164
  2088. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest-md.vcproj +0 -147
  2089. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest.vcproj +0 -147
  2090. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/prime_tables.h +0 -123
  2091. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample1.cc +0 -68
  2092. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample1.h +0 -43
  2093. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample10_unittest.cc +0 -144
  2094. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample1_unittest.cc +0 -153
  2095. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample2.cc +0 -56
  2096. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample2.h +0 -85
  2097. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample2_unittest.cc +0 -109
  2098. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample3-inl.h +0 -172
  2099. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample3_unittest.cc +0 -151
  2100. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample4.cc +0 -46
  2101. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample4.h +0 -53
  2102. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample4_unittest.cc +0 -45
  2103. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample5_unittest.cc +0 -199
  2104. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample6_unittest.cc +0 -224
  2105. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample7_unittest.cc +0 -130
  2106. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample8_unittest.cc +0 -173
  2107. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample9_unittest.cc +0 -160
  2108. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/common.py +0 -83
  2109. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/fuse_gtest_files.py +0 -253
  2110. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/gen_gtest_pred_impl.py +0 -730
  2111. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/gtest-config.in +0 -274
  2112. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/pump.py +0 -855
  2113. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/release_docs.py +0 -158
  2114. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/test/Makefile +0 -59
  2115. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/upload.py +0 -1387
  2116. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/upload_gtest.py +0 -78
  2117. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-all.cc +0 -48
  2118. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-death-test.cc +0 -1342
  2119. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-filepath.cc +0 -387
  2120. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-internal-inl.h +0 -1183
  2121. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-port.cc +0 -1259
  2122. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-printers.cc +0 -373
  2123. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-test-part.cc +0 -110
  2124. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-typed-test.cc +0 -118
  2125. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest.cc +0 -5388
  2126. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest_main.cc +0 -38
  2127. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_ex_test.cc +0 -93
  2128. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_test.cc +0 -1427
  2129. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-filepath_test.cc +0 -662
  2130. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-linked_ptr_test.cc +0 -154
  2131. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-listener_test.cc +0 -311
  2132. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-message_test.cc +0 -159
  2133. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-options_test.cc +0 -215
  2134. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test2_test.cc +0 -65
  2135. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.cc +0 -1055
  2136. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.h +0 -57
  2137. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-port_test.cc +0 -1304
  2138. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-printers_test.cc +0 -1635
  2139. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-test-part_test.cc +0 -208
  2140. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-tuple_test.cc +0 -320
  2141. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test2_test.cc +0 -45
  2142. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.cc +0 -380
  2143. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.h +0 -66
  2144. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-unittest-api_test.cc +0 -341
  2145. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_all_test.cc +0 -47
  2146. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest.py +0 -212
  2147. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest_.cc +0 -88
  2148. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test.py +0 -237
  2149. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test_.cc +0 -311
  2150. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test.py +0 -130
  2151. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test_.cc +0 -71
  2152. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test.py +0 -117
  2153. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test_.cc +0 -126
  2154. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_environment_test.cc +0 -192
  2155. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest.py +0 -636
  2156. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest_.cc +0 -140
  2157. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test.py +0 -172
  2158. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test_.cc +0 -46
  2159. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest.py +0 -207
  2160. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest_.cc +0 -157
  2161. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_main_unittest.cc +0 -45
  2162. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_no_test_unittest.cc +0 -56
  2163. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test.py +0 -340
  2164. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_.cc +0 -1062
  2165. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_golden_lin.txt +0 -743
  2166. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_pred_impl_unittest.cc +0 -2427
  2167. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_premature_exit_test.cc +0 -127
  2168. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_prod_test.cc +0 -57
  2169. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_repeat_test.cc +0 -253
  2170. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test.py +0 -325
  2171. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test_.cc +0 -103
  2172. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_sole_header_test.cc +0 -57
  2173. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_stress_test.cc +0 -256
  2174. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_test_utils.py +0 -320
  2175. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_ex_test.cc +0 -92
  2176. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test.py +0 -171
  2177. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test_.cc +0 -72
  2178. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test.py +0 -70
  2179. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test_.cc +0 -43
  2180. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_unittest.cc +0 -7706
  2181. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile1_test_.cc +0 -49
  2182. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile2_test_.cc +0 -49
  2183. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfiles_test.py +0 -132
  2184. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest.py +0 -308
  2185. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest_.cc +0 -181
  2186. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_test_utils.py +0 -194
  2187. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/production.cc +0 -36
  2188. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/production.h +0 -55
  2189. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/DebugProject.xcconfig +0 -30
  2190. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/FrameworkTarget.xcconfig +0 -17
  2191. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/General.xcconfig +0 -41
  2192. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/ReleaseProject.xcconfig +0 -32
  2193. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/StaticLibraryTarget.xcconfig +0 -18
  2194. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/TestTarget.xcconfig +0 -8
  2195. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Resources/Info.plist +0 -30
  2196. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/Info.plist +0 -28
  2197. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj +0 -457
  2198. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/runtests.sh +0 -62
  2199. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.cc +0 -63
  2200. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.h +0 -59
  2201. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget_test.cc +0 -68
  2202. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/runtests.sh +0 -65
  2203. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/versiongenerate.py +0 -100
  2204. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/gtest.xcodeproj/project.pbxproj +0 -1135
  2205. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/travis.sh +0 -15
  2206. data/vendor/simdjson/dependencies/rapidjson/travis-doxygen.sh +0 -121
  2207. data/vendor/simdjson/dependencies/sajson/LICENSE.txt +0 -7
  2208. data/vendor/simdjson/dependencies/sajson/README.md +0 -73
  2209. data/vendor/simdjson/dependencies/sajson/SConscript +0 -41
  2210. data/vendor/simdjson/dependencies/sajson/SConstruct +0 -95
  2211. data/vendor/simdjson/dependencies/sajson/benchmark/benchmark.cpp +0 -92
  2212. data/vendor/simdjson/dependencies/sajson/doc/doxygen.config +0 -2427
  2213. data/vendor/simdjson/dependencies/sajson/example/main.cpp +0 -127
  2214. data/vendor/simdjson/dependencies/sajson/example/zero-allocation.cpp +0 -28
  2215. data/vendor/simdjson/dependencies/sajson/include/sajson.h +0 -2493
  2216. data/vendor/simdjson/dependencies/sajson/include/sajson_ostream.h +0 -20
  2217. data/vendor/simdjson/dependencies/sajson/s/bench +0 -15
  2218. data/vendor/simdjson/dependencies/sajson/s/build +0 -4
  2219. data/vendor/simdjson/dependencies/sajson/s/doxygen +0 -4
  2220. data/vendor/simdjson/dependencies/sajson/s/test +0 -21
  2221. data/vendor/simdjson/dependencies/sajson/sajson-fuzz/build.sh +0 -4
  2222. data/vendor/simdjson/dependencies/sajson/sajson-fuzz/json.dict +0 -44
  2223. data/vendor/simdjson/dependencies/sajson/sajson-fuzz/run-primary.sh +0 -4
  2224. data/vendor/simdjson/dependencies/sajson/sajson-fuzz/run.sh +0 -3
  2225. data/vendor/simdjson/dependencies/sajson/swift/sajson.xcodeproj/project.pbxproj +0 -665
  2226. data/vendor/simdjson/dependencies/sajson/swift/sajson.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  2227. data/vendor/simdjson/dependencies/sajson/swift/sajson.xcodeproj/xcshareddata/xcschemes/sajson-macOS.xcscheme +0 -100
  2228. data/vendor/simdjson/dependencies/sajson/swift/sajson/Info.plist +0 -24
  2229. data/vendor/simdjson/dependencies/sajson/swift/sajson/sajson-ffi.cpp +0 -79
  2230. data/vendor/simdjson/dependencies/sajson/swift/sajson/sajson-swift/sajson-ffi.h +0 -35
  2231. data/vendor/simdjson/dependencies/sajson/swift/sajson/sajson.swift +0 -409
  2232. data/vendor/simdjson/dependencies/sajson/swift/sajson/sajson_swift.h +0 -3
  2233. data/vendor/simdjson/dependencies/sajson/swift/sajsonTests/Info.plist +0 -22
  2234. data/vendor/simdjson/dependencies/sajson/swift/sajsonTests/sajsonTests.swift +0 -122
  2235. data/vendor/simdjson/dependencies/sajson/tests/test.cpp +0 -1049
  2236. data/vendor/simdjson/dependencies/sajson/tests/test_no_stl.cpp +0 -2
  2237. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/COPYING +0 -20
  2238. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/Makefile +0 -96
  2239. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/README +0 -68
  2240. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/TestUnitTest++.vsnet2003.vcproj +0 -174
  2241. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/TestUnitTest++.vsnet2005.vcproj +0 -256
  2242. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/UnitTest++.vsnet2003.sln +0 -30
  2243. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/UnitTest++.vsnet2003.vcproj +0 -226
  2244. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/UnitTest++.vsnet2005.sln +0 -29
  2245. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/UnitTest++.vsnet2005.vcproj +0 -318
  2246. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/docs/UnitTest++.html +0 -260
  2247. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/AssertException.cpp +0 -34
  2248. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/AssertException.h +0 -28
  2249. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/CheckMacros.h +0 -122
  2250. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Checks.cpp +0 -50
  2251. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Checks.h +0 -158
  2252. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Config.h +0 -31
  2253. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/CurrentTest.cpp +0 -18
  2254. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/CurrentTest.h +0 -17
  2255. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/DeferredTestReporter.cpp +0 -29
  2256. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/DeferredTestReporter.h +0 -28
  2257. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/DeferredTestResult.cpp +0 -25
  2258. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/DeferredTestResult.h +0 -29
  2259. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/ExecuteTest.h +0 -46
  2260. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/MemoryOutStream.cpp +0 -149
  2261. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/MemoryOutStream.h +0 -67
  2262. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Posix/SignalTranslator.cpp +0 -46
  2263. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Posix/SignalTranslator.h +0 -42
  2264. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Posix/TimeHelpers.cpp +0 -33
  2265. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Posix/TimeHelpers.h +0 -28
  2266. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/ReportAssert.cpp +0 -10
  2267. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/ReportAssert.h +0 -10
  2268. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Test.cpp +0 -41
  2269. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Test.h +0 -34
  2270. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestDetails.cpp +0 -22
  2271. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestDetails.h +0 -24
  2272. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestList.cpp +0 -39
  2273. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestList.h +0 -32
  2274. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestMacros.h +0 -113
  2275. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestReporter.cpp +0 -10
  2276. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestReporter.h +0 -20
  2277. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestReporterStdout.cpp +0 -41
  2278. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestReporterStdout.h +0 -19
  2279. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestResults.cpp +0 -60
  2280. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestResults.h +0 -36
  2281. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestRunner.cpp +0 -76
  2282. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestRunner.h +0 -61
  2283. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestSuite.h +0 -14
  2284. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TimeConstraint.cpp +0 -29
  2285. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TimeConstraint.h +0 -33
  2286. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TimeHelpers.h +0 -7
  2287. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/UnitTest++.h +0 -18
  2288. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Win32/TimeHelpers.cpp +0 -50
  2289. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Win32/TimeHelpers.h +0 -48
  2290. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/XmlTestReporter.cpp +0 -127
  2291. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/XmlTestReporter.h +0 -34
  2292. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/Main.cpp +0 -8
  2293. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/RecordingReporter.h +0 -98
  2294. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/ScopedCurrentTest.h +0 -37
  2295. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestAssertHandler.cpp +0 -44
  2296. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestCheckMacros.cpp +0 -801
  2297. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestChecks.cpp +0 -293
  2298. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestCurrentTest.cpp +0 -38
  2299. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestDeferredTestReporter.cpp +0 -117
  2300. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestMemoryOutStream.cpp +0 -151
  2301. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTest.cpp +0 -129
  2302. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestList.cpp +0 -50
  2303. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestMacros.cpp +0 -212
  2304. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestResults.cpp +0 -111
  2305. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestRunner.cpp +0 -307
  2306. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestSuite.cpp +0 -12
  2307. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTimeConstraint.cpp +0 -69
  2308. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTimeConstraintMacro.cpp +0 -35
  2309. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestUnitTest++.cpp +0 -156
  2310. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestXmlTestReporter.cpp +0 -183
  2311. data/vendor/simdjson/dependencies/sajson/tools/genpow10.js +0 -39
  2312. data/vendor/simdjson/dependencies/ujson4c/3rdparty/ultrajson.h +0 -310
  2313. data/vendor/simdjson/dependencies/ujson4c/3rdparty/ultrajsondec.c +0 -891
  2314. data/vendor/simdjson/dependencies/ujson4c/LICENSE.txt +0 -31
  2315. data/vendor/simdjson/dependencies/ujson4c/README.rst +0 -43
  2316. data/vendor/simdjson/dependencies/ujson4c/src/ujdecode.c +0 -836
  2317. data/vendor/simdjson/dependencies/ujson4c/src/ujdecode.h +0 -261
  2318. data/vendor/simdjson/dependencies/ujson4c/tests/benchmark.c +0 -225
  2319. data/vendor/simdjson/dependencies/ujson4c/tests/tests.c +0 -102
  2320. data/vendor/simdjson/doc/Multiline_JSON_Parse_Competition.png +0 -0
  2321. data/vendor/simdjson/doc/apache_builds.jsonparseandstat.png +0 -0
  2322. data/vendor/simdjson/doc/basics.md +0 -574
  2323. data/vendor/simdjson/doc/basics_doxygen.md +0 -556
  2324. data/vendor/simdjson/doc/gbps.png +0 -0
  2325. data/vendor/simdjson/doc/github_events.jsonparseandstat.png +0 -0
  2326. data/vendor/simdjson/doc/growing.png +0 -0
  2327. data/vendor/simdjson/doc/implementation-selection.md +0 -83
  2328. data/vendor/simdjson/doc/parse_many.md +0 -160
  2329. data/vendor/simdjson/doc/performance.md +0 -172
  2330. data/vendor/simdjson/doc/tape.md +0 -136
  2331. data/vendor/simdjson/doc/twitter.jsonparseandstat.png +0 -0
  2332. data/vendor/simdjson/doc/update-center.jsonparseandstat.png +0 -0
  2333. data/vendor/simdjson/examples/CMakeLists.txt +0 -1
  2334. data/vendor/simdjson/examples/quickstart/CMakeLists.txt +0 -60
  2335. data/vendor/simdjson/examples/quickstart/Makefile +0 -32
  2336. data/vendor/simdjson/examples/quickstart/quickstart.cpp +0 -7
  2337. data/vendor/simdjson/examples/quickstart/quickstart_noexceptions.cpp +0 -16
  2338. data/vendor/simdjson/extra/dumpbits.h +0 -19
  2339. data/vendor/simdjson/fuzz/CMakeLists.txt +0 -63
  2340. data/vendor/simdjson/fuzz/Fuzzing.md +0 -86
  2341. data/vendor/simdjson/fuzz/NullBuffer.h +0 -21
  2342. data/vendor/simdjson/fuzz/build_corpus.sh +0 -18
  2343. data/vendor/simdjson/fuzz/build_fuzzer_variants.sh +0 -174
  2344. data/vendor/simdjson/fuzz/build_like_ossfuzz.sh +0 -22
  2345. data/vendor/simdjson/fuzz/fuzz_dump.cpp +0 -60
  2346. data/vendor/simdjson/fuzz/fuzz_dump_raw_tape.cpp +0 -18
  2347. data/vendor/simdjson/fuzz/fuzz_minify.cpp +0 -19
  2348. data/vendor/simdjson/fuzz/fuzz_parser.cpp +0 -10
  2349. data/vendor/simdjson/fuzz/fuzz_print_json.cpp +0 -18
  2350. data/vendor/simdjson/fuzz/main.cpp +0 -26
  2351. data/vendor/simdjson/fuzz/measure_coverage.sh +0 -34
  2352. data/vendor/simdjson/fuzz/ossfuzz.sh +0 -44
  2353. data/vendor/simdjson/images/halvarflake.png +0 -0
  2354. data/vendor/simdjson/images/logo.png +0 -0
  2355. data/vendor/simdjson/images/logotiny.png +0 -0
  2356. data/vendor/simdjson/include/CMakeLists.txt +0 -13
  2357. data/vendor/simdjson/include/simdjson.h +0 -47
  2358. data/vendor/simdjson/include/simdjson/common_defs.h +0 -208
  2359. data/vendor/simdjson/include/simdjson/compiler_check.h +0 -35
  2360. data/vendor/simdjson/include/simdjson/dom/array.h +0 -158
  2361. data/vendor/simdjson/include/simdjson/dom/document.h +0 -78
  2362. data/vendor/simdjson/include/simdjson/dom/document_stream.h +0 -261
  2363. data/vendor/simdjson/include/simdjson/dom/element.h +0 -545
  2364. data/vendor/simdjson/include/simdjson/dom/jsonparser.h +0 -117
  2365. data/vendor/simdjson/include/simdjson/dom/object.h +0 -264
  2366. data/vendor/simdjson/include/simdjson/dom/parsedjson.h +0 -17
  2367. data/vendor/simdjson/include/simdjson/dom/parsedjson_iterator.h +0 -270
  2368. data/vendor/simdjson/include/simdjson/dom/parser.h +0 -434
  2369. data/vendor/simdjson/include/simdjson/error.h +0 -252
  2370. data/vendor/simdjson/include/simdjson/implementation.h +0 -244
  2371. data/vendor/simdjson/include/simdjson/inline/array.h +0 -153
  2372. data/vendor/simdjson/include/simdjson/inline/document.h +0 -141
  2373. data/vendor/simdjson/include/simdjson/inline/document_stream.h +0 -255
  2374. data/vendor/simdjson/include/simdjson/inline/element.h +0 -535
  2375. data/vendor/simdjson/include/simdjson/inline/error.h +0 -155
  2376. data/vendor/simdjson/include/simdjson/inline/object.h +0 -255
  2377. data/vendor/simdjson/include/simdjson/inline/padded_string.h +0 -150
  2378. data/vendor/simdjson/include/simdjson/inline/parsedjson_iterator.h +0 -486
  2379. data/vendor/simdjson/include/simdjson/inline/parser.h +0 -206
  2380. data/vendor/simdjson/include/simdjson/inline/tape_ref.h +0 -105
  2381. data/vendor/simdjson/include/simdjson/internal/dom_parser_implementation.h +0 -181
  2382. data/vendor/simdjson/include/simdjson/internal/jsonformatutils.h +0 -65
  2383. data/vendor/simdjson/include/simdjson/internal/tape_ref.h +0 -51
  2384. data/vendor/simdjson/include/simdjson/internal/tape_type.h +0 -28
  2385. data/vendor/simdjson/include/simdjson/jsonioutil.h +0 -20
  2386. data/vendor/simdjson/include/simdjson/minify.h +0 -75
  2387. data/vendor/simdjson/include/simdjson/nonstd/string_view.hpp +0 -1529
  2388. data/vendor/simdjson/include/simdjson/padded_string.h +0 -156
  2389. data/vendor/simdjson/include/simdjson/portability.h +0 -241
  2390. data/vendor/simdjson/include/simdjson/simdjson.h +0 -10
  2391. data/vendor/simdjson/include/simdjson/simdjson_version.h +0 -26
  2392. data/vendor/simdjson/jsonchecker/CMakeLists.txt +0 -3
  2393. data/vendor/simdjson/jsonexamples/CMakeLists.txt +0 -16
  2394. data/vendor/simdjson/jsonexamples/generated/CMakeLists.txt +0 -18
  2395. data/vendor/simdjson/jsonexamples/generated/genfeaturejson.rb +0 -117
  2396. data/vendor/simdjson/jsonexamples/generated/genfeaturejsonseed.rb +0 -49
  2397. data/vendor/simdjson/jsonexamples/generated/miss-templates/128.txt +0 -10000
  2398. data/vendor/simdjson/jsonexamples/generated/miss-templates/64.txt +0 -10000
  2399. data/vendor/simdjson/jsonexamples/small/jsoniter_scala/README.md +0 -28
  2400. data/vendor/simdjson/scripts/dumpsimplestats.sh +0 -11
  2401. data/vendor/simdjson/scripts/javascript/README.md +0 -3
  2402. data/vendor/simdjson/scripts/javascript/generatelargejson.js +0 -19
  2403. data/vendor/simdjson/scripts/minifier.sh +0 -11
  2404. data/vendor/simdjson/scripts/parseandstat.sh +0 -24
  2405. data/vendor/simdjson/scripts/parser.sh +0 -11
  2406. data/vendor/simdjson/scripts/parsingcompdata.sh +0 -26
  2407. data/vendor/simdjson/scripts/plotparse.sh +0 -98
  2408. data/vendor/simdjson/scripts/ruby/kostya_large.rb +0 -32
  2409. data/vendor/simdjson/scripts/selectparser.sh +0 -11
  2410. data/vendor/simdjson/scripts/setupfortesting/disablehyperthreading.sh +0 -15
  2411. data/vendor/simdjson/scripts/setupfortesting/powerpolicy.sh +0 -32
  2412. data/vendor/simdjson/scripts/setupfortesting/setupfortesting.sh +0 -6
  2413. data/vendor/simdjson/scripts/setupfortesting/turboboost.sh +0 -51
  2414. data/vendor/simdjson/scripts/shootout.sh +0 -32
  2415. data/vendor/simdjson/scripts/transitions/Makefile +0 -10
  2416. data/vendor/simdjson/scripts/transitions/generatetransitions.cpp +0 -20
  2417. data/vendor/simdjson/singleheader/CMakeLists.txt +0 -151
  2418. data/vendor/simdjson/singleheader/README.md +0 -2
  2419. data/vendor/simdjson/singleheader/amalgamate.sh +0 -196
  2420. data/vendor/simdjson/singleheader/amalgamate_demo.cpp +0 -46
  2421. data/vendor/simdjson/singleheader/simdjson.cpp +0 -14156
  2422. data/vendor/simdjson/singleheader/simdjson.h +0 -7716
  2423. data/vendor/simdjson/src/CMakeLists.txt +0 -108
  2424. data/vendor/simdjson/src/arm64/bitmanipulation.h +0 -73
  2425. data/vendor/simdjson/src/arm64/bitmask.h +0 -43
  2426. data/vendor/simdjson/src/arm64/dom_parser_implementation.cpp +0 -137
  2427. data/vendor/simdjson/src/arm64/dom_parser_implementation.h +0 -15
  2428. data/vendor/simdjson/src/arm64/implementation.cpp +0 -25
  2429. data/vendor/simdjson/src/arm64/implementation.h +0 -27
  2430. data/vendor/simdjson/src/arm64/intrinsics.h +0 -10
  2431. data/vendor/simdjson/src/arm64/numberparsing.h +0 -39
  2432. data/vendor/simdjson/src/arm64/simd.h +0 -522
  2433. data/vendor/simdjson/src/arm64/stringparsing.h +0 -53
  2434. data/vendor/simdjson/src/error.cpp +0 -34
  2435. data/vendor/simdjson/src/fallback/bitmanipulation.h +0 -77
  2436. data/vendor/simdjson/src/fallback/dom_parser_implementation.cpp +0 -335
  2437. data/vendor/simdjson/src/fallback/dom_parser_implementation.h +0 -15
  2438. data/vendor/simdjson/src/fallback/implementation.cpp +0 -25
  2439. data/vendor/simdjson/src/fallback/implementation.h +0 -32
  2440. data/vendor/simdjson/src/fallback/numberparsing.h +0 -35
  2441. data/vendor/simdjson/src/fallback/stringparsing.h +0 -35
  2442. data/vendor/simdjson/src/generic/dom_parser_implementation.h +0 -59
  2443. data/vendor/simdjson/src/generic/stage1/allocate.h +0 -17
  2444. data/vendor/simdjson/src/generic/stage1/buf_block_reader.h +0 -83
  2445. data/vendor/simdjson/src/generic/stage1/find_next_document_index.h +0 -86
  2446. data/vendor/simdjson/src/generic/stage1/json_minifier.h +0 -77
  2447. data/vendor/simdjson/src/generic/stage1/json_scanner.h +0 -104
  2448. data/vendor/simdjson/src/generic/stage1/json_string_scanner.h +0 -139
  2449. data/vendor/simdjson/src/generic/stage1/json_structural_indexer.h +0 -198
  2450. data/vendor/simdjson/src/generic/stage1/utf8_fastvalidate_algorithm.h +0 -178
  2451. data/vendor/simdjson/src/generic/stage1/utf8_lookup2_algorithm.h +0 -218
  2452. data/vendor/simdjson/src/generic/stage1/utf8_lookup3_algorithm.h +0 -230
  2453. data/vendor/simdjson/src/generic/stage1/utf8_lookup_algorithm.h +0 -299
  2454. data/vendor/simdjson/src/generic/stage1/utf8_range_algorithm.h +0 -180
  2455. data/vendor/simdjson/src/generic/stage1/utf8_validator.h +0 -26
  2456. data/vendor/simdjson/src/generic/stage1/utf8_zwegner_algorithm.h +0 -360
  2457. data/vendor/simdjson/src/generic/stage2/allocate.h +0 -18
  2458. data/vendor/simdjson/src/generic/stage2/atomparsing.h +0 -51
  2459. data/vendor/simdjson/src/generic/stage2/logger.h +0 -64
  2460. data/vendor/simdjson/src/generic/stage2/numberparsing.h +0 -572
  2461. data/vendor/simdjson/src/generic/stage2/streaming_structural_parser.h +0 -168
  2462. data/vendor/simdjson/src/generic/stage2/stringparsing.h +0 -123
  2463. data/vendor/simdjson/src/generic/stage2/structural_iterator.h +0 -70
  2464. data/vendor/simdjson/src/generic/stage2/structural_parser.h +0 -474
  2465. data/vendor/simdjson/src/generic/stage2/tape_writer.h +0 -95
  2466. data/vendor/simdjson/src/haswell/bitmanipulation.h +0 -80
  2467. data/vendor/simdjson/src/haswell/bitmask.h +0 -30
  2468. data/vendor/simdjson/src/haswell/dom_parser_implementation.cpp +0 -127
  2469. data/vendor/simdjson/src/haswell/dom_parser_implementation.h +0 -15
  2470. data/vendor/simdjson/src/haswell/implementation.cpp +0 -25
  2471. data/vendor/simdjson/src/haswell/implementation.h +0 -29
  2472. data/vendor/simdjson/src/haswell/intrinsics.h +0 -54
  2473. data/vendor/simdjson/src/haswell/numberparsing.h +0 -49
  2474. data/vendor/simdjson/src/haswell/simd.h +0 -377
  2475. data/vendor/simdjson/src/haswell/stringparsing.h +0 -50
  2476. data/vendor/simdjson/src/implementation.cpp +0 -155
  2477. data/vendor/simdjson/src/isadetection.h +0 -167
  2478. data/vendor/simdjson/src/jsoncharutils.h +0 -1336
  2479. data/vendor/simdjson/src/simdjson.cpp +0 -32
  2480. data/vendor/simdjson/src/simdprune_tables.h +0 -136
  2481. data/vendor/simdjson/src/westmere/bitmanipulation.h +0 -89
  2482. data/vendor/simdjson/src/westmere/bitmask.h +0 -29
  2483. data/vendor/simdjson/src/westmere/dom_parser_implementation.cpp +0 -128
  2484. data/vendor/simdjson/src/westmere/dom_parser_implementation.h +0 -15
  2485. data/vendor/simdjson/src/westmere/implementation.cpp +0 -25
  2486. data/vendor/simdjson/src/westmere/implementation.h +0 -28
  2487. data/vendor/simdjson/src/westmere/intrinsics.h +0 -27
  2488. data/vendor/simdjson/src/westmere/numberparsing.h +0 -50
  2489. data/vendor/simdjson/src/westmere/simd.h +0 -362
  2490. data/vendor/simdjson/src/westmere/stringparsing.h +0 -52
  2491. data/vendor/simdjson/style/clang-format-check.sh +0 -25
  2492. data/vendor/simdjson/style/clang-format.sh +0 -25
  2493. data/vendor/simdjson/style/run-clang-format.py +0 -326
  2494. data/vendor/simdjson/tests/CMakeLists.txt +0 -196
  2495. data/vendor/simdjson/tests/allparserscheckfile.cpp +0 -188
  2496. data/vendor/simdjson/tests/basictests.cpp +0 -1984
  2497. data/vendor/simdjson/tests/cast_tester.h +0 -271
  2498. data/vendor/simdjson/tests/checkimplementation.cpp +0 -23
  2499. data/vendor/simdjson/tests/compilation_failure_tests/CMakeLists.txt +0 -25
  2500. data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_load.cpp +0 -15
  2501. data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_parse_padstring.cpp +0 -16
  2502. data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_parse_stdstring.cpp +0 -16
  2503. data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_parse_uchar.cpp +0 -17
  2504. data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_parse_uint8.cpp +0 -17
  2505. data/vendor/simdjson/tests/compilation_failure_tests/example_compiletest.cpp +0 -20
  2506. data/vendor/simdjson/tests/errortests.cpp +0 -160
  2507. data/vendor/simdjson/tests/extracting_values_example.cpp +0 -12
  2508. data/vendor/simdjson/tests/integer_tests.cpp +0 -95
  2509. data/vendor/simdjson/tests/issue150.sh +0 -13
  2510. data/vendor/simdjson/tests/jsoncheck.cpp +0 -144
  2511. data/vendor/simdjson/tests/numberparsingcheck.cpp +0 -239
  2512. data/vendor/simdjson/tests/parse_many_test.cpp +0 -146
  2513. data/vendor/simdjson/tests/pointercheck.cpp +0 -86
  2514. data/vendor/simdjson/tests/readme_examples.cpp +0 -298
  2515. data/vendor/simdjson/tests/readme_examples_noexceptions.cpp +0 -197
  2516. data/vendor/simdjson/tests/singleheadertest.cpp +0 -18
  2517. data/vendor/simdjson/tests/staticchecks.cpp +0 -29
  2518. data/vendor/simdjson/tests/stringparsingcheck.cpp +0 -407
  2519. data/vendor/simdjson/tests/test_macros.h +0 -55
  2520. data/vendor/simdjson/tests/testjson2json.sh +0 -39
  2521. data/vendor/simdjson/tests/unicode_tests.cpp +0 -246
  2522. data/vendor/simdjson/tools/CMakeLists.txt +0 -9
  2523. data/vendor/simdjson/tools/json2json.cpp +0 -73
  2524. data/vendor/simdjson/tools/jsonpointer.cpp +0 -45
  2525. data/vendor/simdjson/tools/jsonstats.cpp +0 -283
  2526. data/vendor/simdjson/tools/minify.cpp +0 -79
  2527. data/vendor/simdjson/tools/release.py +0 -197
  2528. data/vendor/simdjson/windows/CMakeLists.txt +0 -6
  2529. data/vendor/simdjson/windows/dirent_portable.h +0 -10
  2530. data/vendor/simdjson/windows/getopt.h +0 -658
  2531. data/vendor/simdjson/windows/toni_ronnko_dirent.h +0 -1075
  2532. data/vendor/simdjson/windows/unistd.h +0 -3
@@ -1,3675 +0,0 @@
1
-
2
-
3
- You can find recipes for using Google Mock here. If you haven't yet,
4
- please read the [ForDummies](ForDummies.md) document first to make sure you understand
5
- the basics.
6
-
7
- **Note:** Google Mock lives in the `testing` name space. For
8
- readability, it is recommended to write `using ::testing::Foo;` once in
9
- your file before using the name `Foo` defined by Google Mock. We omit
10
- such `using` statements in this page for brevity, but you should do it
11
- in your own code.
12
-
13
- # Creating Mock Classes #
14
-
15
- ## Mocking Private or Protected Methods ##
16
-
17
- You must always put a mock method definition (`MOCK_METHOD*`) in a
18
- `public:` section of the mock class, regardless of the method being
19
- mocked being `public`, `protected`, or `private` in the base class.
20
- This allows `ON_CALL` and `EXPECT_CALL` to reference the mock function
21
- from outside of the mock class. (Yes, C++ allows a subclass to change
22
- the access level of a virtual function in the base class.) Example:
23
-
24
- ```
25
- class Foo {
26
- public:
27
- ...
28
- virtual bool Transform(Gadget* g) = 0;
29
-
30
- protected:
31
- virtual void Resume();
32
-
33
- private:
34
- virtual int GetTimeOut();
35
- };
36
-
37
- class MockFoo : public Foo {
38
- public:
39
- ...
40
- MOCK_METHOD1(Transform, bool(Gadget* g));
41
-
42
- // The following must be in the public section, even though the
43
- // methods are protected or private in the base class.
44
- MOCK_METHOD0(Resume, void());
45
- MOCK_METHOD0(GetTimeOut, int());
46
- };
47
- ```
48
-
49
- ## Mocking Overloaded Methods ##
50
-
51
- You can mock overloaded functions as usual. No special attention is required:
52
-
53
- ```
54
- class Foo {
55
- ...
56
-
57
- // Must be virtual as we'll inherit from Foo.
58
- virtual ~Foo();
59
-
60
- // Overloaded on the types and/or numbers of arguments.
61
- virtual int Add(Element x);
62
- virtual int Add(int times, Element x);
63
-
64
- // Overloaded on the const-ness of this object.
65
- virtual Bar& GetBar();
66
- virtual const Bar& GetBar() const;
67
- };
68
-
69
- class MockFoo : public Foo {
70
- ...
71
- MOCK_METHOD1(Add, int(Element x));
72
- MOCK_METHOD2(Add, int(int times, Element x);
73
-
74
- MOCK_METHOD0(GetBar, Bar&());
75
- MOCK_CONST_METHOD0(GetBar, const Bar&());
76
- };
77
- ```
78
-
79
- **Note:** if you don't mock all versions of the overloaded method, the
80
- compiler will give you a warning about some methods in the base class
81
- being hidden. To fix that, use `using` to bring them in scope:
82
-
83
- ```
84
- class MockFoo : public Foo {
85
- ...
86
- using Foo::Add;
87
- MOCK_METHOD1(Add, int(Element x));
88
- // We don't want to mock int Add(int times, Element x);
89
- ...
90
- };
91
- ```
92
-
93
- ## Mocking Class Templates ##
94
-
95
- To mock a class template, append `_T` to the `MOCK_*` macros:
96
-
97
- ```
98
- template <typename Elem>
99
- class StackInterface {
100
- ...
101
- // Must be virtual as we'll inherit from StackInterface.
102
- virtual ~StackInterface();
103
-
104
- virtual int GetSize() const = 0;
105
- virtual void Push(const Elem& x) = 0;
106
- };
107
-
108
- template <typename Elem>
109
- class MockStack : public StackInterface<Elem> {
110
- ...
111
- MOCK_CONST_METHOD0_T(GetSize, int());
112
- MOCK_METHOD1_T(Push, void(const Elem& x));
113
- };
114
- ```
115
-
116
- ## Mocking Nonvirtual Methods ##
117
-
118
- Google Mock can mock non-virtual functions to be used in what we call _hi-perf
119
- dependency injection_.
120
-
121
- In this case, instead of sharing a common base class with the real
122
- class, your mock class will be _unrelated_ to the real class, but
123
- contain methods with the same signatures. The syntax for mocking
124
- non-virtual methods is the _same_ as mocking virtual methods:
125
-
126
- ```
127
- // A simple packet stream class. None of its members is virtual.
128
- class ConcretePacketStream {
129
- public:
130
- void AppendPacket(Packet* new_packet);
131
- const Packet* GetPacket(size_t packet_number) const;
132
- size_t NumberOfPackets() const;
133
- ...
134
- };
135
-
136
- // A mock packet stream class. It inherits from no other, but defines
137
- // GetPacket() and NumberOfPackets().
138
- class MockPacketStream {
139
- public:
140
- MOCK_CONST_METHOD1(GetPacket, const Packet*(size_t packet_number));
141
- MOCK_CONST_METHOD0(NumberOfPackets, size_t());
142
- ...
143
- };
144
- ```
145
-
146
- Note that the mock class doesn't define `AppendPacket()`, unlike the
147
- real class. That's fine as long as the test doesn't need to call it.
148
-
149
- Next, you need a way to say that you want to use
150
- `ConcretePacketStream` in production code, and use `MockPacketStream`
151
- in tests. Since the functions are not virtual and the two classes are
152
- unrelated, you must specify your choice at _compile time_ (as opposed
153
- to run time).
154
-
155
- One way to do it is to templatize your code that needs to use a packet
156
- stream. More specifically, you will give your code a template type
157
- argument for the type of the packet stream. In production, you will
158
- instantiate your template with `ConcretePacketStream` as the type
159
- argument. In tests, you will instantiate the same template with
160
- `MockPacketStream`. For example, you may write:
161
-
162
- ```
163
- template <class PacketStream>
164
- void CreateConnection(PacketStream* stream) { ... }
165
-
166
- template <class PacketStream>
167
- class PacketReader {
168
- public:
169
- void ReadPackets(PacketStream* stream, size_t packet_num);
170
- };
171
- ```
172
-
173
- Then you can use `CreateConnection<ConcretePacketStream>()` and
174
- `PacketReader<ConcretePacketStream>` in production code, and use
175
- `CreateConnection<MockPacketStream>()` and
176
- `PacketReader<MockPacketStream>` in tests.
177
-
178
- ```
179
- MockPacketStream mock_stream;
180
- EXPECT_CALL(mock_stream, ...)...;
181
- .. set more expectations on mock_stream ...
182
- PacketReader<MockPacketStream> reader(&mock_stream);
183
- ... exercise reader ...
184
- ```
185
-
186
- ## Mocking Free Functions ##
187
-
188
- It's possible to use Google Mock to mock a free function (i.e. a
189
- C-style function or a static method). You just need to rewrite your
190
- code to use an interface (abstract class).
191
-
192
- Instead of calling a free function (say, `OpenFile`) directly,
193
- introduce an interface for it and have a concrete subclass that calls
194
- the free function:
195
-
196
- ```
197
- class FileInterface {
198
- public:
199
- ...
200
- virtual bool Open(const char* path, const char* mode) = 0;
201
- };
202
-
203
- class File : public FileInterface {
204
- public:
205
- ...
206
- virtual bool Open(const char* path, const char* mode) {
207
- return OpenFile(path, mode);
208
- }
209
- };
210
- ```
211
-
212
- Your code should talk to `FileInterface` to open a file. Now it's
213
- easy to mock out the function.
214
-
215
- This may seem much hassle, but in practice you often have multiple
216
- related functions that you can put in the same interface, so the
217
- per-function syntactic overhead will be much lower.
218
-
219
- If you are concerned about the performance overhead incurred by
220
- virtual functions, and profiling confirms your concern, you can
221
- combine this with the recipe for [mocking non-virtual methods](#Mocking_Nonvirtual_Methods.md).
222
-
223
- ## The Nice, the Strict, and the Naggy ##
224
-
225
- If a mock method has no `EXPECT_CALL` spec but is called, Google Mock
226
- will print a warning about the "uninteresting call". The rationale is:
227
-
228
- * New methods may be added to an interface after a test is written. We shouldn't fail a test just because a method it doesn't know about is called.
229
- * However, this may also mean there's a bug in the test, so Google Mock shouldn't be silent either. If the user believes these calls are harmless, he can add an `EXPECT_CALL()` to suppress the warning.
230
-
231
- However, sometimes you may want to suppress all "uninteresting call"
232
- warnings, while sometimes you may want the opposite, i.e. to treat all
233
- of them as errors. Google Mock lets you make the decision on a
234
- per-mock-object basis.
235
-
236
- Suppose your test uses a mock class `MockFoo`:
237
-
238
- ```
239
- TEST(...) {
240
- MockFoo mock_foo;
241
- EXPECT_CALL(mock_foo, DoThis());
242
- ... code that uses mock_foo ...
243
- }
244
- ```
245
-
246
- If a method of `mock_foo` other than `DoThis()` is called, it will be
247
- reported by Google Mock as a warning. However, if you rewrite your
248
- test to use `NiceMock<MockFoo>` instead, the warning will be gone,
249
- resulting in a cleaner test output:
250
-
251
- ```
252
- using ::testing::NiceMock;
253
-
254
- TEST(...) {
255
- NiceMock<MockFoo> mock_foo;
256
- EXPECT_CALL(mock_foo, DoThis());
257
- ... code that uses mock_foo ...
258
- }
259
- ```
260
-
261
- `NiceMock<MockFoo>` is a subclass of `MockFoo`, so it can be used
262
- wherever `MockFoo` is accepted.
263
-
264
- It also works if `MockFoo`'s constructor takes some arguments, as
265
- `NiceMock<MockFoo>` "inherits" `MockFoo`'s constructors:
266
-
267
- ```
268
- using ::testing::NiceMock;
269
-
270
- TEST(...) {
271
- NiceMock<MockFoo> mock_foo(5, "hi"); // Calls MockFoo(5, "hi").
272
- EXPECT_CALL(mock_foo, DoThis());
273
- ... code that uses mock_foo ...
274
- }
275
- ```
276
-
277
- The usage of `StrictMock` is similar, except that it makes all
278
- uninteresting calls failures:
279
-
280
- ```
281
- using ::testing::StrictMock;
282
-
283
- TEST(...) {
284
- StrictMock<MockFoo> mock_foo;
285
- EXPECT_CALL(mock_foo, DoThis());
286
- ... code that uses mock_foo ...
287
-
288
- // The test will fail if a method of mock_foo other than DoThis()
289
- // is called.
290
- }
291
- ```
292
-
293
- There are some caveats though (I don't like them just as much as the
294
- next guy, but sadly they are side effects of C++'s limitations):
295
-
296
- 1. `NiceMock<MockFoo>` and `StrictMock<MockFoo>` only work for mock methods defined using the `MOCK_METHOD*` family of macros **directly** in the `MockFoo` class. If a mock method is defined in a **base class** of `MockFoo`, the "nice" or "strict" modifier may not affect it, depending on the compiler. In particular, nesting `NiceMock` and `StrictMock` (e.g. `NiceMock<StrictMock<MockFoo> >`) is **not** supported.
297
- 1. The constructors of the base mock (`MockFoo`) cannot have arguments passed by non-const reference, which happens to be banned by the [Google C++ style guide](http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml).
298
- 1. During the constructor or destructor of `MockFoo`, the mock object is _not_ nice or strict. This may cause surprises if the constructor or destructor calls a mock method on `this` object. (This behavior, however, is consistent with C++'s general rule: if a constructor or destructor calls a virtual method of `this` object, that method is treated as non-virtual. In other words, to the base class's constructor or destructor, `this` object behaves like an instance of the base class, not the derived class. This rule is required for safety. Otherwise a base constructor may use members of a derived class before they are initialized, or a base destructor may use members of a derived class after they have been destroyed.)
299
-
300
- Finally, you should be **very cautious** about when to use naggy or strict mocks, as they tend to make tests more brittle and harder to maintain. When you refactor your code without changing its externally visible behavior, ideally you should't need to update any tests. If your code interacts with a naggy mock, however, you may start to get spammed with warnings as the result of your change. Worse, if your code interacts with a strict mock, your tests may start to fail and you'll be forced to fix them. Our general recommendation is to use nice mocks (not yet the default) most of the time, use naggy mocks (the current default) when developing or debugging tests, and use strict mocks only as the last resort.
301
-
302
- ## Simplifying the Interface without Breaking Existing Code ##
303
-
304
- Sometimes a method has a long list of arguments that is mostly
305
- uninteresting. For example,
306
-
307
- ```
308
- class LogSink {
309
- public:
310
- ...
311
- virtual void send(LogSeverity severity, const char* full_filename,
312
- const char* base_filename, int line,
313
- const struct tm* tm_time,
314
- const char* message, size_t message_len) = 0;
315
- };
316
- ```
317
-
318
- This method's argument list is lengthy and hard to work with (let's
319
- say that the `message` argument is not even 0-terminated). If we mock
320
- it as is, using the mock will be awkward. If, however, we try to
321
- simplify this interface, we'll need to fix all clients depending on
322
- it, which is often infeasible.
323
-
324
- The trick is to re-dispatch the method in the mock class:
325
-
326
- ```
327
- class ScopedMockLog : public LogSink {
328
- public:
329
- ...
330
- virtual void send(LogSeverity severity, const char* full_filename,
331
- const char* base_filename, int line, const tm* tm_time,
332
- const char* message, size_t message_len) {
333
- // We are only interested in the log severity, full file name, and
334
- // log message.
335
- Log(severity, full_filename, std::string(message, message_len));
336
- }
337
-
338
- // Implements the mock method:
339
- //
340
- // void Log(LogSeverity severity,
341
- // const string& file_path,
342
- // const string& message);
343
- MOCK_METHOD3(Log, void(LogSeverity severity, const string& file_path,
344
- const string& message));
345
- };
346
- ```
347
-
348
- By defining a new mock method with a trimmed argument list, we make
349
- the mock class much more user-friendly.
350
-
351
- ## Alternative to Mocking Concrete Classes ##
352
-
353
- Often you may find yourself using classes that don't implement
354
- interfaces. In order to test your code that uses such a class (let's
355
- call it `Concrete`), you may be tempted to make the methods of
356
- `Concrete` virtual and then mock it.
357
-
358
- Try not to do that.
359
-
360
- Making a non-virtual function virtual is a big decision. It creates an
361
- extension point where subclasses can tweak your class' behavior. This
362
- weakens your control on the class because now it's harder to maintain
363
- the class' invariants. You should make a function virtual only when
364
- there is a valid reason for a subclass to override it.
365
-
366
- Mocking concrete classes directly is problematic as it creates a tight
367
- coupling between the class and the tests - any small change in the
368
- class may invalidate your tests and make test maintenance a pain.
369
-
370
- To avoid such problems, many programmers have been practicing "coding
371
- to interfaces": instead of talking to the `Concrete` class, your code
372
- would define an interface and talk to it. Then you implement that
373
- interface as an adaptor on top of `Concrete`. In tests, you can easily
374
- mock that interface to observe how your code is doing.
375
-
376
- This technique incurs some overhead:
377
-
378
- * You pay the cost of virtual function calls (usually not a problem).
379
- * There is more abstraction for the programmers to learn.
380
-
381
- However, it can also bring significant benefits in addition to better
382
- testability:
383
-
384
- * `Concrete`'s API may not fit your problem domain very well, as you may not be the only client it tries to serve. By designing your own interface, you have a chance to tailor it to your need - you may add higher-level functionalities, rename stuff, etc instead of just trimming the class. This allows you to write your code (user of the interface) in a more natural way, which means it will be more readable, more maintainable, and you'll be more productive.
385
- * If `Concrete`'s implementation ever has to change, you don't have to rewrite everywhere it is used. Instead, you can absorb the change in your implementation of the interface, and your other code and tests will be insulated from this change.
386
-
387
- Some people worry that if everyone is practicing this technique, they
388
- will end up writing lots of redundant code. This concern is totally
389
- understandable. However, there are two reasons why it may not be the
390
- case:
391
-
392
- * Different projects may need to use `Concrete` in different ways, so the best interfaces for them will be different. Therefore, each of them will have its own domain-specific interface on top of `Concrete`, and they will not be the same code.
393
- * If enough projects want to use the same interface, they can always share it, just like they have been sharing `Concrete`. You can check in the interface and the adaptor somewhere near `Concrete` (perhaps in a `contrib` sub-directory) and let many projects use it.
394
-
395
- You need to weigh the pros and cons carefully for your particular
396
- problem, but I'd like to assure you that the Java community has been
397
- practicing this for a long time and it's a proven effective technique
398
- applicable in a wide variety of situations. :-)
399
-
400
- ## Delegating Calls to a Fake ##
401
-
402
- Some times you have a non-trivial fake implementation of an
403
- interface. For example:
404
-
405
- ```
406
- class Foo {
407
- public:
408
- virtual ~Foo() {}
409
- virtual char DoThis(int n) = 0;
410
- virtual void DoThat(const char* s, int* p) = 0;
411
- };
412
-
413
- class FakeFoo : public Foo {
414
- public:
415
- virtual char DoThis(int n) {
416
- return (n > 0) ? '+' :
417
- (n < 0) ? '-' : '0';
418
- }
419
-
420
- virtual void DoThat(const char* s, int* p) {
421
- *p = strlen(s);
422
- }
423
- };
424
- ```
425
-
426
- Now you want to mock this interface such that you can set expectations
427
- on it. However, you also want to use `FakeFoo` for the default
428
- behavior, as duplicating it in the mock object is, well, a lot of
429
- work.
430
-
431
- When you define the mock class using Google Mock, you can have it
432
- delegate its default action to a fake class you already have, using
433
- this pattern:
434
-
435
- ```
436
- using ::testing::_;
437
- using ::testing::Invoke;
438
-
439
- class MockFoo : public Foo {
440
- public:
441
- // Normal mock method definitions using Google Mock.
442
- MOCK_METHOD1(DoThis, char(int n));
443
- MOCK_METHOD2(DoThat, void(const char* s, int* p));
444
-
445
- // Delegates the default actions of the methods to a FakeFoo object.
446
- // This must be called *before* the custom ON_CALL() statements.
447
- void DelegateToFake() {
448
- ON_CALL(*this, DoThis(_))
449
- .WillByDefault(Invoke(&fake_, &FakeFoo::DoThis));
450
- ON_CALL(*this, DoThat(_, _))
451
- .WillByDefault(Invoke(&fake_, &FakeFoo::DoThat));
452
- }
453
- private:
454
- FakeFoo fake_; // Keeps an instance of the fake in the mock.
455
- };
456
- ```
457
-
458
- With that, you can use `MockFoo` in your tests as usual. Just remember
459
- that if you don't explicitly set an action in an `ON_CALL()` or
460
- `EXPECT_CALL()`, the fake will be called upon to do it:
461
-
462
- ```
463
- using ::testing::_;
464
-
465
- TEST(AbcTest, Xyz) {
466
- MockFoo foo;
467
- foo.DelegateToFake(); // Enables the fake for delegation.
468
-
469
- // Put your ON_CALL(foo, ...)s here, if any.
470
-
471
- // No action specified, meaning to use the default action.
472
- EXPECT_CALL(foo, DoThis(5));
473
- EXPECT_CALL(foo, DoThat(_, _));
474
-
475
- int n = 0;
476
- EXPECT_EQ('+', foo.DoThis(5)); // FakeFoo::DoThis() is invoked.
477
- foo.DoThat("Hi", &n); // FakeFoo::DoThat() is invoked.
478
- EXPECT_EQ(2, n);
479
- }
480
- ```
481
-
482
- **Some tips:**
483
-
484
- * If you want, you can still override the default action by providing your own `ON_CALL()` or using `.WillOnce()` / `.WillRepeatedly()` in `EXPECT_CALL()`.
485
- * In `DelegateToFake()`, you only need to delegate the methods whose fake implementation you intend to use.
486
- * The general technique discussed here works for overloaded methods, but you'll need to tell the compiler which version you mean. To disambiguate a mock function (the one you specify inside the parentheses of `ON_CALL()`), see the "Selecting Between Overloaded Functions" section on this page; to disambiguate a fake function (the one you place inside `Invoke()`), use a `static_cast` to specify the function's type. For instance, if class `Foo` has methods `char DoThis(int n)` and `bool DoThis(double x) const`, and you want to invoke the latter, you need to write `Invoke(&fake_, static_cast<bool (FakeFoo::*)(double) const>(&FakeFoo::DoThis))` instead of `Invoke(&fake_, &FakeFoo::DoThis)` (The strange-looking thing inside the angled brackets of `static_cast` is the type of a function pointer to the second `DoThis()` method.).
487
- * Having to mix a mock and a fake is often a sign of something gone wrong. Perhaps you haven't got used to the interaction-based way of testing yet. Or perhaps your interface is taking on too many roles and should be split up. Therefore, **don't abuse this**. We would only recommend to do it as an intermediate step when you are refactoring your code.
488
-
489
- Regarding the tip on mixing a mock and a fake, here's an example on
490
- why it may be a bad sign: Suppose you have a class `System` for
491
- low-level system operations. In particular, it does file and I/O
492
- operations. And suppose you want to test how your code uses `System`
493
- to do I/O, and you just want the file operations to work normally. If
494
- you mock out the entire `System` class, you'll have to provide a fake
495
- implementation for the file operation part, which suggests that
496
- `System` is taking on too many roles.
497
-
498
- Instead, you can define a `FileOps` interface and an `IOOps` interface
499
- and split `System`'s functionalities into the two. Then you can mock
500
- `IOOps` without mocking `FileOps`.
501
-
502
- ## Delegating Calls to a Real Object ##
503
-
504
- When using testing doubles (mocks, fakes, stubs, and etc), sometimes
505
- their behaviors will differ from those of the real objects. This
506
- difference could be either intentional (as in simulating an error such
507
- that you can test the error handling code) or unintentional. If your
508
- mocks have different behaviors than the real objects by mistake, you
509
- could end up with code that passes the tests but fails in production.
510
-
511
- You can use the _delegating-to-real_ technique to ensure that your
512
- mock has the same behavior as the real object while retaining the
513
- ability to validate calls. This technique is very similar to the
514
- delegating-to-fake technique, the difference being that we use a real
515
- object instead of a fake. Here's an example:
516
-
517
- ```
518
- using ::testing::_;
519
- using ::testing::AtLeast;
520
- using ::testing::Invoke;
521
-
522
- class MockFoo : public Foo {
523
- public:
524
- MockFoo() {
525
- // By default, all calls are delegated to the real object.
526
- ON_CALL(*this, DoThis())
527
- .WillByDefault(Invoke(&real_, &Foo::DoThis));
528
- ON_CALL(*this, DoThat(_))
529
- .WillByDefault(Invoke(&real_, &Foo::DoThat));
530
- ...
531
- }
532
- MOCK_METHOD0(DoThis, ...);
533
- MOCK_METHOD1(DoThat, ...);
534
- ...
535
- private:
536
- Foo real_;
537
- };
538
- ...
539
-
540
- MockFoo mock;
541
-
542
- EXPECT_CALL(mock, DoThis())
543
- .Times(3);
544
- EXPECT_CALL(mock, DoThat("Hi"))
545
- .Times(AtLeast(1));
546
- ... use mock in test ...
547
- ```
548
-
549
- With this, Google Mock will verify that your code made the right calls
550
- (with the right arguments, in the right order, called the right number
551
- of times, etc), and a real object will answer the calls (so the
552
- behavior will be the same as in production). This gives you the best
553
- of both worlds.
554
-
555
- ## Delegating Calls to a Parent Class ##
556
-
557
- Ideally, you should code to interfaces, whose methods are all pure
558
- virtual. In reality, sometimes you do need to mock a virtual method
559
- that is not pure (i.e, it already has an implementation). For example:
560
-
561
- ```
562
- class Foo {
563
- public:
564
- virtual ~Foo();
565
-
566
- virtual void Pure(int n) = 0;
567
- virtual int Concrete(const char* str) { ... }
568
- };
569
-
570
- class MockFoo : public Foo {
571
- public:
572
- // Mocking a pure method.
573
- MOCK_METHOD1(Pure, void(int n));
574
- // Mocking a concrete method. Foo::Concrete() is shadowed.
575
- MOCK_METHOD1(Concrete, int(const char* str));
576
- };
577
- ```
578
-
579
- Sometimes you may want to call `Foo::Concrete()` instead of
580
- `MockFoo::Concrete()`. Perhaps you want to do it as part of a stub
581
- action, or perhaps your test doesn't need to mock `Concrete()` at all
582
- (but it would be oh-so painful to have to define a new mock class
583
- whenever you don't need to mock one of its methods).
584
-
585
- The trick is to leave a back door in your mock class for accessing the
586
- real methods in the base class:
587
-
588
- ```
589
- class MockFoo : public Foo {
590
- public:
591
- // Mocking a pure method.
592
- MOCK_METHOD1(Pure, void(int n));
593
- // Mocking a concrete method. Foo::Concrete() is shadowed.
594
- MOCK_METHOD1(Concrete, int(const char* str));
595
-
596
- // Use this to call Concrete() defined in Foo.
597
- int FooConcrete(const char* str) { return Foo::Concrete(str); }
598
- };
599
- ```
600
-
601
- Now, you can call `Foo::Concrete()` inside an action by:
602
-
603
- ```
604
- using ::testing::_;
605
- using ::testing::Invoke;
606
- ...
607
- EXPECT_CALL(foo, Concrete(_))
608
- .WillOnce(Invoke(&foo, &MockFoo::FooConcrete));
609
- ```
610
-
611
- or tell the mock object that you don't want to mock `Concrete()`:
612
-
613
- ```
614
- using ::testing::Invoke;
615
- ...
616
- ON_CALL(foo, Concrete(_))
617
- .WillByDefault(Invoke(&foo, &MockFoo::FooConcrete));
618
- ```
619
-
620
- (Why don't we just write `Invoke(&foo, &Foo::Concrete)`? If you do
621
- that, `MockFoo::Concrete()` will be called (and cause an infinite
622
- recursion) since `Foo::Concrete()` is virtual. That's just how C++
623
- works.)
624
-
625
- # Using Matchers #
626
-
627
- ## Matching Argument Values Exactly ##
628
-
629
- You can specify exactly which arguments a mock method is expecting:
630
-
631
- ```
632
- using ::testing::Return;
633
- ...
634
- EXPECT_CALL(foo, DoThis(5))
635
- .WillOnce(Return('a'));
636
- EXPECT_CALL(foo, DoThat("Hello", bar));
637
- ```
638
-
639
- ## Using Simple Matchers ##
640
-
641
- You can use matchers to match arguments that have a certain property:
642
-
643
- ```
644
- using ::testing::Ge;
645
- using ::testing::NotNull;
646
- using ::testing::Return;
647
- ...
648
- EXPECT_CALL(foo, DoThis(Ge(5))) // The argument must be >= 5.
649
- .WillOnce(Return('a'));
650
- EXPECT_CALL(foo, DoThat("Hello", NotNull()));
651
- // The second argument must not be NULL.
652
- ```
653
-
654
- A frequently used matcher is `_`, which matches anything:
655
-
656
- ```
657
- using ::testing::_;
658
- using ::testing::NotNull;
659
- ...
660
- EXPECT_CALL(foo, DoThat(_, NotNull()));
661
- ```
662
-
663
- ## Combining Matchers ##
664
-
665
- You can build complex matchers from existing ones using `AllOf()`,
666
- `AnyOf()`, and `Not()`:
667
-
668
- ```
669
- using ::testing::AllOf;
670
- using ::testing::Gt;
671
- using ::testing::HasSubstr;
672
- using ::testing::Ne;
673
- using ::testing::Not;
674
- ...
675
- // The argument must be > 5 and != 10.
676
- EXPECT_CALL(foo, DoThis(AllOf(Gt(5),
677
- Ne(10))));
678
-
679
- // The first argument must not contain sub-string "blah".
680
- EXPECT_CALL(foo, DoThat(Not(HasSubstr("blah")),
681
- NULL));
682
- ```
683
-
684
- ## Casting Matchers ##
685
-
686
- Google Mock matchers are statically typed, meaning that the compiler
687
- can catch your mistake if you use a matcher of the wrong type (for
688
- example, if you use `Eq(5)` to match a `string` argument). Good for
689
- you!
690
-
691
- Sometimes, however, you know what you're doing and want the compiler
692
- to give you some slack. One example is that you have a matcher for
693
- `long` and the argument you want to match is `int`. While the two
694
- types aren't exactly the same, there is nothing really wrong with
695
- using a `Matcher<long>` to match an `int` - after all, we can first
696
- convert the `int` argument to a `long` before giving it to the
697
- matcher.
698
-
699
- To support this need, Google Mock gives you the
700
- `SafeMatcherCast<T>(m)` function. It casts a matcher `m` to type
701
- `Matcher<T>`. To ensure safety, Google Mock checks that (let `U` be the
702
- type `m` accepts):
703
-
704
- 1. Type `T` can be implicitly cast to type `U`;
705
- 1. When both `T` and `U` are built-in arithmetic types (`bool`, integers, and floating-point numbers), the conversion from `T` to `U` is not lossy (in other words, any value representable by `T` can also be represented by `U`); and
706
- 1. When `U` is a reference, `T` must also be a reference (as the underlying matcher may be interested in the address of the `U` value).
707
-
708
- The code won't compile if any of these conditions isn't met.
709
-
710
- Here's one example:
711
-
712
- ```
713
- using ::testing::SafeMatcherCast;
714
-
715
- // A base class and a child class.
716
- class Base { ... };
717
- class Derived : public Base { ... };
718
-
719
- class MockFoo : public Foo {
720
- public:
721
- MOCK_METHOD1(DoThis, void(Derived* derived));
722
- };
723
- ...
724
-
725
- MockFoo foo;
726
- // m is a Matcher<Base*> we got from somewhere.
727
- EXPECT_CALL(foo, DoThis(SafeMatcherCast<Derived*>(m)));
728
- ```
729
-
730
- If you find `SafeMatcherCast<T>(m)` too limiting, you can use a similar
731
- function `MatcherCast<T>(m)`. The difference is that `MatcherCast` works
732
- as long as you can `static_cast` type `T` to type `U`.
733
-
734
- `MatcherCast` essentially lets you bypass C++'s type system
735
- (`static_cast` isn't always safe as it could throw away information,
736
- for example), so be careful not to misuse/abuse it.
737
-
738
- ## Selecting Between Overloaded Functions ##
739
-
740
- If you expect an overloaded function to be called, the compiler may
741
- need some help on which overloaded version it is.
742
-
743
- To disambiguate functions overloaded on the const-ness of this object,
744
- use the `Const()` argument wrapper.
745
-
746
- ```
747
- using ::testing::ReturnRef;
748
-
749
- class MockFoo : public Foo {
750
- ...
751
- MOCK_METHOD0(GetBar, Bar&());
752
- MOCK_CONST_METHOD0(GetBar, const Bar&());
753
- };
754
- ...
755
-
756
- MockFoo foo;
757
- Bar bar1, bar2;
758
- EXPECT_CALL(foo, GetBar()) // The non-const GetBar().
759
- .WillOnce(ReturnRef(bar1));
760
- EXPECT_CALL(Const(foo), GetBar()) // The const GetBar().
761
- .WillOnce(ReturnRef(bar2));
762
- ```
763
-
764
- (`Const()` is defined by Google Mock and returns a `const` reference
765
- to its argument.)
766
-
767
- To disambiguate overloaded functions with the same number of arguments
768
- but different argument types, you may need to specify the exact type
769
- of a matcher, either by wrapping your matcher in `Matcher<type>()`, or
770
- using a matcher whose type is fixed (`TypedEq<type>`, `An<type>()`,
771
- etc):
772
-
773
- ```
774
- using ::testing::An;
775
- using ::testing::Lt;
776
- using ::testing::Matcher;
777
- using ::testing::TypedEq;
778
-
779
- class MockPrinter : public Printer {
780
- public:
781
- MOCK_METHOD1(Print, void(int n));
782
- MOCK_METHOD1(Print, void(char c));
783
- };
784
-
785
- TEST(PrinterTest, Print) {
786
- MockPrinter printer;
787
-
788
- EXPECT_CALL(printer, Print(An<int>())); // void Print(int);
789
- EXPECT_CALL(printer, Print(Matcher<int>(Lt(5)))); // void Print(int);
790
- EXPECT_CALL(printer, Print(TypedEq<char>('a'))); // void Print(char);
791
-
792
- printer.Print(3);
793
- printer.Print(6);
794
- printer.Print('a');
795
- }
796
- ```
797
-
798
- ## Performing Different Actions Based on the Arguments ##
799
-
800
- When a mock method is called, the _last_ matching expectation that's
801
- still active will be selected (think "newer overrides older"). So, you
802
- can make a method do different things depending on its argument values
803
- like this:
804
-
805
- ```
806
- using ::testing::_;
807
- using ::testing::Lt;
808
- using ::testing::Return;
809
- ...
810
- // The default case.
811
- EXPECT_CALL(foo, DoThis(_))
812
- .WillRepeatedly(Return('b'));
813
-
814
- // The more specific case.
815
- EXPECT_CALL(foo, DoThis(Lt(5)))
816
- .WillRepeatedly(Return('a'));
817
- ```
818
-
819
- Now, if `foo.DoThis()` is called with a value less than 5, `'a'` will
820
- be returned; otherwise `'b'` will be returned.
821
-
822
- ## Matching Multiple Arguments as a Whole ##
823
-
824
- Sometimes it's not enough to match the arguments individually. For
825
- example, we may want to say that the first argument must be less than
826
- the second argument. The `With()` clause allows us to match
827
- all arguments of a mock function as a whole. For example,
828
-
829
- ```
830
- using ::testing::_;
831
- using ::testing::Lt;
832
- using ::testing::Ne;
833
- ...
834
- EXPECT_CALL(foo, InRange(Ne(0), _))
835
- .With(Lt());
836
- ```
837
-
838
- says that the first argument of `InRange()` must not be 0, and must be
839
- less than the second argument.
840
-
841
- The expression inside `With()` must be a matcher of type
842
- `Matcher< ::testing::tuple<A1, ..., An> >`, where `A1`, ..., `An` are the
843
- types of the function arguments.
844
-
845
- You can also write `AllArgs(m)` instead of `m` inside `.With()`. The
846
- two forms are equivalent, but `.With(AllArgs(Lt()))` is more readable
847
- than `.With(Lt())`.
848
-
849
- You can use `Args<k1, ..., kn>(m)` to match the `n` selected arguments
850
- (as a tuple) against `m`. For example,
851
-
852
- ```
853
- using ::testing::_;
854
- using ::testing::AllOf;
855
- using ::testing::Args;
856
- using ::testing::Lt;
857
- ...
858
- EXPECT_CALL(foo, Blah(_, _, _))
859
- .With(AllOf(Args<0, 1>(Lt()), Args<1, 2>(Lt())));
860
- ```
861
-
862
- says that `Blah()` will be called with arguments `x`, `y`, and `z` where
863
- `x < y < z`.
864
-
865
- As a convenience and example, Google Mock provides some matchers for
866
- 2-tuples, including the `Lt()` matcher above. See the [CheatSheet](CheatSheet.md) for
867
- the complete list.
868
-
869
- Note that if you want to pass the arguments to a predicate of your own
870
- (e.g. `.With(Args<0, 1>(Truly(&MyPredicate)))`), that predicate MUST be
871
- written to take a `::testing::tuple` as its argument; Google Mock will pass the `n` selected arguments as _one_ single tuple to the predicate.
872
-
873
- ## Using Matchers as Predicates ##
874
-
875
- Have you noticed that a matcher is just a fancy predicate that also
876
- knows how to describe itself? Many existing algorithms take predicates
877
- as arguments (e.g. those defined in STL's `<algorithm>` header), and
878
- it would be a shame if Google Mock matchers are not allowed to
879
- participate.
880
-
881
- Luckily, you can use a matcher where a unary predicate functor is
882
- expected by wrapping it inside the `Matches()` function. For example,
883
-
884
- ```
885
- #include <algorithm>
886
- #include <vector>
887
-
888
- std::vector<int> v;
889
- ...
890
- // How many elements in v are >= 10?
891
- const int count = count_if(v.begin(), v.end(), Matches(Ge(10)));
892
- ```
893
-
894
- Since you can build complex matchers from simpler ones easily using
895
- Google Mock, this gives you a way to conveniently construct composite
896
- predicates (doing the same using STL's `<functional>` header is just
897
- painful). For example, here's a predicate that's satisfied by any
898
- number that is >= 0, <= 100, and != 50:
899
-
900
- ```
901
- Matches(AllOf(Ge(0), Le(100), Ne(50)))
902
- ```
903
-
904
- ## Using Matchers in Google Test Assertions ##
905
-
906
- Since matchers are basically predicates that also know how to describe
907
- themselves, there is a way to take advantage of them in
908
- [Google Test](../../googletest/) assertions. It's
909
- called `ASSERT_THAT` and `EXPECT_THAT`:
910
-
911
- ```
912
- ASSERT_THAT(value, matcher); // Asserts that value matches matcher.
913
- EXPECT_THAT(value, matcher); // The non-fatal version.
914
- ```
915
-
916
- For example, in a Google Test test you can write:
917
-
918
- ```
919
- #include "gmock/gmock.h"
920
-
921
- using ::testing::AllOf;
922
- using ::testing::Ge;
923
- using ::testing::Le;
924
- using ::testing::MatchesRegex;
925
- using ::testing::StartsWith;
926
- ...
927
-
928
- EXPECT_THAT(Foo(), StartsWith("Hello"));
929
- EXPECT_THAT(Bar(), MatchesRegex("Line \\d+"));
930
- ASSERT_THAT(Baz(), AllOf(Ge(5), Le(10)));
931
- ```
932
-
933
- which (as you can probably guess) executes `Foo()`, `Bar()`, and
934
- `Baz()`, and verifies that:
935
-
936
- * `Foo()` returns a string that starts with `"Hello"`.
937
- * `Bar()` returns a string that matches regular expression `"Line \\d+"`.
938
- * `Baz()` returns a number in the range [5, 10].
939
-
940
- The nice thing about these macros is that _they read like
941
- English_. They generate informative messages too. For example, if the
942
- first `EXPECT_THAT()` above fails, the message will be something like:
943
-
944
- ```
945
- Value of: Foo()
946
- Actual: "Hi, world!"
947
- Expected: starts with "Hello"
948
- ```
949
-
950
- **Credit:** The idea of `(ASSERT|EXPECT)_THAT` was stolen from the
951
- [Hamcrest](https://github.com/hamcrest/) project, which adds
952
- `assertThat()` to JUnit.
953
-
954
- ## Using Predicates as Matchers ##
955
-
956
- Google Mock provides a built-in set of matchers. In case you find them
957
- lacking, you can use an arbitray unary predicate function or functor
958
- as a matcher - as long as the predicate accepts a value of the type
959
- you want. You do this by wrapping the predicate inside the `Truly()`
960
- function, for example:
961
-
962
- ```
963
- using ::testing::Truly;
964
-
965
- int IsEven(int n) { return (n % 2) == 0 ? 1 : 0; }
966
- ...
967
-
968
- // Bar() must be called with an even number.
969
- EXPECT_CALL(foo, Bar(Truly(IsEven)));
970
- ```
971
-
972
- Note that the predicate function / functor doesn't have to return
973
- `bool`. It works as long as the return value can be used as the
974
- condition in statement `if (condition) ...`.
975
-
976
- ## Matching Arguments that Are Not Copyable ##
977
-
978
- When you do an `EXPECT_CALL(mock_obj, Foo(bar))`, Google Mock saves
979
- away a copy of `bar`. When `Foo()` is called later, Google Mock
980
- compares the argument to `Foo()` with the saved copy of `bar`. This
981
- way, you don't need to worry about `bar` being modified or destroyed
982
- after the `EXPECT_CALL()` is executed. The same is true when you use
983
- matchers like `Eq(bar)`, `Le(bar)`, and so on.
984
-
985
- But what if `bar` cannot be copied (i.e. has no copy constructor)? You
986
- could define your own matcher function and use it with `Truly()`, as
987
- the previous couple of recipes have shown. Or, you may be able to get
988
- away from it if you can guarantee that `bar` won't be changed after
989
- the `EXPECT_CALL()` is executed. Just tell Google Mock that it should
990
- save a reference to `bar`, instead of a copy of it. Here's how:
991
-
992
- ```
993
- using ::testing::Eq;
994
- using ::testing::ByRef;
995
- using ::testing::Lt;
996
- ...
997
- // Expects that Foo()'s argument == bar.
998
- EXPECT_CALL(mock_obj, Foo(Eq(ByRef(bar))));
999
-
1000
- // Expects that Foo()'s argument < bar.
1001
- EXPECT_CALL(mock_obj, Foo(Lt(ByRef(bar))));
1002
- ```
1003
-
1004
- Remember: if you do this, don't change `bar` after the
1005
- `EXPECT_CALL()`, or the result is undefined.
1006
-
1007
- ## Validating a Member of an Object ##
1008
-
1009
- Often a mock function takes a reference to object as an argument. When
1010
- matching the argument, you may not want to compare the entire object
1011
- against a fixed object, as that may be over-specification. Instead,
1012
- you may need to validate a certain member variable or the result of a
1013
- certain getter method of the object. You can do this with `Field()`
1014
- and `Property()`. More specifically,
1015
-
1016
- ```
1017
- Field(&Foo::bar, m)
1018
- ```
1019
-
1020
- is a matcher that matches a `Foo` object whose `bar` member variable
1021
- satisfies matcher `m`.
1022
-
1023
- ```
1024
- Property(&Foo::baz, m)
1025
- ```
1026
-
1027
- is a matcher that matches a `Foo` object whose `baz()` method returns
1028
- a value that satisfies matcher `m`.
1029
-
1030
- For example:
1031
-
1032
- > | `Field(&Foo::number, Ge(3))` | Matches `x` where `x.number >= 3`. |
1033
- |:-----------------------------|:-----------------------------------|
1034
- > | `Property(&Foo::name, StartsWith("John "))` | Matches `x` where `x.name()` starts with `"John "`. |
1035
-
1036
- Note that in `Property(&Foo::baz, ...)`, method `baz()` must take no
1037
- argument and be declared as `const`.
1038
-
1039
- BTW, `Field()` and `Property()` can also match plain pointers to
1040
- objects. For instance,
1041
-
1042
- ```
1043
- Field(&Foo::number, Ge(3))
1044
- ```
1045
-
1046
- matches a plain pointer `p` where `p->number >= 3`. If `p` is `NULL`,
1047
- the match will always fail regardless of the inner matcher.
1048
-
1049
- What if you want to validate more than one members at the same time?
1050
- Remember that there is `AllOf()`.
1051
-
1052
- ## Validating the Value Pointed to by a Pointer Argument ##
1053
-
1054
- C++ functions often take pointers as arguments. You can use matchers
1055
- like `IsNull()`, `NotNull()`, and other comparison matchers to match a
1056
- pointer, but what if you want to make sure the value _pointed to_ by
1057
- the pointer, instead of the pointer itself, has a certain property?
1058
- Well, you can use the `Pointee(m)` matcher.
1059
-
1060
- `Pointee(m)` matches a pointer iff `m` matches the value the pointer
1061
- points to. For example:
1062
-
1063
- ```
1064
- using ::testing::Ge;
1065
- using ::testing::Pointee;
1066
- ...
1067
- EXPECT_CALL(foo, Bar(Pointee(Ge(3))));
1068
- ```
1069
-
1070
- expects `foo.Bar()` to be called with a pointer that points to a value
1071
- greater than or equal to 3.
1072
-
1073
- One nice thing about `Pointee()` is that it treats a `NULL` pointer as
1074
- a match failure, so you can write `Pointee(m)` instead of
1075
-
1076
- ```
1077
- AllOf(NotNull(), Pointee(m))
1078
- ```
1079
-
1080
- without worrying that a `NULL` pointer will crash your test.
1081
-
1082
- Also, did we tell you that `Pointee()` works with both raw pointers
1083
- **and** smart pointers (`linked_ptr`, `shared_ptr`, `scoped_ptr`, and
1084
- etc)?
1085
-
1086
- What if you have a pointer to pointer? You guessed it - you can use
1087
- nested `Pointee()` to probe deeper inside the value. For example,
1088
- `Pointee(Pointee(Lt(3)))` matches a pointer that points to a pointer
1089
- that points to a number less than 3 (what a mouthful...).
1090
-
1091
- ## Testing a Certain Property of an Object ##
1092
-
1093
- Sometimes you want to specify that an object argument has a certain
1094
- property, but there is no existing matcher that does this. If you want
1095
- good error messages, you should define a matcher. If you want to do it
1096
- quick and dirty, you could get away with writing an ordinary function.
1097
-
1098
- Let's say you have a mock function that takes an object of type `Foo`,
1099
- which has an `int bar()` method and an `int baz()` method, and you
1100
- want to constrain that the argument's `bar()` value plus its `baz()`
1101
- value is a given number. Here's how you can define a matcher to do it:
1102
-
1103
- ```
1104
- using ::testing::MatcherInterface;
1105
- using ::testing::MatchResultListener;
1106
-
1107
- class BarPlusBazEqMatcher : public MatcherInterface<const Foo&> {
1108
- public:
1109
- explicit BarPlusBazEqMatcher(int expected_sum)
1110
- : expected_sum_(expected_sum) {}
1111
-
1112
- virtual bool MatchAndExplain(const Foo& foo,
1113
- MatchResultListener* listener) const {
1114
- return (foo.bar() + foo.baz()) == expected_sum_;
1115
- }
1116
-
1117
- virtual void DescribeTo(::std::ostream* os) const {
1118
- *os << "bar() + baz() equals " << expected_sum_;
1119
- }
1120
-
1121
- virtual void DescribeNegationTo(::std::ostream* os) const {
1122
- *os << "bar() + baz() does not equal " << expected_sum_;
1123
- }
1124
- private:
1125
- const int expected_sum_;
1126
- };
1127
-
1128
- inline Matcher<const Foo&> BarPlusBazEq(int expected_sum) {
1129
- return MakeMatcher(new BarPlusBazEqMatcher(expected_sum));
1130
- }
1131
-
1132
- ...
1133
-
1134
- EXPECT_CALL(..., DoThis(BarPlusBazEq(5)))...;
1135
- ```
1136
-
1137
- ## Matching Containers ##
1138
-
1139
- Sometimes an STL container (e.g. list, vector, map, ...) is passed to
1140
- a mock function and you may want to validate it. Since most STL
1141
- containers support the `==` operator, you can write
1142
- `Eq(expected_container)` or simply `expected_container` to match a
1143
- container exactly.
1144
-
1145
- Sometimes, though, you may want to be more flexible (for example, the
1146
- first element must be an exact match, but the second element can be
1147
- any positive number, and so on). Also, containers used in tests often
1148
- have a small number of elements, and having to define the expected
1149
- container out-of-line is a bit of a hassle.
1150
-
1151
- You can use the `ElementsAre()` or `UnorderedElementsAre()` matcher in
1152
- such cases:
1153
-
1154
- ```
1155
- using ::testing::_;
1156
- using ::testing::ElementsAre;
1157
- using ::testing::Gt;
1158
- ...
1159
-
1160
- MOCK_METHOD1(Foo, void(const vector<int>& numbers));
1161
- ...
1162
-
1163
- EXPECT_CALL(mock, Foo(ElementsAre(1, Gt(0), _, 5)));
1164
- ```
1165
-
1166
- The above matcher says that the container must have 4 elements, which
1167
- must be 1, greater than 0, anything, and 5 respectively.
1168
-
1169
- If you instead write:
1170
-
1171
- ```
1172
- using ::testing::_;
1173
- using ::testing::Gt;
1174
- using ::testing::UnorderedElementsAre;
1175
- ...
1176
-
1177
- MOCK_METHOD1(Foo, void(const vector<int>& numbers));
1178
- ...
1179
-
1180
- EXPECT_CALL(mock, Foo(UnorderedElementsAre(1, Gt(0), _, 5)));
1181
- ```
1182
-
1183
- It means that the container must have 4 elements, which under some
1184
- permutation must be 1, greater than 0, anything, and 5 respectively.
1185
-
1186
- `ElementsAre()` and `UnorderedElementsAre()` are overloaded to take 0
1187
- to 10 arguments. If more are needed, you can place them in a C-style
1188
- array and use `ElementsAreArray()` or `UnorderedElementsAreArray()`
1189
- instead:
1190
-
1191
- ```
1192
- using ::testing::ElementsAreArray;
1193
- ...
1194
-
1195
- // ElementsAreArray accepts an array of element values.
1196
- const int expected_vector1[] = { 1, 5, 2, 4, ... };
1197
- EXPECT_CALL(mock, Foo(ElementsAreArray(expected_vector1)));
1198
-
1199
- // Or, an array of element matchers.
1200
- Matcher<int> expected_vector2 = { 1, Gt(2), _, 3, ... };
1201
- EXPECT_CALL(mock, Foo(ElementsAreArray(expected_vector2)));
1202
- ```
1203
-
1204
- In case the array needs to be dynamically created (and therefore the
1205
- array size cannot be inferred by the compiler), you can give
1206
- `ElementsAreArray()` an additional argument to specify the array size:
1207
-
1208
- ```
1209
- using ::testing::ElementsAreArray;
1210
- ...
1211
- int* const expected_vector3 = new int[count];
1212
- ... fill expected_vector3 with values ...
1213
- EXPECT_CALL(mock, Foo(ElementsAreArray(expected_vector3, count)));
1214
- ```
1215
-
1216
- **Tips:**
1217
-
1218
- * `ElementsAre*()` can be used to match _any_ container that implements the STL iterator pattern (i.e. it has a `const_iterator` type and supports `begin()/end()`), not just the ones defined in STL. It will even work with container types yet to be written - as long as they follows the above pattern.
1219
- * You can use nested `ElementsAre*()` to match nested (multi-dimensional) containers.
1220
- * If the container is passed by pointer instead of by reference, just write `Pointee(ElementsAre*(...))`.
1221
- * The order of elements _matters_ for `ElementsAre*()`. Therefore don't use it with containers whose element order is undefined (e.g. `hash_map`).
1222
-
1223
- ## Sharing Matchers ##
1224
-
1225
- Under the hood, a Google Mock matcher object consists of a pointer to
1226
- a ref-counted implementation object. Copying matchers is allowed and
1227
- very efficient, as only the pointer is copied. When the last matcher
1228
- that references the implementation object dies, the implementation
1229
- object will be deleted.
1230
-
1231
- Therefore, if you have some complex matcher that you want to use again
1232
- and again, there is no need to build it everytime. Just assign it to a
1233
- matcher variable and use that variable repeatedly! For example,
1234
-
1235
- ```
1236
- Matcher<int> in_range = AllOf(Gt(5), Le(10));
1237
- ... use in_range as a matcher in multiple EXPECT_CALLs ...
1238
- ```
1239
-
1240
- # Setting Expectations #
1241
-
1242
- ## Knowing When to Expect ##
1243
-
1244
- `ON_CALL` is likely the single most under-utilized construct in Google Mock.
1245
-
1246
- There are basically two constructs for defining the behavior of a mock object: `ON_CALL` and `EXPECT_CALL`. The difference? `ON_CALL` defines what happens when a mock method is called, but _doesn't imply any expectation on the method being called._ `EXPECT_CALL` not only defines the behavior, but also sets an expectation that _the method will be called with the given arguments, for the given number of times_ (and _in the given order_ when you specify the order too).
1247
-
1248
- Since `EXPECT_CALL` does more, isn't it better than `ON_CALL`? Not really. Every `EXPECT_CALL` adds a constraint on the behavior of the code under test. Having more constraints than necessary is _baaad_ - even worse than not having enough constraints.
1249
-
1250
- This may be counter-intuitive. How could tests that verify more be worse than tests that verify less? Isn't verification the whole point of tests?
1251
-
1252
- The answer, lies in _what_ a test should verify. **A good test verifies the contract of the code.** If a test over-specifies, it doesn't leave enough freedom to the implementation. As a result, changing the implementation without breaking the contract (e.g. refactoring and optimization), which should be perfectly fine to do, can break such tests. Then you have to spend time fixing them, only to see them broken again the next time the implementation is changed.
1253
-
1254
- Keep in mind that one doesn't have to verify more than one property in one test. In fact, **it's a good style to verify only one thing in one test.** If you do that, a bug will likely break only one or two tests instead of dozens (which case would you rather debug?). If you are also in the habit of giving tests descriptive names that tell what they verify, you can often easily guess what's wrong just from the test log itself.
1255
-
1256
- So use `ON_CALL` by default, and only use `EXPECT_CALL` when you actually intend to verify that the call is made. For example, you may have a bunch of `ON_CALL`s in your test fixture to set the common mock behavior shared by all tests in the same group, and write (scarcely) different `EXPECT_CALL`s in different `TEST_F`s to verify different aspects of the code's behavior. Compared with the style where each `TEST` has many `EXPECT_CALL`s, this leads to tests that are more resilient to implementational changes (and thus less likely to require maintenance) and makes the intent of the tests more obvious (so they are easier to maintain when you do need to maintain them).
1257
-
1258
- If you are bothered by the "Uninteresting mock function call" message printed when a mock method without an `EXPECT_CALL` is called, you may use a `NiceMock` instead to suppress all such messages for the mock object, or suppress the message for specific methods by adding `EXPECT_CALL(...).Times(AnyNumber())`. DO NOT suppress it by blindly adding an `EXPECT_CALL(...)`, or you'll have a test that's a pain to maintain.
1259
-
1260
- ## Ignoring Uninteresting Calls ##
1261
-
1262
- If you are not interested in how a mock method is called, just don't
1263
- say anything about it. In this case, if the method is ever called,
1264
- Google Mock will perform its default action to allow the test program
1265
- to continue. If you are not happy with the default action taken by
1266
- Google Mock, you can override it using `DefaultValue<T>::Set()`
1267
- (described later in this document) or `ON_CALL()`.
1268
-
1269
- Please note that once you expressed interest in a particular mock
1270
- method (via `EXPECT_CALL()`), all invocations to it must match some
1271
- expectation. If this function is called but the arguments don't match
1272
- any `EXPECT_CALL()` statement, it will be an error.
1273
-
1274
- ## Disallowing Unexpected Calls ##
1275
-
1276
- If a mock method shouldn't be called at all, explicitly say so:
1277
-
1278
- ```
1279
- using ::testing::_;
1280
- ...
1281
- EXPECT_CALL(foo, Bar(_))
1282
- .Times(0);
1283
- ```
1284
-
1285
- If some calls to the method are allowed, but the rest are not, just
1286
- list all the expected calls:
1287
-
1288
- ```
1289
- using ::testing::AnyNumber;
1290
- using ::testing::Gt;
1291
- ...
1292
- EXPECT_CALL(foo, Bar(5));
1293
- EXPECT_CALL(foo, Bar(Gt(10)))
1294
- .Times(AnyNumber());
1295
- ```
1296
-
1297
- A call to `foo.Bar()` that doesn't match any of the `EXPECT_CALL()`
1298
- statements will be an error.
1299
-
1300
- ## Understanding Uninteresting vs Unexpected Calls ##
1301
-
1302
- _Uninteresting_ calls and _unexpected_ calls are different concepts in Google Mock. _Very_ different.
1303
-
1304
- A call `x.Y(...)` is **uninteresting** if there's _not even a single_ `EXPECT_CALL(x, Y(...))` set. In other words, the test isn't interested in the `x.Y()` method at all, as evident in that the test doesn't care to say anything about it.
1305
-
1306
- A call `x.Y(...)` is **unexpected** if there are some `EXPECT_CALL(x, Y(...))s` set, but none of them matches the call. Put another way, the test is interested in the `x.Y()` method (therefore it _explicitly_ sets some `EXPECT_CALL` to verify how it's called); however, the verification fails as the test doesn't expect this particular call to happen.
1307
-
1308
- **An unexpected call is always an error,** as the code under test doesn't behave the way the test expects it to behave.
1309
-
1310
- **By default, an uninteresting call is not an error,** as it violates no constraint specified by the test. (Google Mock's philosophy is that saying nothing means there is no constraint.) However, it leads to a warning, as it _might_ indicate a problem (e.g. the test author might have forgotten to specify a constraint).
1311
-
1312
- In Google Mock, `NiceMock` and `StrictMock` can be used to make a mock class "nice" or "strict". How does this affect uninteresting calls and unexpected calls?
1313
-
1314
- A **nice mock** suppresses uninteresting call warnings. It is less chatty than the default mock, but otherwise is the same. If a test fails with a default mock, it will also fail using a nice mock instead. And vice versa. Don't expect making a mock nice to change the test's result.
1315
-
1316
- A **strict mock** turns uninteresting call warnings into errors. So making a mock strict may change the test's result.
1317
-
1318
- Let's look at an example:
1319
-
1320
- ```
1321
- TEST(...) {
1322
- NiceMock<MockDomainRegistry> mock_registry;
1323
- EXPECT_CALL(mock_registry, GetDomainOwner("google.com"))
1324
- .WillRepeatedly(Return("Larry Page"));
1325
-
1326
- // Use mock_registry in code under test.
1327
- ... &mock_registry ...
1328
- }
1329
- ```
1330
-
1331
- The sole `EXPECT_CALL` here says that all calls to `GetDomainOwner()` must have `"google.com"` as the argument. If `GetDomainOwner("yahoo.com")` is called, it will be an unexpected call, and thus an error. Having a nice mock doesn't change the severity of an unexpected call.
1332
-
1333
- So how do we tell Google Mock that `GetDomainOwner()` can be called with some other arguments as well? The standard technique is to add a "catch all" `EXPECT_CALL`:
1334
-
1335
- ```
1336
- EXPECT_CALL(mock_registry, GetDomainOwner(_))
1337
- .Times(AnyNumber()); // catches all other calls to this method.
1338
- EXPECT_CALL(mock_registry, GetDomainOwner("google.com"))
1339
- .WillRepeatedly(Return("Larry Page"));
1340
- ```
1341
-
1342
- Remember that `_` is the wildcard matcher that matches anything. With this, if `GetDomainOwner("google.com")` is called, it will do what the second `EXPECT_CALL` says; if it is called with a different argument, it will do what the first `EXPECT_CALL` says.
1343
-
1344
- Note that the order of the two `EXPECT_CALLs` is important, as a newer `EXPECT_CALL` takes precedence over an older one.
1345
-
1346
- For more on uninteresting calls, nice mocks, and strict mocks, read ["The Nice, the Strict, and the Naggy"](#the-nice-the-strict-and-the-naggy).
1347
-
1348
- ## Expecting Ordered Calls ##
1349
-
1350
- Although an `EXPECT_CALL()` statement defined earlier takes precedence
1351
- when Google Mock tries to match a function call with an expectation,
1352
- by default calls don't have to happen in the order `EXPECT_CALL()`
1353
- statements are written. For example, if the arguments match the
1354
- matchers in the third `EXPECT_CALL()`, but not those in the first two,
1355
- then the third expectation will be used.
1356
-
1357
- If you would rather have all calls occur in the order of the
1358
- expectations, put the `EXPECT_CALL()` statements in a block where you
1359
- define a variable of type `InSequence`:
1360
-
1361
- ```
1362
- using ::testing::_;
1363
- using ::testing::InSequence;
1364
-
1365
- {
1366
- InSequence s;
1367
-
1368
- EXPECT_CALL(foo, DoThis(5));
1369
- EXPECT_CALL(bar, DoThat(_))
1370
- .Times(2);
1371
- EXPECT_CALL(foo, DoThis(6));
1372
- }
1373
- ```
1374
-
1375
- In this example, we expect a call to `foo.DoThis(5)`, followed by two
1376
- calls to `bar.DoThat()` where the argument can be anything, which are
1377
- in turn followed by a call to `foo.DoThis(6)`. If a call occurred
1378
- out-of-order, Google Mock will report an error.
1379
-
1380
- ## Expecting Partially Ordered Calls ##
1381
-
1382
- Sometimes requiring everything to occur in a predetermined order can
1383
- lead to brittle tests. For example, we may care about `A` occurring
1384
- before both `B` and `C`, but aren't interested in the relative order
1385
- of `B` and `C`. In this case, the test should reflect our real intent,
1386
- instead of being overly constraining.
1387
-
1388
- Google Mock allows you to impose an arbitrary DAG (directed acyclic
1389
- graph) on the calls. One way to express the DAG is to use the
1390
- [After](CheatSheet.md#the-after-clause) clause of `EXPECT_CALL`.
1391
-
1392
- Another way is via the `InSequence()` clause (not the same as the
1393
- `InSequence` class), which we borrowed from jMock 2. It's less
1394
- flexible than `After()`, but more convenient when you have long chains
1395
- of sequential calls, as it doesn't require you to come up with
1396
- different names for the expectations in the chains. Here's how it
1397
- works:
1398
-
1399
- If we view `EXPECT_CALL()` statements as nodes in a graph, and add an
1400
- edge from node A to node B wherever A must occur before B, we can get
1401
- a DAG. We use the term "sequence" to mean a directed path in this
1402
- DAG. Now, if we decompose the DAG into sequences, we just need to know
1403
- which sequences each `EXPECT_CALL()` belongs to in order to be able to
1404
- reconstruct the orginal DAG.
1405
-
1406
- So, to specify the partial order on the expectations we need to do two
1407
- things: first to define some `Sequence` objects, and then for each
1408
- `EXPECT_CALL()` say which `Sequence` objects it is part
1409
- of. Expectations in the same sequence must occur in the order they are
1410
- written. For example,
1411
-
1412
- ```
1413
- using ::testing::Sequence;
1414
-
1415
- Sequence s1, s2;
1416
-
1417
- EXPECT_CALL(foo, A())
1418
- .InSequence(s1, s2);
1419
- EXPECT_CALL(bar, B())
1420
- .InSequence(s1);
1421
- EXPECT_CALL(bar, C())
1422
- .InSequence(s2);
1423
- EXPECT_CALL(foo, D())
1424
- .InSequence(s2);
1425
- ```
1426
-
1427
- specifies the following DAG (where `s1` is `A -> B`, and `s2` is `A ->
1428
- C -> D`):
1429
-
1430
- ```
1431
- +---> B
1432
- |
1433
- A ---|
1434
- |
1435
- +---> C ---> D
1436
- ```
1437
-
1438
- This means that A must occur before B and C, and C must occur before
1439
- D. There's no restriction about the order other than these.
1440
-
1441
- ## Controlling When an Expectation Retires ##
1442
-
1443
- When a mock method is called, Google Mock only consider expectations
1444
- that are still active. An expectation is active when created, and
1445
- becomes inactive (aka _retires_) when a call that has to occur later
1446
- has occurred. For example, in
1447
-
1448
- ```
1449
- using ::testing::_;
1450
- using ::testing::Sequence;
1451
-
1452
- Sequence s1, s2;
1453
-
1454
- EXPECT_CALL(log, Log(WARNING, _, "File too large.")) // #1
1455
- .Times(AnyNumber())
1456
- .InSequence(s1, s2);
1457
- EXPECT_CALL(log, Log(WARNING, _, "Data set is empty.")) // #2
1458
- .InSequence(s1);
1459
- EXPECT_CALL(log, Log(WARNING, _, "User not found.")) // #3
1460
- .InSequence(s2);
1461
- ```
1462
-
1463
- as soon as either #2 or #3 is matched, #1 will retire. If a warning
1464
- `"File too large."` is logged after this, it will be an error.
1465
-
1466
- Note that an expectation doesn't retire automatically when it's
1467
- saturated. For example,
1468
-
1469
- ```
1470
- using ::testing::_;
1471
- ...
1472
- EXPECT_CALL(log, Log(WARNING, _, _)); // #1
1473
- EXPECT_CALL(log, Log(WARNING, _, "File too large.")); // #2
1474
- ```
1475
-
1476
- says that there will be exactly one warning with the message `"File
1477
- too large."`. If the second warning contains this message too, #2 will
1478
- match again and result in an upper-bound-violated error.
1479
-
1480
- If this is not what you want, you can ask an expectation to retire as
1481
- soon as it becomes saturated:
1482
-
1483
- ```
1484
- using ::testing::_;
1485
- ...
1486
- EXPECT_CALL(log, Log(WARNING, _, _)); // #1
1487
- EXPECT_CALL(log, Log(WARNING, _, "File too large.")) // #2
1488
- .RetiresOnSaturation();
1489
- ```
1490
-
1491
- Here #2 can be used only once, so if you have two warnings with the
1492
- message `"File too large."`, the first will match #2 and the second
1493
- will match #1 - there will be no error.
1494
-
1495
- # Using Actions #
1496
-
1497
- ## Returning References from Mock Methods ##
1498
-
1499
- If a mock function's return type is a reference, you need to use
1500
- `ReturnRef()` instead of `Return()` to return a result:
1501
-
1502
- ```
1503
- using ::testing::ReturnRef;
1504
-
1505
- class MockFoo : public Foo {
1506
- public:
1507
- MOCK_METHOD0(GetBar, Bar&());
1508
- };
1509
- ...
1510
-
1511
- MockFoo foo;
1512
- Bar bar;
1513
- EXPECT_CALL(foo, GetBar())
1514
- .WillOnce(ReturnRef(bar));
1515
- ```
1516
-
1517
- ## Returning Live Values from Mock Methods ##
1518
-
1519
- The `Return(x)` action saves a copy of `x` when the action is
1520
- _created_, and always returns the same value whenever it's
1521
- executed. Sometimes you may want to instead return the _live_ value of
1522
- `x` (i.e. its value at the time when the action is _executed_.).
1523
-
1524
- If the mock function's return type is a reference, you can do it using
1525
- `ReturnRef(x)`, as shown in the previous recipe ("Returning References
1526
- from Mock Methods"). However, Google Mock doesn't let you use
1527
- `ReturnRef()` in a mock function whose return type is not a reference,
1528
- as doing that usually indicates a user error. So, what shall you do?
1529
-
1530
- You may be tempted to try `ByRef()`:
1531
-
1532
- ```
1533
- using testing::ByRef;
1534
- using testing::Return;
1535
-
1536
- class MockFoo : public Foo {
1537
- public:
1538
- MOCK_METHOD0(GetValue, int());
1539
- };
1540
- ...
1541
- int x = 0;
1542
- MockFoo foo;
1543
- EXPECT_CALL(foo, GetValue())
1544
- .WillRepeatedly(Return(ByRef(x)));
1545
- x = 42;
1546
- EXPECT_EQ(42, foo.GetValue());
1547
- ```
1548
-
1549
- Unfortunately, it doesn't work here. The above code will fail with error:
1550
-
1551
- ```
1552
- Value of: foo.GetValue()
1553
- Actual: 0
1554
- Expected: 42
1555
- ```
1556
-
1557
- The reason is that `Return(value)` converts `value` to the actual
1558
- return type of the mock function at the time when the action is
1559
- _created_, not when it is _executed_. (This behavior was chosen for
1560
- the action to be safe when `value` is a proxy object that references
1561
- some temporary objects.) As a result, `ByRef(x)` is converted to an
1562
- `int` value (instead of a `const int&`) when the expectation is set,
1563
- and `Return(ByRef(x))` will always return 0.
1564
-
1565
- `ReturnPointee(pointer)` was provided to solve this problem
1566
- specifically. It returns the value pointed to by `pointer` at the time
1567
- the action is _executed_:
1568
-
1569
- ```
1570
- using testing::ReturnPointee;
1571
- ...
1572
- int x = 0;
1573
- MockFoo foo;
1574
- EXPECT_CALL(foo, GetValue())
1575
- .WillRepeatedly(ReturnPointee(&x)); // Note the & here.
1576
- x = 42;
1577
- EXPECT_EQ(42, foo.GetValue()); // This will succeed now.
1578
- ```
1579
-
1580
- ## Combining Actions ##
1581
-
1582
- Want to do more than one thing when a function is called? That's
1583
- fine. `DoAll()` allow you to do sequence of actions every time. Only
1584
- the return value of the last action in the sequence will be used.
1585
-
1586
- ```
1587
- using ::testing::DoAll;
1588
-
1589
- class MockFoo : public Foo {
1590
- public:
1591
- MOCK_METHOD1(Bar, bool(int n));
1592
- };
1593
- ...
1594
-
1595
- EXPECT_CALL(foo, Bar(_))
1596
- .WillOnce(DoAll(action_1,
1597
- action_2,
1598
- ...
1599
- action_n));
1600
- ```
1601
-
1602
- ## Mocking Side Effects ##
1603
-
1604
- Sometimes a method exhibits its effect not via returning a value but
1605
- via side effects. For example, it may change some global state or
1606
- modify an output argument. To mock side effects, in general you can
1607
- define your own action by implementing `::testing::ActionInterface`.
1608
-
1609
- If all you need to do is to change an output argument, the built-in
1610
- `SetArgPointee()` action is convenient:
1611
-
1612
- ```
1613
- using ::testing::SetArgPointee;
1614
-
1615
- class MockMutator : public Mutator {
1616
- public:
1617
- MOCK_METHOD2(Mutate, void(bool mutate, int* value));
1618
- ...
1619
- };
1620
- ...
1621
-
1622
- MockMutator mutator;
1623
- EXPECT_CALL(mutator, Mutate(true, _))
1624
- .WillOnce(SetArgPointee<1>(5));
1625
- ```
1626
-
1627
- In this example, when `mutator.Mutate()` is called, we will assign 5
1628
- to the `int` variable pointed to by argument #1
1629
- (0-based).
1630
-
1631
- `SetArgPointee()` conveniently makes an internal copy of the
1632
- value you pass to it, removing the need to keep the value in scope and
1633
- alive. The implication however is that the value must have a copy
1634
- constructor and assignment operator.
1635
-
1636
- If the mock method also needs to return a value as well, you can chain
1637
- `SetArgPointee()` with `Return()` using `DoAll()`:
1638
-
1639
- ```
1640
- using ::testing::_;
1641
- using ::testing::Return;
1642
- using ::testing::SetArgPointee;
1643
-
1644
- class MockMutator : public Mutator {
1645
- public:
1646
- ...
1647
- MOCK_METHOD1(MutateInt, bool(int* value));
1648
- };
1649
- ...
1650
-
1651
- MockMutator mutator;
1652
- EXPECT_CALL(mutator, MutateInt(_))
1653
- .WillOnce(DoAll(SetArgPointee<0>(5),
1654
- Return(true)));
1655
- ```
1656
-
1657
- If the output argument is an array, use the
1658
- `SetArrayArgument<N>(first, last)` action instead. It copies the
1659
- elements in source range `[first, last)` to the array pointed to by
1660
- the `N`-th (0-based) argument:
1661
-
1662
- ```
1663
- using ::testing::NotNull;
1664
- using ::testing::SetArrayArgument;
1665
-
1666
- class MockArrayMutator : public ArrayMutator {
1667
- public:
1668
- MOCK_METHOD2(Mutate, void(int* values, int num_values));
1669
- ...
1670
- };
1671
- ...
1672
-
1673
- MockArrayMutator mutator;
1674
- int values[5] = { 1, 2, 3, 4, 5 };
1675
- EXPECT_CALL(mutator, Mutate(NotNull(), 5))
1676
- .WillOnce(SetArrayArgument<0>(values, values + 5));
1677
- ```
1678
-
1679
- This also works when the argument is an output iterator:
1680
-
1681
- ```
1682
- using ::testing::_;
1683
- using ::testing::SeArrayArgument;
1684
-
1685
- class MockRolodex : public Rolodex {
1686
- public:
1687
- MOCK_METHOD1(GetNames, void(std::back_insert_iterator<vector<string> >));
1688
- ...
1689
- };
1690
- ...
1691
-
1692
- MockRolodex rolodex;
1693
- vector<string> names;
1694
- names.push_back("George");
1695
- names.push_back("John");
1696
- names.push_back("Thomas");
1697
- EXPECT_CALL(rolodex, GetNames(_))
1698
- .WillOnce(SetArrayArgument<0>(names.begin(), names.end()));
1699
- ```
1700
-
1701
- ## Changing a Mock Object's Behavior Based on the State ##
1702
-
1703
- If you expect a call to change the behavior of a mock object, you can use `::testing::InSequence` to specify different behaviors before and after the call:
1704
-
1705
- ```
1706
- using ::testing::InSequence;
1707
- using ::testing::Return;
1708
-
1709
- ...
1710
- {
1711
- InSequence seq;
1712
- EXPECT_CALL(my_mock, IsDirty())
1713
- .WillRepeatedly(Return(true));
1714
- EXPECT_CALL(my_mock, Flush());
1715
- EXPECT_CALL(my_mock, IsDirty())
1716
- .WillRepeatedly(Return(false));
1717
- }
1718
- my_mock.FlushIfDirty();
1719
- ```
1720
-
1721
- This makes `my_mock.IsDirty()` return `true` before `my_mock.Flush()` is called and return `false` afterwards.
1722
-
1723
- If the behavior change is more complex, you can store the effects in a variable and make a mock method get its return value from that variable:
1724
-
1725
- ```
1726
- using ::testing::_;
1727
- using ::testing::SaveArg;
1728
- using ::testing::Return;
1729
-
1730
- ACTION_P(ReturnPointee, p) { return *p; }
1731
- ...
1732
- int previous_value = 0;
1733
- EXPECT_CALL(my_mock, GetPrevValue())
1734
- .WillRepeatedly(ReturnPointee(&previous_value));
1735
- EXPECT_CALL(my_mock, UpdateValue(_))
1736
- .WillRepeatedly(SaveArg<0>(&previous_value));
1737
- my_mock.DoSomethingToUpdateValue();
1738
- ```
1739
-
1740
- Here `my_mock.GetPrevValue()` will always return the argument of the last `UpdateValue()` call.
1741
-
1742
- ## Setting the Default Value for a Return Type ##
1743
-
1744
- If a mock method's return type is a built-in C++ type or pointer, by
1745
- default it will return 0 when invoked. Also, in C++ 11 and above, a mock
1746
- method whose return type has a default constructor will return a default-constructed
1747
- value by default. You only need to specify an
1748
- action if this default value doesn't work for you.
1749
-
1750
- Sometimes, you may want to change this default value, or you may want
1751
- to specify a default value for types Google Mock doesn't know
1752
- about. You can do this using the `::testing::DefaultValue` class
1753
- template:
1754
-
1755
- ```
1756
- class MockFoo : public Foo {
1757
- public:
1758
- MOCK_METHOD0(CalculateBar, Bar());
1759
- };
1760
- ...
1761
-
1762
- Bar default_bar;
1763
- // Sets the default return value for type Bar.
1764
- DefaultValue<Bar>::Set(default_bar);
1765
-
1766
- MockFoo foo;
1767
-
1768
- // We don't need to specify an action here, as the default
1769
- // return value works for us.
1770
- EXPECT_CALL(foo, CalculateBar());
1771
-
1772
- foo.CalculateBar(); // This should return default_bar.
1773
-
1774
- // Unsets the default return value.
1775
- DefaultValue<Bar>::Clear();
1776
- ```
1777
-
1778
- Please note that changing the default value for a type can make you
1779
- tests hard to understand. We recommend you to use this feature
1780
- judiciously. For example, you may want to make sure the `Set()` and
1781
- `Clear()` calls are right next to the code that uses your mock.
1782
-
1783
- ## Setting the Default Actions for a Mock Method ##
1784
-
1785
- You've learned how to change the default value of a given
1786
- type. However, this may be too coarse for your purpose: perhaps you
1787
- have two mock methods with the same return type and you want them to
1788
- have different behaviors. The `ON_CALL()` macro allows you to
1789
- customize your mock's behavior at the method level:
1790
-
1791
- ```
1792
- using ::testing::_;
1793
- using ::testing::AnyNumber;
1794
- using ::testing::Gt;
1795
- using ::testing::Return;
1796
- ...
1797
- ON_CALL(foo, Sign(_))
1798
- .WillByDefault(Return(-1));
1799
- ON_CALL(foo, Sign(0))
1800
- .WillByDefault(Return(0));
1801
- ON_CALL(foo, Sign(Gt(0)))
1802
- .WillByDefault(Return(1));
1803
-
1804
- EXPECT_CALL(foo, Sign(_))
1805
- .Times(AnyNumber());
1806
-
1807
- foo.Sign(5); // This should return 1.
1808
- foo.Sign(-9); // This should return -1.
1809
- foo.Sign(0); // This should return 0.
1810
- ```
1811
-
1812
- As you may have guessed, when there are more than one `ON_CALL()`
1813
- statements, the news order take precedence over the older ones. In
1814
- other words, the **last** one that matches the function arguments will
1815
- be used. This matching order allows you to set up the common behavior
1816
- in a mock object's constructor or the test fixture's set-up phase and
1817
- specialize the mock's behavior later.
1818
-
1819
- ## Using Functions/Methods/Functors as Actions ##
1820
-
1821
- If the built-in actions don't suit you, you can easily use an existing
1822
- function, method, or functor as an action:
1823
-
1824
- ```
1825
- using ::testing::_;
1826
- using ::testing::Invoke;
1827
-
1828
- class MockFoo : public Foo {
1829
- public:
1830
- MOCK_METHOD2(Sum, int(int x, int y));
1831
- MOCK_METHOD1(ComplexJob, bool(int x));
1832
- };
1833
-
1834
- int CalculateSum(int x, int y) { return x + y; }
1835
-
1836
- class Helper {
1837
- public:
1838
- bool ComplexJob(int x);
1839
- };
1840
- ...
1841
-
1842
- MockFoo foo;
1843
- Helper helper;
1844
- EXPECT_CALL(foo, Sum(_, _))
1845
- .WillOnce(Invoke(CalculateSum));
1846
- EXPECT_CALL(foo, ComplexJob(_))
1847
- .WillOnce(Invoke(&helper, &Helper::ComplexJob));
1848
-
1849
- foo.Sum(5, 6); // Invokes CalculateSum(5, 6).
1850
- foo.ComplexJob(10); // Invokes helper.ComplexJob(10);
1851
- ```
1852
-
1853
- The only requirement is that the type of the function, etc must be
1854
- _compatible_ with the signature of the mock function, meaning that the
1855
- latter's arguments can be implicitly converted to the corresponding
1856
- arguments of the former, and the former's return type can be
1857
- implicitly converted to that of the latter. So, you can invoke
1858
- something whose type is _not_ exactly the same as the mock function,
1859
- as long as it's safe to do so - nice, huh?
1860
-
1861
- ## Invoking a Function/Method/Functor Without Arguments ##
1862
-
1863
- `Invoke()` is very useful for doing actions that are more complex. It
1864
- passes the mock function's arguments to the function or functor being
1865
- invoked such that the callee has the full context of the call to work
1866
- with. If the invoked function is not interested in some or all of the
1867
- arguments, it can simply ignore them.
1868
-
1869
- Yet, a common pattern is that a test author wants to invoke a function
1870
- without the arguments of the mock function. `Invoke()` allows her to
1871
- do that using a wrapper function that throws away the arguments before
1872
- invoking an underlining nullary function. Needless to say, this can be
1873
- tedious and obscures the intent of the test.
1874
-
1875
- `InvokeWithoutArgs()` solves this problem. It's like `Invoke()` except
1876
- that it doesn't pass the mock function's arguments to the
1877
- callee. Here's an example:
1878
-
1879
- ```
1880
- using ::testing::_;
1881
- using ::testing::InvokeWithoutArgs;
1882
-
1883
- class MockFoo : public Foo {
1884
- public:
1885
- MOCK_METHOD1(ComplexJob, bool(int n));
1886
- };
1887
-
1888
- bool Job1() { ... }
1889
- ...
1890
-
1891
- MockFoo foo;
1892
- EXPECT_CALL(foo, ComplexJob(_))
1893
- .WillOnce(InvokeWithoutArgs(Job1));
1894
-
1895
- foo.ComplexJob(10); // Invokes Job1().
1896
- ```
1897
-
1898
- ## Invoking an Argument of the Mock Function ##
1899
-
1900
- Sometimes a mock function will receive a function pointer or a functor
1901
- (in other words, a "callable") as an argument, e.g.
1902
-
1903
- ```
1904
- class MockFoo : public Foo {
1905
- public:
1906
- MOCK_METHOD2(DoThis, bool(int n, bool (*fp)(int)));
1907
- };
1908
- ```
1909
-
1910
- and you may want to invoke this callable argument:
1911
-
1912
- ```
1913
- using ::testing::_;
1914
- ...
1915
- MockFoo foo;
1916
- EXPECT_CALL(foo, DoThis(_, _))
1917
- .WillOnce(...);
1918
- // Will execute (*fp)(5), where fp is the
1919
- // second argument DoThis() receives.
1920
- ```
1921
-
1922
- Arghh, you need to refer to a mock function argument but C++ has no
1923
- lambda (yet), so you have to define your own action. :-( Or do you
1924
- really?
1925
-
1926
- Well, Google Mock has an action to solve _exactly_ this problem:
1927
-
1928
- ```
1929
- InvokeArgument<N>(arg_1, arg_2, ..., arg_m)
1930
- ```
1931
-
1932
- will invoke the `N`-th (0-based) argument the mock function receives,
1933
- with `arg_1`, `arg_2`, ..., and `arg_m`. No matter if the argument is
1934
- a function pointer or a functor, Google Mock handles them both.
1935
-
1936
- With that, you could write:
1937
-
1938
- ```
1939
- using ::testing::_;
1940
- using ::testing::InvokeArgument;
1941
- ...
1942
- EXPECT_CALL(foo, DoThis(_, _))
1943
- .WillOnce(InvokeArgument<1>(5));
1944
- // Will execute (*fp)(5), where fp is the
1945
- // second argument DoThis() receives.
1946
- ```
1947
-
1948
- What if the callable takes an argument by reference? No problem - just
1949
- wrap it inside `ByRef()`:
1950
-
1951
- ```
1952
- ...
1953
- MOCK_METHOD1(Bar, bool(bool (*fp)(int, const Helper&)));
1954
- ...
1955
- using ::testing::_;
1956
- using ::testing::ByRef;
1957
- using ::testing::InvokeArgument;
1958
- ...
1959
-
1960
- MockFoo foo;
1961
- Helper helper;
1962
- ...
1963
- EXPECT_CALL(foo, Bar(_))
1964
- .WillOnce(InvokeArgument<0>(5, ByRef(helper)));
1965
- // ByRef(helper) guarantees that a reference to helper, not a copy of it,
1966
- // will be passed to the callable.
1967
- ```
1968
-
1969
- What if the callable takes an argument by reference and we do **not**
1970
- wrap the argument in `ByRef()`? Then `InvokeArgument()` will _make a
1971
- copy_ of the argument, and pass a _reference to the copy_, instead of
1972
- a reference to the original value, to the callable. This is especially
1973
- handy when the argument is a temporary value:
1974
-
1975
- ```
1976
- ...
1977
- MOCK_METHOD1(DoThat, bool(bool (*f)(const double& x, const string& s)));
1978
- ...
1979
- using ::testing::_;
1980
- using ::testing::InvokeArgument;
1981
- ...
1982
-
1983
- MockFoo foo;
1984
- ...
1985
- EXPECT_CALL(foo, DoThat(_))
1986
- .WillOnce(InvokeArgument<0>(5.0, string("Hi")));
1987
- // Will execute (*f)(5.0, string("Hi")), where f is the function pointer
1988
- // DoThat() receives. Note that the values 5.0 and string("Hi") are
1989
- // temporary and dead once the EXPECT_CALL() statement finishes. Yet
1990
- // it's fine to perform this action later, since a copy of the values
1991
- // are kept inside the InvokeArgument action.
1992
- ```
1993
-
1994
- ## Ignoring an Action's Result ##
1995
-
1996
- Sometimes you have an action that returns _something_, but you need an
1997
- action that returns `void` (perhaps you want to use it in a mock
1998
- function that returns `void`, or perhaps it needs to be used in
1999
- `DoAll()` and it's not the last in the list). `IgnoreResult()` lets
2000
- you do that. For example:
2001
-
2002
- ```
2003
- using ::testing::_;
2004
- using ::testing::Invoke;
2005
- using ::testing::Return;
2006
-
2007
- int Process(const MyData& data);
2008
- string DoSomething();
2009
-
2010
- class MockFoo : public Foo {
2011
- public:
2012
- MOCK_METHOD1(Abc, void(const MyData& data));
2013
- MOCK_METHOD0(Xyz, bool());
2014
- };
2015
- ...
2016
-
2017
- MockFoo foo;
2018
- EXPECT_CALL(foo, Abc(_))
2019
- // .WillOnce(Invoke(Process));
2020
- // The above line won't compile as Process() returns int but Abc() needs
2021
- // to return void.
2022
- .WillOnce(IgnoreResult(Invoke(Process)));
2023
-
2024
- EXPECT_CALL(foo, Xyz())
2025
- .WillOnce(DoAll(IgnoreResult(Invoke(DoSomething)),
2026
- // Ignores the string DoSomething() returns.
2027
- Return(true)));
2028
- ```
2029
-
2030
- Note that you **cannot** use `IgnoreResult()` on an action that already
2031
- returns `void`. Doing so will lead to ugly compiler errors.
2032
-
2033
- ## Selecting an Action's Arguments ##
2034
-
2035
- Say you have a mock function `Foo()` that takes seven arguments, and
2036
- you have a custom action that you want to invoke when `Foo()` is
2037
- called. Trouble is, the custom action only wants three arguments:
2038
-
2039
- ```
2040
- using ::testing::_;
2041
- using ::testing::Invoke;
2042
- ...
2043
- MOCK_METHOD7(Foo, bool(bool visible, const string& name, int x, int y,
2044
- const map<pair<int, int>, double>& weight,
2045
- double min_weight, double max_wight));
2046
- ...
2047
-
2048
- bool IsVisibleInQuadrant1(bool visible, int x, int y) {
2049
- return visible && x >= 0 && y >= 0;
2050
- }
2051
- ...
2052
-
2053
- EXPECT_CALL(mock, Foo(_, _, _, _, _, _, _))
2054
- .WillOnce(Invoke(IsVisibleInQuadrant1)); // Uh, won't compile. :-(
2055
- ```
2056
-
2057
- To please the compiler God, you can to define an "adaptor" that has
2058
- the same signature as `Foo()` and calls the custom action with the
2059
- right arguments:
2060
-
2061
- ```
2062
- using ::testing::_;
2063
- using ::testing::Invoke;
2064
-
2065
- bool MyIsVisibleInQuadrant1(bool visible, const string& name, int x, int y,
2066
- const map<pair<int, int>, double>& weight,
2067
- double min_weight, double max_wight) {
2068
- return IsVisibleInQuadrant1(visible, x, y);
2069
- }
2070
- ...
2071
-
2072
- EXPECT_CALL(mock, Foo(_, _, _, _, _, _, _))
2073
- .WillOnce(Invoke(MyIsVisibleInQuadrant1)); // Now it works.
2074
- ```
2075
-
2076
- But isn't this awkward?
2077
-
2078
- Google Mock provides a generic _action adaptor_, so you can spend your
2079
- time minding more important business than writing your own
2080
- adaptors. Here's the syntax:
2081
-
2082
- ```
2083
- WithArgs<N1, N2, ..., Nk>(action)
2084
- ```
2085
-
2086
- creates an action that passes the arguments of the mock function at
2087
- the given indices (0-based) to the inner `action` and performs
2088
- it. Using `WithArgs`, our original example can be written as:
2089
-
2090
- ```
2091
- using ::testing::_;
2092
- using ::testing::Invoke;
2093
- using ::testing::WithArgs;
2094
- ...
2095
- EXPECT_CALL(mock, Foo(_, _, _, _, _, _, _))
2096
- .WillOnce(WithArgs<0, 2, 3>(Invoke(IsVisibleInQuadrant1)));
2097
- // No need to define your own adaptor.
2098
- ```
2099
-
2100
- For better readability, Google Mock also gives you:
2101
-
2102
- * `WithoutArgs(action)` when the inner `action` takes _no_ argument, and
2103
- * `WithArg<N>(action)` (no `s` after `Arg`) when the inner `action` takes _one_ argument.
2104
-
2105
- As you may have realized, `InvokeWithoutArgs(...)` is just syntactic
2106
- sugar for `WithoutArgs(Invoke(...))`.
2107
-
2108
- Here are more tips:
2109
-
2110
- * The inner action used in `WithArgs` and friends does not have to be `Invoke()` -- it can be anything.
2111
- * You can repeat an argument in the argument list if necessary, e.g. `WithArgs<2, 3, 3, 5>(...)`.
2112
- * You can change the order of the arguments, e.g. `WithArgs<3, 2, 1>(...)`.
2113
- * The types of the selected arguments do _not_ have to match the signature of the inner action exactly. It works as long as they can be implicitly converted to the corresponding arguments of the inner action. For example, if the 4-th argument of the mock function is an `int` and `my_action` takes a `double`, `WithArg<4>(my_action)` will work.
2114
-
2115
- ## Ignoring Arguments in Action Functions ##
2116
-
2117
- The selecting-an-action's-arguments recipe showed us one way to make a
2118
- mock function and an action with incompatible argument lists fit
2119
- together. The downside is that wrapping the action in
2120
- `WithArgs<...>()` can get tedious for people writing the tests.
2121
-
2122
- If you are defining a function, method, or functor to be used with
2123
- `Invoke*()`, and you are not interested in some of its arguments, an
2124
- alternative to `WithArgs` is to declare the uninteresting arguments as
2125
- `Unused`. This makes the definition less cluttered and less fragile in
2126
- case the types of the uninteresting arguments change. It could also
2127
- increase the chance the action function can be reused. For example,
2128
- given
2129
-
2130
- ```
2131
- MOCK_METHOD3(Foo, double(const string& label, double x, double y));
2132
- MOCK_METHOD3(Bar, double(int index, double x, double y));
2133
- ```
2134
-
2135
- instead of
2136
-
2137
- ```
2138
- using ::testing::_;
2139
- using ::testing::Invoke;
2140
-
2141
- double DistanceToOriginWithLabel(const string& label, double x, double y) {
2142
- return sqrt(x*x + y*y);
2143
- }
2144
-
2145
- double DistanceToOriginWithIndex(int index, double x, double y) {
2146
- return sqrt(x*x + y*y);
2147
- }
2148
- ...
2149
-
2150
- EXEPCT_CALL(mock, Foo("abc", _, _))
2151
- .WillOnce(Invoke(DistanceToOriginWithLabel));
2152
- EXEPCT_CALL(mock, Bar(5, _, _))
2153
- .WillOnce(Invoke(DistanceToOriginWithIndex));
2154
- ```
2155
-
2156
- you could write
2157
-
2158
- ```
2159
- using ::testing::_;
2160
- using ::testing::Invoke;
2161
- using ::testing::Unused;
2162
-
2163
- double DistanceToOrigin(Unused, double x, double y) {
2164
- return sqrt(x*x + y*y);
2165
- }
2166
- ...
2167
-
2168
- EXEPCT_CALL(mock, Foo("abc", _, _))
2169
- .WillOnce(Invoke(DistanceToOrigin));
2170
- EXEPCT_CALL(mock, Bar(5, _, _))
2171
- .WillOnce(Invoke(DistanceToOrigin));
2172
- ```
2173
-
2174
- ## Sharing Actions ##
2175
-
2176
- Just like matchers, a Google Mock action object consists of a pointer
2177
- to a ref-counted implementation object. Therefore copying actions is
2178
- also allowed and very efficient. When the last action that references
2179
- the implementation object dies, the implementation object will be
2180
- deleted.
2181
-
2182
- If you have some complex action that you want to use again and again,
2183
- you may not have to build it from scratch everytime. If the action
2184
- doesn't have an internal state (i.e. if it always does the same thing
2185
- no matter how many times it has been called), you can assign it to an
2186
- action variable and use that variable repeatedly. For example:
2187
-
2188
- ```
2189
- Action<bool(int*)> set_flag = DoAll(SetArgPointee<0>(5),
2190
- Return(true));
2191
- ... use set_flag in .WillOnce() and .WillRepeatedly() ...
2192
- ```
2193
-
2194
- However, if the action has its own state, you may be surprised if you
2195
- share the action object. Suppose you have an action factory
2196
- `IncrementCounter(init)` which creates an action that increments and
2197
- returns a counter whose initial value is `init`, using two actions
2198
- created from the same expression and using a shared action will
2199
- exihibit different behaviors. Example:
2200
-
2201
- ```
2202
- EXPECT_CALL(foo, DoThis())
2203
- .WillRepeatedly(IncrementCounter(0));
2204
- EXPECT_CALL(foo, DoThat())
2205
- .WillRepeatedly(IncrementCounter(0));
2206
- foo.DoThis(); // Returns 1.
2207
- foo.DoThis(); // Returns 2.
2208
- foo.DoThat(); // Returns 1 - Blah() uses a different
2209
- // counter than Bar()'s.
2210
- ```
2211
-
2212
- versus
2213
-
2214
- ```
2215
- Action<int()> increment = IncrementCounter(0);
2216
-
2217
- EXPECT_CALL(foo, DoThis())
2218
- .WillRepeatedly(increment);
2219
- EXPECT_CALL(foo, DoThat())
2220
- .WillRepeatedly(increment);
2221
- foo.DoThis(); // Returns 1.
2222
- foo.DoThis(); // Returns 2.
2223
- foo.DoThat(); // Returns 3 - the counter is shared.
2224
- ```
2225
-
2226
- # Misc Recipes on Using Google Mock #
2227
-
2228
- ## Mocking Methods That Use Move-Only Types ##
2229
-
2230
- C++11 introduced <em>move-only types</em>. A move-only-typed value can be moved from one object to another, but cannot be copied. `std::unique_ptr<T>` is probably the most commonly used move-only type.
2231
-
2232
- Mocking a method that takes and/or returns move-only types presents some challenges, but nothing insurmountable. This recipe shows you how you can do it.
2233
-
2234
- Let’s say we are working on a fictional project that lets one post and share snippets called “buzzes”. Your code uses these types:
2235
-
2236
- ```
2237
- enum class AccessLevel { kInternal, kPublic };
2238
-
2239
- class Buzz {
2240
- public:
2241
- explicit Buzz(AccessLevel access) { … }
2242
- ...
2243
- };
2244
-
2245
- class Buzzer {
2246
- public:
2247
- virtual ~Buzzer() {}
2248
- virtual std::unique_ptr<Buzz> MakeBuzz(const std::string& text) = 0;
2249
- virtual bool ShareBuzz(std::unique_ptr<Buzz> buzz, Time timestamp) = 0;
2250
- ...
2251
- };
2252
- ```
2253
-
2254
- A `Buzz` object represents a snippet being posted. A class that implements the `Buzzer` interface is capable of creating and sharing `Buzz`. Methods in `Buzzer` may return a `unique_ptr<Buzz>` or take a `unique_ptr<Buzz>`. Now we need to mock `Buzzer` in our tests.
2255
-
2256
- To mock a method that returns a move-only type, you just use the familiar `MOCK_METHOD` syntax as usual:
2257
-
2258
- ```
2259
- class MockBuzzer : public Buzzer {
2260
- public:
2261
- MOCK_METHOD1(MakeBuzz, std::unique_ptr<Buzz>(const std::string& text));
2262
-
2263
- };
2264
- ```
2265
-
2266
- However, if you attempt to use the same `MOCK_METHOD` pattern to mock a method that takes a move-only parameter, you’ll get a compiler error currently:
2267
-
2268
- ```
2269
- // Does NOT compile!
2270
- MOCK_METHOD2(ShareBuzz, bool(std::unique_ptr<Buzz> buzz, Time timestamp));
2271
- ```
2272
-
2273
- While it’s highly desirable to make this syntax just work, it’s not trivial and the work hasn’t been done yet. Fortunately, there is a trick you can apply today to get something that works nearly as well as this.
2274
-
2275
- The trick, is to delegate the `ShareBuzz()` method to a mock method (let’s call it `DoShareBuzz()`) that does not take move-only parameters:
2276
-
2277
- ```
2278
- class MockBuzzer : public Buzzer {
2279
- public:
2280
- MOCK_METHOD1(MakeBuzz, std::unique_ptr<Buzz>(const std::string& text));
2281
- MOCK_METHOD2(DoShareBuzz, bool(Buzz* buzz, Time timestamp));
2282
- bool ShareBuzz(std::unique_ptr<Buzz> buzz, Time timestamp) {
2283
- return DoShareBuzz(buzz.get(), timestamp);
2284
- }
2285
- };
2286
- ```
2287
-
2288
- Note that there's no need to define or declare `DoShareBuzz()` in a base class. You only need to define it as a `MOCK_METHOD` in the mock class.
2289
-
2290
- Now that we have the mock class defined, we can use it in tests. In the following code examples, we assume that we have defined a `MockBuzzer` object named `mock_buzzer_`:
2291
-
2292
- ```
2293
- MockBuzzer mock_buzzer_;
2294
- ```
2295
-
2296
- First let’s see how we can set expectations on the `MakeBuzz()` method, which returns a `unique_ptr<Buzz>`.
2297
-
2298
- As usual, if you set an expectation without an action (i.e. the `.WillOnce()` or `.WillRepeated()` clause), when that expectation fires, the default action for that method will be taken. Since `unique_ptr<>` has a default constructor that returns a null `unique_ptr`, that’s what you’ll get if you don’t specify an action:
2299
-
2300
- ```
2301
- // Use the default action.
2302
- EXPECT_CALL(mock_buzzer_, MakeBuzz("hello"));
2303
-
2304
- // Triggers the previous EXPECT_CALL.
2305
- EXPECT_EQ(nullptr, mock_buzzer_.MakeBuzz("hello"));
2306
- ```
2307
-
2308
- If you are not happy with the default action, you can tweak it. Depending on what you need, you may either tweak the default action for a specific (mock object, mock method) combination using `ON_CALL()`, or you may tweak the default action for all mock methods that return a specific type. The usage of `ON_CALL()` is similar to `EXPECT_CALL()`, so we’ll skip it and just explain how to do the latter (tweaking the default action for a specific return type). You do this via the `DefaultValue<>::SetFactory()` and `DefaultValue<>::Clear()` API:
2309
-
2310
- ```
2311
- // Sets the default action for return type std::unique_ptr<Buzz> to
2312
- // creating a new Buzz every time.
2313
- DefaultValue<std::unique_ptr<Buzz>>::SetFactory(
2314
- [] { return MakeUnique<Buzz>(AccessLevel::kInternal); });
2315
-
2316
- // When this fires, the default action of MakeBuzz() will run, which
2317
- // will return a new Buzz object.
2318
- EXPECT_CALL(mock_buzzer_, MakeBuzz("hello")).Times(AnyNumber());
2319
-
2320
- auto buzz1 = mock_buzzer_.MakeBuzz("hello");
2321
- auto buzz2 = mock_buzzer_.MakeBuzz("hello");
2322
- EXPECT_NE(nullptr, buzz1);
2323
- EXPECT_NE(nullptr, buzz2);
2324
- EXPECT_NE(buzz1, buzz2);
2325
-
2326
- // Resets the default action for return type std::unique_ptr<Buzz>,
2327
- // to avoid interfere with other tests.
2328
- DefaultValue<std::unique_ptr<Buzz>>::Clear();
2329
- ```
2330
-
2331
- What if you want the method to do something other than the default action? If you just need to return a pre-defined move-only value, you can use the `Return(ByMove(...))` action:
2332
-
2333
- ```
2334
- // When this fires, the unique_ptr<> specified by ByMove(...) will
2335
- // be returned.
2336
- EXPECT_CALL(mock_buzzer_, MakeBuzz("world"))
2337
- .WillOnce(Return(ByMove(MakeUnique<Buzz>(AccessLevel::kInternal))));
2338
-
2339
- EXPECT_NE(nullptr, mock_buzzer_.MakeBuzz("world"));
2340
- ```
2341
-
2342
- Note that `ByMove()` is essential here - if you drop it, the code won’t compile.
2343
-
2344
- Quiz time! What do you think will happen if a `Return(ByMove(...))` action is performed more than once (e.g. you write `….WillRepeatedly(Return(ByMove(...)));`)? Come think of it, after the first time the action runs, the source value will be consumed (since it’s a move-only value), so the next time around, there’s no value to move from -- you’ll get a run-time error that `Return(ByMove(...))` can only be run once.
2345
-
2346
- If you need your mock method to do more than just moving a pre-defined value, remember that you can always use `Invoke()` to call a lambda or a callable object, which can do pretty much anything you want:
2347
-
2348
- ```
2349
- EXPECT_CALL(mock_buzzer_, MakeBuzz("x"))
2350
- .WillRepeatedly(Invoke([](const std::string& text) {
2351
- return std::make_unique<Buzz>(AccessLevel::kInternal);
2352
- }));
2353
-
2354
- EXPECT_NE(nullptr, mock_buzzer_.MakeBuzz("x"));
2355
- EXPECT_NE(nullptr, mock_buzzer_.MakeBuzz("x"));
2356
- ```
2357
-
2358
- Every time this `EXPECT_CALL` fires, a new `unique_ptr<Buzz>` will be created and returned. You cannot do this with `Return(ByMove(...))`.
2359
-
2360
- Now there’s one topic we haven’t covered: how do you set expectations on `ShareBuzz()`, which takes a move-only-typed parameter? The answer is you don’t. Instead, you set expectations on the `DoShareBuzz()` mock method (remember that we defined a `MOCK_METHOD` for `DoShareBuzz()`, not `ShareBuzz()`):
2361
-
2362
- ```
2363
- EXPECT_CALL(mock_buzzer_, DoShareBuzz(NotNull(), _));
2364
-
2365
- // When one calls ShareBuzz() on the MockBuzzer like this, the call is
2366
- // forwarded to DoShareBuzz(), which is mocked. Therefore this statement
2367
- // will trigger the above EXPECT_CALL.
2368
- mock_buzzer_.ShareBuzz(MakeUnique&lt;Buzz&gt;(AccessLevel::kInternal),
2369
- ::base::Now());
2370
- ```
2371
-
2372
- Some of you may have spotted one problem with this approach: the `DoShareBuzz()` mock method differs from the real `ShareBuzz()` method in that it cannot take ownership of the buzz parameter - `ShareBuzz()` will always delete buzz after `DoShareBuzz()` returns. What if you need to save the buzz object somewhere for later use when `ShareBuzz()` is called? Indeed, you'd be stuck.
2373
-
2374
- Another problem with the `DoShareBuzz()` we had is that it can surprise people reading or maintaining the test, as one would expect that `DoShareBuzz()` has (logically) the same contract as `ShareBuzz()`.
2375
-
2376
- Fortunately, these problems can be fixed with a bit more code. Let's try to get it right this time:
2377
-
2378
- ```
2379
- class MockBuzzer : public Buzzer {
2380
- public:
2381
- MockBuzzer() {
2382
- // Since DoShareBuzz(buzz, time) is supposed to take ownership of
2383
- // buzz, define a default behavior for DoShareBuzz(buzz, time) to
2384
- // delete buzz.
2385
- ON_CALL(*this, DoShareBuzz(_, _))
2386
- .WillByDefault(Invoke([](Buzz* buzz, Time timestamp) {
2387
- delete buzz;
2388
- return true;
2389
- }));
2390
- }
2391
-
2392
- MOCK_METHOD1(MakeBuzz, std::unique_ptr<Buzz>(const std::string& text));
2393
-
2394
- // Takes ownership of buzz.
2395
- MOCK_METHOD2(DoShareBuzz, bool(Buzz* buzz, Time timestamp));
2396
- bool ShareBuzz(std::unique_ptr<Buzz> buzz, Time timestamp) {
2397
- return DoShareBuzz(buzz.release(), timestamp);
2398
- }
2399
- };
2400
- ```
2401
-
2402
- Now, the mock `DoShareBuzz()` method is free to save the buzz argument for later use if this is what you want:
2403
-
2404
- ```
2405
- std::unique_ptr<Buzz> intercepted_buzz;
2406
- EXPECT_CALL(mock_buzzer_, DoShareBuzz(NotNull(), _))
2407
- .WillOnce(Invoke([&amp;intercepted_buzz](Buzz* buzz, Time timestamp) {
2408
- // Save buzz in intercepted_buzz for analysis later.
2409
- intercepted_buzz.reset(buzz);
2410
- return false;
2411
- }));
2412
-
2413
- mock_buzzer_.ShareBuzz(std::make_unique<Buzz>(AccessLevel::kInternal),
2414
- Now());
2415
- EXPECT_NE(nullptr, intercepted_buzz);
2416
- ```
2417
-
2418
- Using the tricks covered in this recipe, you are now able to mock methods that take and/or return move-only types. Put your newly-acquired power to good use - when you design a new API, you can now feel comfortable using `unique_ptrs` as appropriate, without fearing that doing so will compromise your tests.
2419
-
2420
- ## Making the Compilation Faster ##
2421
-
2422
- Believe it or not, the _vast majority_ of the time spent on compiling
2423
- a mock class is in generating its constructor and destructor, as they
2424
- perform non-trivial tasks (e.g. verification of the
2425
- expectations). What's more, mock methods with different signatures
2426
- have different types and thus their constructors/destructors need to
2427
- be generated by the compiler separately. As a result, if you mock many
2428
- different types of methods, compiling your mock class can get really
2429
- slow.
2430
-
2431
- If you are experiencing slow compilation, you can move the definition
2432
- of your mock class' constructor and destructor out of the class body
2433
- and into a `.cpp` file. This way, even if you `#include` your mock
2434
- class in N files, the compiler only needs to generate its constructor
2435
- and destructor once, resulting in a much faster compilation.
2436
-
2437
- Let's illustrate the idea using an example. Here's the definition of a
2438
- mock class before applying this recipe:
2439
-
2440
- ```
2441
- // File mock_foo.h.
2442
- ...
2443
- class MockFoo : public Foo {
2444
- public:
2445
- // Since we don't declare the constructor or the destructor,
2446
- // the compiler will generate them in every translation unit
2447
- // where this mock class is used.
2448
-
2449
- MOCK_METHOD0(DoThis, int());
2450
- MOCK_METHOD1(DoThat, bool(const char* str));
2451
- ... more mock methods ...
2452
- };
2453
- ```
2454
-
2455
- After the change, it would look like:
2456
-
2457
- ```
2458
- // File mock_foo.h.
2459
- ...
2460
- class MockFoo : public Foo {
2461
- public:
2462
- // The constructor and destructor are declared, but not defined, here.
2463
- MockFoo();
2464
- virtual ~MockFoo();
2465
-
2466
- MOCK_METHOD0(DoThis, int());
2467
- MOCK_METHOD1(DoThat, bool(const char* str));
2468
- ... more mock methods ...
2469
- };
2470
- ```
2471
- and
2472
- ```
2473
- // File mock_foo.cpp.
2474
- #include "path/to/mock_foo.h"
2475
-
2476
- // The definitions may appear trivial, but the functions actually do a
2477
- // lot of things through the constructors/destructors of the member
2478
- // variables used to implement the mock methods.
2479
- MockFoo::MockFoo() {}
2480
- MockFoo::~MockFoo() {}
2481
- ```
2482
-
2483
- ## Forcing a Verification ##
2484
-
2485
- When it's being destoyed, your friendly mock object will automatically
2486
- verify that all expectations on it have been satisfied, and will
2487
- generate [Google Test](../../googletest/) failures
2488
- if not. This is convenient as it leaves you with one less thing to
2489
- worry about. That is, unless you are not sure if your mock object will
2490
- be destoyed.
2491
-
2492
- How could it be that your mock object won't eventually be destroyed?
2493
- Well, it might be created on the heap and owned by the code you are
2494
- testing. Suppose there's a bug in that code and it doesn't delete the
2495
- mock object properly - you could end up with a passing test when
2496
- there's actually a bug.
2497
-
2498
- Using a heap checker is a good idea and can alleviate the concern, but
2499
- its implementation may not be 100% reliable. So, sometimes you do want
2500
- to _force_ Google Mock to verify a mock object before it is
2501
- (hopefully) destructed. You can do this with
2502
- `Mock::VerifyAndClearExpectations(&mock_object)`:
2503
-
2504
- ```
2505
- TEST(MyServerTest, ProcessesRequest) {
2506
- using ::testing::Mock;
2507
-
2508
- MockFoo* const foo = new MockFoo;
2509
- EXPECT_CALL(*foo, ...)...;
2510
- // ... other expectations ...
2511
-
2512
- // server now owns foo.
2513
- MyServer server(foo);
2514
- server.ProcessRequest(...);
2515
-
2516
- // In case that server's destructor will forget to delete foo,
2517
- // this will verify the expectations anyway.
2518
- Mock::VerifyAndClearExpectations(foo);
2519
- } // server is destroyed when it goes out of scope here.
2520
- ```
2521
-
2522
- **Tip:** The `Mock::VerifyAndClearExpectations()` function returns a
2523
- `bool` to indicate whether the verification was successful (`true` for
2524
- yes), so you can wrap that function call inside a `ASSERT_TRUE()` if
2525
- there is no point going further when the verification has failed.
2526
-
2527
- ## Using Check Points ##
2528
-
2529
- Sometimes you may want to "reset" a mock object at various check
2530
- points in your test: at each check point, you verify that all existing
2531
- expectations on the mock object have been satisfied, and then you set
2532
- some new expectations on it as if it's newly created. This allows you
2533
- to work with a mock object in "phases" whose sizes are each
2534
- manageable.
2535
-
2536
- One such scenario is that in your test's `SetUp()` function, you may
2537
- want to put the object you are testing into a certain state, with the
2538
- help from a mock object. Once in the desired state, you want to clear
2539
- all expectations on the mock, such that in the `TEST_F` body you can
2540
- set fresh expectations on it.
2541
-
2542
- As you may have figured out, the `Mock::VerifyAndClearExpectations()`
2543
- function we saw in the previous recipe can help you here. Or, if you
2544
- are using `ON_CALL()` to set default actions on the mock object and
2545
- want to clear the default actions as well, use
2546
- `Mock::VerifyAndClear(&mock_object)` instead. This function does what
2547
- `Mock::VerifyAndClearExpectations(&mock_object)` does and returns the
2548
- same `bool`, **plus** it clears the `ON_CALL()` statements on
2549
- `mock_object` too.
2550
-
2551
- Another trick you can use to achieve the same effect is to put the
2552
- expectations in sequences and insert calls to a dummy "check-point"
2553
- function at specific places. Then you can verify that the mock
2554
- function calls do happen at the right time. For example, if you are
2555
- exercising code:
2556
-
2557
- ```
2558
- Foo(1);
2559
- Foo(2);
2560
- Foo(3);
2561
- ```
2562
-
2563
- and want to verify that `Foo(1)` and `Foo(3)` both invoke
2564
- `mock.Bar("a")`, but `Foo(2)` doesn't invoke anything. You can write:
2565
-
2566
- ```
2567
- using ::testing::MockFunction;
2568
-
2569
- TEST(FooTest, InvokesBarCorrectly) {
2570
- MyMock mock;
2571
- // Class MockFunction<F> has exactly one mock method. It is named
2572
- // Call() and has type F.
2573
- MockFunction<void(string check_point_name)> check;
2574
- {
2575
- InSequence s;
2576
-
2577
- EXPECT_CALL(mock, Bar("a"));
2578
- EXPECT_CALL(check, Call("1"));
2579
- EXPECT_CALL(check, Call("2"));
2580
- EXPECT_CALL(mock, Bar("a"));
2581
- }
2582
- Foo(1);
2583
- check.Call("1");
2584
- Foo(2);
2585
- check.Call("2");
2586
- Foo(3);
2587
- }
2588
- ```
2589
-
2590
- The expectation spec says that the first `Bar("a")` must happen before
2591
- check point "1", the second `Bar("a")` must happen after check point "2",
2592
- and nothing should happen between the two check points. The explicit
2593
- check points make it easy to tell which `Bar("a")` is called by which
2594
- call to `Foo()`.
2595
-
2596
- ## Mocking Destructors ##
2597
-
2598
- Sometimes you want to make sure a mock object is destructed at the
2599
- right time, e.g. after `bar->A()` is called but before `bar->B()` is
2600
- called. We already know that you can specify constraints on the order
2601
- of mock function calls, so all we need to do is to mock the destructor
2602
- of the mock function.
2603
-
2604
- This sounds simple, except for one problem: a destructor is a special
2605
- function with special syntax and special semantics, and the
2606
- `MOCK_METHOD0` macro doesn't work for it:
2607
-
2608
- ```
2609
- MOCK_METHOD0(~MockFoo, void()); // Won't compile!
2610
- ```
2611
-
2612
- The good news is that you can use a simple pattern to achieve the same
2613
- effect. First, add a mock function `Die()` to your mock class and call
2614
- it in the destructor, like this:
2615
-
2616
- ```
2617
- class MockFoo : public Foo {
2618
- ...
2619
- // Add the following two lines to the mock class.
2620
- MOCK_METHOD0(Die, void());
2621
- virtual ~MockFoo() { Die(); }
2622
- };
2623
- ```
2624
-
2625
- (If the name `Die()` clashes with an existing symbol, choose another
2626
- name.) Now, we have translated the problem of testing when a `MockFoo`
2627
- object dies to testing when its `Die()` method is called:
2628
-
2629
- ```
2630
- MockFoo* foo = new MockFoo;
2631
- MockBar* bar = new MockBar;
2632
- ...
2633
- {
2634
- InSequence s;
2635
-
2636
- // Expects *foo to die after bar->A() and before bar->B().
2637
- EXPECT_CALL(*bar, A());
2638
- EXPECT_CALL(*foo, Die());
2639
- EXPECT_CALL(*bar, B());
2640
- }
2641
- ```
2642
-
2643
- And that's that.
2644
-
2645
- ## Using Google Mock and Threads ##
2646
-
2647
- **IMPORTANT NOTE:** What we describe in this recipe is **ONLY** true on
2648
- platforms where Google Mock is thread-safe. Currently these are only
2649
- platforms that support the pthreads library (this includes Linux and Mac).
2650
- To make it thread-safe on other platforms we only need to implement
2651
- some synchronization operations in `"gtest/internal/gtest-port.h"`.
2652
-
2653
- In a **unit** test, it's best if you could isolate and test a piece of
2654
- code in a single-threaded context. That avoids race conditions and
2655
- dead locks, and makes debugging your test much easier.
2656
-
2657
- Yet many programs are multi-threaded, and sometimes to test something
2658
- we need to pound on it from more than one thread. Google Mock works
2659
- for this purpose too.
2660
-
2661
- Remember the steps for using a mock:
2662
-
2663
- 1. Create a mock object `foo`.
2664
- 1. Set its default actions and expectations using `ON_CALL()` and `EXPECT_CALL()`.
2665
- 1. The code under test calls methods of `foo`.
2666
- 1. Optionally, verify and reset the mock.
2667
- 1. Destroy the mock yourself, or let the code under test destroy it. The destructor will automatically verify it.
2668
-
2669
- If you follow the following simple rules, your mocks and threads can
2670
- live happily together:
2671
-
2672
- * Execute your _test code_ (as opposed to the code being tested) in _one_ thread. This makes your test easy to follow.
2673
- * Obviously, you can do step #1 without locking.
2674
- * When doing step #2 and #5, make sure no other thread is accessing `foo`. Obvious too, huh?
2675
- * #3 and #4 can be done either in one thread or in multiple threads - anyway you want. Google Mock takes care of the locking, so you don't have to do any - unless required by your test logic.
2676
-
2677
- If you violate the rules (for example, if you set expectations on a
2678
- mock while another thread is calling its methods), you get undefined
2679
- behavior. That's not fun, so don't do it.
2680
-
2681
- Google Mock guarantees that the action for a mock function is done in
2682
- the same thread that called the mock function. For example, in
2683
-
2684
- ```
2685
- EXPECT_CALL(mock, Foo(1))
2686
- .WillOnce(action1);
2687
- EXPECT_CALL(mock, Foo(2))
2688
- .WillOnce(action2);
2689
- ```
2690
-
2691
- if `Foo(1)` is called in thread 1 and `Foo(2)` is called in thread 2,
2692
- Google Mock will execute `action1` in thread 1 and `action2` in thread
2693
- 2.
2694
-
2695
- Google Mock does _not_ impose a sequence on actions performed in
2696
- different threads (doing so may create deadlocks as the actions may
2697
- need to cooperate). This means that the execution of `action1` and
2698
- `action2` in the above example _may_ interleave. If this is a problem,
2699
- you should add proper synchronization logic to `action1` and `action2`
2700
- to make the test thread-safe.
2701
-
2702
-
2703
- Also, remember that `DefaultValue<T>` is a global resource that
2704
- potentially affects _all_ living mock objects in your
2705
- program. Naturally, you won't want to mess with it from multiple
2706
- threads or when there still are mocks in action.
2707
-
2708
- ## Controlling How Much Information Google Mock Prints ##
2709
-
2710
- When Google Mock sees something that has the potential of being an
2711
- error (e.g. a mock function with no expectation is called, a.k.a. an
2712
- uninteresting call, which is allowed but perhaps you forgot to
2713
- explicitly ban the call), it prints some warning messages, including
2714
- the arguments of the function and the return value. Hopefully this
2715
- will remind you to take a look and see if there is indeed a problem.
2716
-
2717
- Sometimes you are confident that your tests are correct and may not
2718
- appreciate such friendly messages. Some other times, you are debugging
2719
- your tests or learning about the behavior of the code you are testing,
2720
- and wish you could observe every mock call that happens (including
2721
- argument values and the return value). Clearly, one size doesn't fit
2722
- all.
2723
-
2724
- You can control how much Google Mock tells you using the
2725
- `--gmock_verbose=LEVEL` command-line flag, where `LEVEL` is a string
2726
- with three possible values:
2727
-
2728
- * `info`: Google Mock will print all informational messages, warnings, and errors (most verbose). At this setting, Google Mock will also log any calls to the `ON_CALL/EXPECT_CALL` macros.
2729
- * `warning`: Google Mock will print both warnings and errors (less verbose). This is the default.
2730
- * `error`: Google Mock will print errors only (least verbose).
2731
-
2732
- Alternatively, you can adjust the value of that flag from within your
2733
- tests like so:
2734
-
2735
- ```
2736
- ::testing::FLAGS_gmock_verbose = "error";
2737
- ```
2738
-
2739
- Now, judiciously use the right flag to enable Google Mock serve you better!
2740
-
2741
- ## Gaining Super Vision into Mock Calls ##
2742
-
2743
- You have a test using Google Mock. It fails: Google Mock tells you
2744
- that some expectations aren't satisfied. However, you aren't sure why:
2745
- Is there a typo somewhere in the matchers? Did you mess up the order
2746
- of the `EXPECT_CALL`s? Or is the code under test doing something
2747
- wrong? How can you find out the cause?
2748
-
2749
- Won't it be nice if you have X-ray vision and can actually see the
2750
- trace of all `EXPECT_CALL`s and mock method calls as they are made?
2751
- For each call, would you like to see its actual argument values and
2752
- which `EXPECT_CALL` Google Mock thinks it matches?
2753
-
2754
- You can unlock this power by running your test with the
2755
- `--gmock_verbose=info` flag. For example, given the test program:
2756
-
2757
- ```
2758
- using testing::_;
2759
- using testing::HasSubstr;
2760
- using testing::Return;
2761
-
2762
- class MockFoo {
2763
- public:
2764
- MOCK_METHOD2(F, void(const string& x, const string& y));
2765
- };
2766
-
2767
- TEST(Foo, Bar) {
2768
- MockFoo mock;
2769
- EXPECT_CALL(mock, F(_, _)).WillRepeatedly(Return());
2770
- EXPECT_CALL(mock, F("a", "b"));
2771
- EXPECT_CALL(mock, F("c", HasSubstr("d")));
2772
-
2773
- mock.F("a", "good");
2774
- mock.F("a", "b");
2775
- }
2776
- ```
2777
-
2778
- if you run it with `--gmock_verbose=info`, you will see this output:
2779
-
2780
- ```
2781
- [ RUN ] Foo.Bar
2782
-
2783
- foo_test.cc:14: EXPECT_CALL(mock, F(_, _)) invoked
2784
- foo_test.cc:15: EXPECT_CALL(mock, F("a", "b")) invoked
2785
- foo_test.cc:16: EXPECT_CALL(mock, F("c", HasSubstr("d"))) invoked
2786
- foo_test.cc:14: Mock function call matches EXPECT_CALL(mock, F(_, _))...
2787
- Function call: F(@0x7fff7c8dad40"a", @0x7fff7c8dad10"good")
2788
- foo_test.cc:15: Mock function call matches EXPECT_CALL(mock, F("a", "b"))...
2789
- Function call: F(@0x7fff7c8dada0"a", @0x7fff7c8dad70"b")
2790
- foo_test.cc:16: Failure
2791
- Actual function call count doesn't match EXPECT_CALL(mock, F("c", HasSubstr("d")))...
2792
- Expected: to be called once
2793
- Actual: never called - unsatisfied and active
2794
- [ FAILED ] Foo.Bar
2795
- ```
2796
-
2797
- Suppose the bug is that the `"c"` in the third `EXPECT_CALL` is a typo
2798
- and should actually be `"a"`. With the above message, you should see
2799
- that the actual `F("a", "good")` call is matched by the first
2800
- `EXPECT_CALL`, not the third as you thought. From that it should be
2801
- obvious that the third `EXPECT_CALL` is written wrong. Case solved.
2802
-
2803
- ## Running Tests in Emacs ##
2804
-
2805
- If you build and run your tests in Emacs, the source file locations of
2806
- Google Mock and [Google Test](../../googletest/)
2807
- errors will be highlighted. Just press `<Enter>` on one of them and
2808
- you'll be taken to the offending line. Or, you can just type `C-x ``
2809
- to jump to the next error.
2810
-
2811
- To make it even easier, you can add the following lines to your
2812
- `~/.emacs` file:
2813
-
2814
- ```
2815
- (global-set-key "\M-m" 'compile) ; m is for make
2816
- (global-set-key [M-down] 'next-error)
2817
- (global-set-key [M-up] '(lambda () (interactive) (next-error -1)))
2818
- ```
2819
-
2820
- Then you can type `M-m` to start a build, or `M-up`/`M-down` to move
2821
- back and forth between errors.
2822
-
2823
- ## Fusing Google Mock Source Files ##
2824
-
2825
- Google Mock's implementation consists of dozens of files (excluding
2826
- its own tests). Sometimes you may want them to be packaged up in
2827
- fewer files instead, such that you can easily copy them to a new
2828
- machine and start hacking there. For this we provide an experimental
2829
- Python script `fuse_gmock_files.py` in the `scripts/` directory
2830
- (starting with release 1.2.0). Assuming you have Python 2.4 or above
2831
- installed on your machine, just go to that directory and run
2832
- ```
2833
- python fuse_gmock_files.py OUTPUT_DIR
2834
- ```
2835
-
2836
- and you should see an `OUTPUT_DIR` directory being created with files
2837
- `gtest/gtest.h`, `gmock/gmock.h`, and `gmock-gtest-all.cc` in it.
2838
- These three files contain everything you need to use Google Mock (and
2839
- Google Test). Just copy them to anywhere you want and you are ready
2840
- to write tests and use mocks. You can use the
2841
- [scrpts/test/Makefile](../scripts/test/Makefile) file as an example on how to compile your tests
2842
- against them.
2843
-
2844
- # Extending Google Mock #
2845
-
2846
- ## Writing New Matchers Quickly ##
2847
-
2848
- The `MATCHER*` family of macros can be used to define custom matchers
2849
- easily. The syntax:
2850
-
2851
- ```
2852
- MATCHER(name, description_string_expression) { statements; }
2853
- ```
2854
-
2855
- will define a matcher with the given name that executes the
2856
- statements, which must return a `bool` to indicate if the match
2857
- succeeds. Inside the statements, you can refer to the value being
2858
- matched by `arg`, and refer to its type by `arg_type`.
2859
-
2860
- The description string is a `string`-typed expression that documents
2861
- what the matcher does, and is used to generate the failure message
2862
- when the match fails. It can (and should) reference the special
2863
- `bool` variable `negation`, and should evaluate to the description of
2864
- the matcher when `negation` is `false`, or that of the matcher's
2865
- negation when `negation` is `true`.
2866
-
2867
- For convenience, we allow the description string to be empty (`""`),
2868
- in which case Google Mock will use the sequence of words in the
2869
- matcher name as the description.
2870
-
2871
- For example:
2872
- ```
2873
- MATCHER(IsDivisibleBy7, "") { return (arg % 7) == 0; }
2874
- ```
2875
- allows you to write
2876
- ```
2877
- // Expects mock_foo.Bar(n) to be called where n is divisible by 7.
2878
- EXPECT_CALL(mock_foo, Bar(IsDivisibleBy7()));
2879
- ```
2880
- or,
2881
- ```
2882
- using ::testing::Not;
2883
- ...
2884
- EXPECT_THAT(some_expression, IsDivisibleBy7());
2885
- EXPECT_THAT(some_other_expression, Not(IsDivisibleBy7()));
2886
- ```
2887
- If the above assertions fail, they will print something like:
2888
- ```
2889
- Value of: some_expression
2890
- Expected: is divisible by 7
2891
- Actual: 27
2892
- ...
2893
- Value of: some_other_expression
2894
- Expected: not (is divisible by 7)
2895
- Actual: 21
2896
- ```
2897
- where the descriptions `"is divisible by 7"` and `"not (is divisible
2898
- by 7)"` are automatically calculated from the matcher name
2899
- `IsDivisibleBy7`.
2900
-
2901
- As you may have noticed, the auto-generated descriptions (especially
2902
- those for the negation) may not be so great. You can always override
2903
- them with a string expression of your own:
2904
- ```
2905
- MATCHER(IsDivisibleBy7, std::string(negation ? "isn't" : "is") +
2906
- " divisible by 7") {
2907
- return (arg % 7) == 0;
2908
- }
2909
- ```
2910
-
2911
- Optionally, you can stream additional information to a hidden argument
2912
- named `result_listener` to explain the match result. For example, a
2913
- better definition of `IsDivisibleBy7` is:
2914
- ```
2915
- MATCHER(IsDivisibleBy7, "") {
2916
- if ((arg % 7) == 0)
2917
- return true;
2918
-
2919
- *result_listener << "the remainder is " << (arg % 7);
2920
- return false;
2921
- }
2922
- ```
2923
-
2924
- With this definition, the above assertion will give a better message:
2925
- ```
2926
- Value of: some_expression
2927
- Expected: is divisible by 7
2928
- Actual: 27 (the remainder is 6)
2929
- ```
2930
-
2931
- You should let `MatchAndExplain()` print _any additional information_
2932
- that can help a user understand the match result. Note that it should
2933
- explain why the match succeeds in case of a success (unless it's
2934
- obvious) - this is useful when the matcher is used inside
2935
- `Not()`. There is no need to print the argument value itself, as
2936
- Google Mock already prints it for you.
2937
-
2938
- **Notes:**
2939
-
2940
- 1. The type of the value being matched (`arg_type`) is determined by the context in which you use the matcher and is supplied to you by the compiler, so you don't need to worry about declaring it (nor can you). This allows the matcher to be polymorphic. For example, `IsDivisibleBy7()` can be used to match any type where the value of `(arg % 7) == 0` can be implicitly converted to a `bool`. In the `Bar(IsDivisibleBy7())` example above, if method `Bar()` takes an `int`, `arg_type` will be `int`; if it takes an `unsigned long`, `arg_type` will be `unsigned long`; and so on.
2941
- 1. Google Mock doesn't guarantee when or how many times a matcher will be invoked. Therefore the matcher logic must be _purely functional_ (i.e. it cannot have any side effect, and the result must not depend on anything other than the value being matched and the matcher parameters). This requirement must be satisfied no matter how you define the matcher (e.g. using one of the methods described in the following recipes). In particular, a matcher can never call a mock function, as that will affect the state of the mock object and Google Mock.
2942
-
2943
- ## Writing New Parameterized Matchers Quickly ##
2944
-
2945
- Sometimes you'll want to define a matcher that has parameters. For that you
2946
- can use the macro:
2947
- ```
2948
- MATCHER_P(name, param_name, description_string) { statements; }
2949
- ```
2950
- where the description string can be either `""` or a string expression
2951
- that references `negation` and `param_name`.
2952
-
2953
- For example:
2954
- ```
2955
- MATCHER_P(HasAbsoluteValue, value, "") { return abs(arg) == value; }
2956
- ```
2957
- will allow you to write:
2958
- ```
2959
- EXPECT_THAT(Blah("a"), HasAbsoluteValue(n));
2960
- ```
2961
- which may lead to this message (assuming `n` is 10):
2962
- ```
2963
- Value of: Blah("a")
2964
- Expected: has absolute value 10
2965
- Actual: -9
2966
- ```
2967
-
2968
- Note that both the matcher description and its parameter are
2969
- printed, making the message human-friendly.
2970
-
2971
- In the matcher definition body, you can write `foo_type` to
2972
- reference the type of a parameter named `foo`. For example, in the
2973
- body of `MATCHER_P(HasAbsoluteValue, value)` above, you can write
2974
- `value_type` to refer to the type of `value`.
2975
-
2976
- Google Mock also provides `MATCHER_P2`, `MATCHER_P3`, ..., up to
2977
- `MATCHER_P10` to support multi-parameter matchers:
2978
- ```
2979
- MATCHER_Pk(name, param_1, ..., param_k, description_string) { statements; }
2980
- ```
2981
-
2982
- Please note that the custom description string is for a particular
2983
- **instance** of the matcher, where the parameters have been bound to
2984
- actual values. Therefore usually you'll want the parameter values to
2985
- be part of the description. Google Mock lets you do that by
2986
- referencing the matcher parameters in the description string
2987
- expression.
2988
-
2989
- For example,
2990
- ```
2991
- using ::testing::PrintToString;
2992
- MATCHER_P2(InClosedRange, low, hi,
2993
- std::string(negation ? "isn't" : "is") + " in range [" +
2994
- PrintToString(low) + ", " + PrintToString(hi) + "]") {
2995
- return low <= arg && arg <= hi;
2996
- }
2997
- ...
2998
- EXPECT_THAT(3, InClosedRange(4, 6));
2999
- ```
3000
- would generate a failure that contains the message:
3001
- ```
3002
- Expected: is in range [4, 6]
3003
- ```
3004
-
3005
- If you specify `""` as the description, the failure message will
3006
- contain the sequence of words in the matcher name followed by the
3007
- parameter values printed as a tuple. For example,
3008
- ```
3009
- MATCHER_P2(InClosedRange, low, hi, "") { ... }
3010
- ...
3011
- EXPECT_THAT(3, InClosedRange(4, 6));
3012
- ```
3013
- would generate a failure that contains the text:
3014
- ```
3015
- Expected: in closed range (4, 6)
3016
- ```
3017
-
3018
- For the purpose of typing, you can view
3019
- ```
3020
- MATCHER_Pk(Foo, p1, ..., pk, description_string) { ... }
3021
- ```
3022
- as shorthand for
3023
- ```
3024
- template <typename p1_type, ..., typename pk_type>
3025
- FooMatcherPk<p1_type, ..., pk_type>
3026
- Foo(p1_type p1, ..., pk_type pk) { ... }
3027
- ```
3028
-
3029
- When you write `Foo(v1, ..., vk)`, the compiler infers the types of
3030
- the parameters `v1`, ..., and `vk` for you. If you are not happy with
3031
- the result of the type inference, you can specify the types by
3032
- explicitly instantiating the template, as in `Foo<long, bool>(5, false)`.
3033
- As said earlier, you don't get to (or need to) specify
3034
- `arg_type` as that's determined by the context in which the matcher
3035
- is used.
3036
-
3037
- You can assign the result of expression `Foo(p1, ..., pk)` to a
3038
- variable of type `FooMatcherPk<p1_type, ..., pk_type>`. This can be
3039
- useful when composing matchers. Matchers that don't have a parameter
3040
- or have only one parameter have special types: you can assign `Foo()`
3041
- to a `FooMatcher`-typed variable, and assign `Foo(p)` to a
3042
- `FooMatcherP<p_type>`-typed variable.
3043
-
3044
- While you can instantiate a matcher template with reference types,
3045
- passing the parameters by pointer usually makes your code more
3046
- readable. If, however, you still want to pass a parameter by
3047
- reference, be aware that in the failure message generated by the
3048
- matcher you will see the value of the referenced object but not its
3049
- address.
3050
-
3051
- You can overload matchers with different numbers of parameters:
3052
- ```
3053
- MATCHER_P(Blah, a, description_string_1) { ... }
3054
- MATCHER_P2(Blah, a, b, description_string_2) { ... }
3055
- ```
3056
-
3057
- While it's tempting to always use the `MATCHER*` macros when defining
3058
- a new matcher, you should also consider implementing
3059
- `MatcherInterface` or using `MakePolymorphicMatcher()` instead (see
3060
- the recipes that follow), especially if you need to use the matcher a
3061
- lot. While these approaches require more work, they give you more
3062
- control on the types of the value being matched and the matcher
3063
- parameters, which in general leads to better compiler error messages
3064
- that pay off in the long run. They also allow overloading matchers
3065
- based on parameter types (as opposed to just based on the number of
3066
- parameters).
3067
-
3068
- ## Writing New Monomorphic Matchers ##
3069
-
3070
- A matcher of argument type `T` implements
3071
- `::testing::MatcherInterface<T>` and does two things: it tests whether a
3072
- value of type `T` matches the matcher, and can describe what kind of
3073
- values it matches. The latter ability is used for generating readable
3074
- error messages when expectations are violated.
3075
-
3076
- The interface looks like this:
3077
-
3078
- ```
3079
- class MatchResultListener {
3080
- public:
3081
- ...
3082
- // Streams x to the underlying ostream; does nothing if the ostream
3083
- // is NULL.
3084
- template <typename T>
3085
- MatchResultListener& operator<<(const T& x);
3086
-
3087
- // Returns the underlying ostream.
3088
- ::std::ostream* stream();
3089
- };
3090
-
3091
- template <typename T>
3092
- class MatcherInterface {
3093
- public:
3094
- virtual ~MatcherInterface();
3095
-
3096
- // Returns true iff the matcher matches x; also explains the match
3097
- // result to 'listener'.
3098
- virtual bool MatchAndExplain(T x, MatchResultListener* listener) const = 0;
3099
-
3100
- // Describes this matcher to an ostream.
3101
- virtual void DescribeTo(::std::ostream* os) const = 0;
3102
-
3103
- // Describes the negation of this matcher to an ostream.
3104
- virtual void DescribeNegationTo(::std::ostream* os) const;
3105
- };
3106
- ```
3107
-
3108
- If you need a custom matcher but `Truly()` is not a good option (for
3109
- example, you may not be happy with the way `Truly(predicate)`
3110
- describes itself, or you may want your matcher to be polymorphic as
3111
- `Eq(value)` is), you can define a matcher to do whatever you want in
3112
- two steps: first implement the matcher interface, and then define a
3113
- factory function to create a matcher instance. The second step is not
3114
- strictly needed but it makes the syntax of using the matcher nicer.
3115
-
3116
- For example, you can define a matcher to test whether an `int` is
3117
- divisible by 7 and then use it like this:
3118
- ```
3119
- using ::testing::MakeMatcher;
3120
- using ::testing::Matcher;
3121
- using ::testing::MatcherInterface;
3122
- using ::testing::MatchResultListener;
3123
-
3124
- class DivisibleBy7Matcher : public MatcherInterface<int> {
3125
- public:
3126
- virtual bool MatchAndExplain(int n, MatchResultListener* listener) const {
3127
- return (n % 7) == 0;
3128
- }
3129
-
3130
- virtual void DescribeTo(::std::ostream* os) const {
3131
- *os << "is divisible by 7";
3132
- }
3133
-
3134
- virtual void DescribeNegationTo(::std::ostream* os) const {
3135
- *os << "is not divisible by 7";
3136
- }
3137
- };
3138
-
3139
- inline Matcher<int> DivisibleBy7() {
3140
- return MakeMatcher(new DivisibleBy7Matcher);
3141
- }
3142
- ...
3143
-
3144
- EXPECT_CALL(foo, Bar(DivisibleBy7()));
3145
- ```
3146
-
3147
- You may improve the matcher message by streaming additional
3148
- information to the `listener` argument in `MatchAndExplain()`:
3149
-
3150
- ```
3151
- class DivisibleBy7Matcher : public MatcherInterface<int> {
3152
- public:
3153
- virtual bool MatchAndExplain(int n,
3154
- MatchResultListener* listener) const {
3155
- const int remainder = n % 7;
3156
- if (remainder != 0) {
3157
- *listener << "the remainder is " << remainder;
3158
- }
3159
- return remainder == 0;
3160
- }
3161
- ...
3162
- };
3163
- ```
3164
-
3165
- Then, `EXPECT_THAT(x, DivisibleBy7());` may general a message like this:
3166
- ```
3167
- Value of: x
3168
- Expected: is divisible by 7
3169
- Actual: 23 (the remainder is 2)
3170
- ```
3171
-
3172
- ## Writing New Polymorphic Matchers ##
3173
-
3174
- You've learned how to write your own matchers in the previous
3175
- recipe. Just one problem: a matcher created using `MakeMatcher()` only
3176
- works for one particular type of arguments. If you want a
3177
- _polymorphic_ matcher that works with arguments of several types (for
3178
- instance, `Eq(x)` can be used to match a `value` as long as `value` ==
3179
- `x` compiles -- `value` and `x` don't have to share the same type),
3180
- you can learn the trick from `"gmock/gmock-matchers.h"` but it's a bit
3181
- involved.
3182
-
3183
- Fortunately, most of the time you can define a polymorphic matcher
3184
- easily with the help of `MakePolymorphicMatcher()`. Here's how you can
3185
- define `NotNull()` as an example:
3186
-
3187
- ```
3188
- using ::testing::MakePolymorphicMatcher;
3189
- using ::testing::MatchResultListener;
3190
- using ::testing::NotNull;
3191
- using ::testing::PolymorphicMatcher;
3192
-
3193
- class NotNullMatcher {
3194
- public:
3195
- // To implement a polymorphic matcher, first define a COPYABLE class
3196
- // that has three members MatchAndExplain(), DescribeTo(), and
3197
- // DescribeNegationTo(), like the following.
3198
-
3199
- // In this example, we want to use NotNull() with any pointer, so
3200
- // MatchAndExplain() accepts a pointer of any type as its first argument.
3201
- // In general, you can define MatchAndExplain() as an ordinary method or
3202
- // a method template, or even overload it.
3203
- template <typename T>
3204
- bool MatchAndExplain(T* p,
3205
- MatchResultListener* /* listener */) const {
3206
- return p != NULL;
3207
- }
3208
-
3209
- // Describes the property of a value matching this matcher.
3210
- void DescribeTo(::std::ostream* os) const { *os << "is not NULL"; }
3211
-
3212
- // Describes the property of a value NOT matching this matcher.
3213
- void DescribeNegationTo(::std::ostream* os) const { *os << "is NULL"; }
3214
- };
3215
-
3216
- // To construct a polymorphic matcher, pass an instance of the class
3217
- // to MakePolymorphicMatcher(). Note the return type.
3218
- inline PolymorphicMatcher<NotNullMatcher> NotNull() {
3219
- return MakePolymorphicMatcher(NotNullMatcher());
3220
- }
3221
- ...
3222
-
3223
- EXPECT_CALL(foo, Bar(NotNull())); // The argument must be a non-NULL pointer.
3224
- ```
3225
-
3226
- **Note:** Your polymorphic matcher class does **not** need to inherit from
3227
- `MatcherInterface` or any other class, and its methods do **not** need
3228
- to be virtual.
3229
-
3230
- Like in a monomorphic matcher, you may explain the match result by
3231
- streaming additional information to the `listener` argument in
3232
- `MatchAndExplain()`.
3233
-
3234
- ## Writing New Cardinalities ##
3235
-
3236
- A cardinality is used in `Times()` to tell Google Mock how many times
3237
- you expect a call to occur. It doesn't have to be exact. For example,
3238
- you can say `AtLeast(5)` or `Between(2, 4)`.
3239
-
3240
- If the built-in set of cardinalities doesn't suit you, you are free to
3241
- define your own by implementing the following interface (in namespace
3242
- `testing`):
3243
-
3244
- ```
3245
- class CardinalityInterface {
3246
- public:
3247
- virtual ~CardinalityInterface();
3248
-
3249
- // Returns true iff call_count calls will satisfy this cardinality.
3250
- virtual bool IsSatisfiedByCallCount(int call_count) const = 0;
3251
-
3252
- // Returns true iff call_count calls will saturate this cardinality.
3253
- virtual bool IsSaturatedByCallCount(int call_count) const = 0;
3254
-
3255
- // Describes self to an ostream.
3256
- virtual void DescribeTo(::std::ostream* os) const = 0;
3257
- };
3258
- ```
3259
-
3260
- For example, to specify that a call must occur even number of times,
3261
- you can write
3262
-
3263
- ```
3264
- using ::testing::Cardinality;
3265
- using ::testing::CardinalityInterface;
3266
- using ::testing::MakeCardinality;
3267
-
3268
- class EvenNumberCardinality : public CardinalityInterface {
3269
- public:
3270
- virtual bool IsSatisfiedByCallCount(int call_count) const {
3271
- return (call_count % 2) == 0;
3272
- }
3273
-
3274
- virtual bool IsSaturatedByCallCount(int call_count) const {
3275
- return false;
3276
- }
3277
-
3278
- virtual void DescribeTo(::std::ostream* os) const {
3279
- *os << "called even number of times";
3280
- }
3281
- };
3282
-
3283
- Cardinality EvenNumber() {
3284
- return MakeCardinality(new EvenNumberCardinality);
3285
- }
3286
- ...
3287
-
3288
- EXPECT_CALL(foo, Bar(3))
3289
- .Times(EvenNumber());
3290
- ```
3291
-
3292
- ## Writing New Actions Quickly ##
3293
-
3294
- If the built-in actions don't work for you, and you find it
3295
- inconvenient to use `Invoke()`, you can use a macro from the `ACTION*`
3296
- family to quickly define a new action that can be used in your code as
3297
- if it's a built-in action.
3298
-
3299
- By writing
3300
- ```
3301
- ACTION(name) { statements; }
3302
- ```
3303
- in a namespace scope (i.e. not inside a class or function), you will
3304
- define an action with the given name that executes the statements.
3305
- The value returned by `statements` will be used as the return value of
3306
- the action. Inside the statements, you can refer to the K-th
3307
- (0-based) argument of the mock function as `argK`. For example:
3308
- ```
3309
- ACTION(IncrementArg1) { return ++(*arg1); }
3310
- ```
3311
- allows you to write
3312
- ```
3313
- ... WillOnce(IncrementArg1());
3314
- ```
3315
-
3316
- Note that you don't need to specify the types of the mock function
3317
- arguments. Rest assured that your code is type-safe though:
3318
- you'll get a compiler error if `*arg1` doesn't support the `++`
3319
- operator, or if the type of `++(*arg1)` isn't compatible with the mock
3320
- function's return type.
3321
-
3322
- Another example:
3323
- ```
3324
- ACTION(Foo) {
3325
- (*arg2)(5);
3326
- Blah();
3327
- *arg1 = 0;
3328
- return arg0;
3329
- }
3330
- ```
3331
- defines an action `Foo()` that invokes argument #2 (a function pointer)
3332
- with 5, calls function `Blah()`, sets the value pointed to by argument
3333
- #1 to 0, and returns argument #0.
3334
-
3335
- For more convenience and flexibility, you can also use the following
3336
- pre-defined symbols in the body of `ACTION`:
3337
-
3338
- | `argK_type` | The type of the K-th (0-based) argument of the mock function |
3339
- |:------------|:-------------------------------------------------------------|
3340
- | `args` | All arguments of the mock function as a tuple |
3341
- | `args_type` | The type of all arguments of the mock function as a tuple |
3342
- | `return_type` | The return type of the mock function |
3343
- | `function_type` | The type of the mock function |
3344
-
3345
- For example, when using an `ACTION` as a stub action for mock function:
3346
- ```
3347
- int DoSomething(bool flag, int* ptr);
3348
- ```
3349
- we have:
3350
- | **Pre-defined Symbol** | **Is Bound To** |
3351
- |:-----------------------|:----------------|
3352
- | `arg0` | the value of `flag` |
3353
- | `arg0_type` | the type `bool` |
3354
- | `arg1` | the value of `ptr` |
3355
- | `arg1_type` | the type `int*` |
3356
- | `args` | the tuple `(flag, ptr)` |
3357
- | `args_type` | the type `::testing::tuple<bool, int*>` |
3358
- | `return_type` | the type `int` |
3359
- | `function_type` | the type `int(bool, int*)` |
3360
-
3361
- ## Writing New Parameterized Actions Quickly ##
3362
-
3363
- Sometimes you'll want to parameterize an action you define. For that
3364
- we have another macro
3365
- ```
3366
- ACTION_P(name, param) { statements; }
3367
- ```
3368
-
3369
- For example,
3370
- ```
3371
- ACTION_P(Add, n) { return arg0 + n; }
3372
- ```
3373
- will allow you to write
3374
- ```
3375
- // Returns argument #0 + 5.
3376
- ... WillOnce(Add(5));
3377
- ```
3378
-
3379
- For convenience, we use the term _arguments_ for the values used to
3380
- invoke the mock function, and the term _parameters_ for the values
3381
- used to instantiate an action.
3382
-
3383
- Note that you don't need to provide the type of the parameter either.
3384
- Suppose the parameter is named `param`, you can also use the
3385
- Google-Mock-defined symbol `param_type` to refer to the type of the
3386
- parameter as inferred by the compiler. For example, in the body of
3387
- `ACTION_P(Add, n)` above, you can write `n_type` for the type of `n`.
3388
-
3389
- Google Mock also provides `ACTION_P2`, `ACTION_P3`, and etc to support
3390
- multi-parameter actions. For example,
3391
- ```
3392
- ACTION_P2(ReturnDistanceTo, x, y) {
3393
- double dx = arg0 - x;
3394
- double dy = arg1 - y;
3395
- return sqrt(dx*dx + dy*dy);
3396
- }
3397
- ```
3398
- lets you write
3399
- ```
3400
- ... WillOnce(ReturnDistanceTo(5.0, 26.5));
3401
- ```
3402
-
3403
- You can view `ACTION` as a degenerated parameterized action where the
3404
- number of parameters is 0.
3405
-
3406
- You can also easily define actions overloaded on the number of parameters:
3407
- ```
3408
- ACTION_P(Plus, a) { ... }
3409
- ACTION_P2(Plus, a, b) { ... }
3410
- ```
3411
-
3412
- ## Restricting the Type of an Argument or Parameter in an ACTION ##
3413
-
3414
- For maximum brevity and reusability, the `ACTION*` macros don't ask
3415
- you to provide the types of the mock function arguments and the action
3416
- parameters. Instead, we let the compiler infer the types for us.
3417
-
3418
- Sometimes, however, we may want to be more explicit about the types.
3419
- There are several tricks to do that. For example:
3420
- ```
3421
- ACTION(Foo) {
3422
- // Makes sure arg0 can be converted to int.
3423
- int n = arg0;
3424
- ... use n instead of arg0 here ...
3425
- }
3426
-
3427
- ACTION_P(Bar, param) {
3428
- // Makes sure the type of arg1 is const char*.
3429
- ::testing::StaticAssertTypeEq<const char*, arg1_type>();
3430
-
3431
- // Makes sure param can be converted to bool.
3432
- bool flag = param;
3433
- }
3434
- ```
3435
- where `StaticAssertTypeEq` is a compile-time assertion in Google Test
3436
- that verifies two types are the same.
3437
-
3438
- ## Writing New Action Templates Quickly ##
3439
-
3440
- Sometimes you want to give an action explicit template parameters that
3441
- cannot be inferred from its value parameters. `ACTION_TEMPLATE()`
3442
- supports that and can be viewed as an extension to `ACTION()` and
3443
- `ACTION_P*()`.
3444
-
3445
- The syntax:
3446
- ```
3447
- ACTION_TEMPLATE(ActionName,
3448
- HAS_m_TEMPLATE_PARAMS(kind1, name1, ..., kind_m, name_m),
3449
- AND_n_VALUE_PARAMS(p1, ..., p_n)) { statements; }
3450
- ```
3451
-
3452
- defines an action template that takes _m_ explicit template parameters
3453
- and _n_ value parameters, where _m_ is between 1 and 10, and _n_ is
3454
- between 0 and 10. `name_i` is the name of the i-th template
3455
- parameter, and `kind_i` specifies whether it's a `typename`, an
3456
- integral constant, or a template. `p_i` is the name of the i-th value
3457
- parameter.
3458
-
3459
- Example:
3460
- ```
3461
- // DuplicateArg<k, T>(output) converts the k-th argument of the mock
3462
- // function to type T and copies it to *output.
3463
- ACTION_TEMPLATE(DuplicateArg,
3464
- // Note the comma between int and k:
3465
- HAS_2_TEMPLATE_PARAMS(int, k, typename, T),
3466
- AND_1_VALUE_PARAMS(output)) {
3467
- *output = T(::testing::get<k>(args));
3468
- }
3469
- ```
3470
-
3471
- To create an instance of an action template, write:
3472
- ```
3473
- ActionName<t1, ..., t_m>(v1, ..., v_n)
3474
- ```
3475
- where the `t`s are the template arguments and the
3476
- `v`s are the value arguments. The value argument
3477
- types are inferred by the compiler. For example:
3478
- ```
3479
- using ::testing::_;
3480
- ...
3481
- int n;
3482
- EXPECT_CALL(mock, Foo(_, _))
3483
- .WillOnce(DuplicateArg<1, unsigned char>(&n));
3484
- ```
3485
-
3486
- If you want to explicitly specify the value argument types, you can
3487
- provide additional template arguments:
3488
- ```
3489
- ActionName<t1, ..., t_m, u1, ..., u_k>(v1, ..., v_n)
3490
- ```
3491
- where `u_i` is the desired type of `v_i`.
3492
-
3493
- `ACTION_TEMPLATE` and `ACTION`/`ACTION_P*` can be overloaded on the
3494
- number of value parameters, but not on the number of template
3495
- parameters. Without the restriction, the meaning of the following is
3496
- unclear:
3497
-
3498
- ```
3499
- OverloadedAction<int, bool>(x);
3500
- ```
3501
-
3502
- Are we using a single-template-parameter action where `bool` refers to
3503
- the type of `x`, or a two-template-parameter action where the compiler
3504
- is asked to infer the type of `x`?
3505
-
3506
- ## Using the ACTION Object's Type ##
3507
-
3508
- If you are writing a function that returns an `ACTION` object, you'll
3509
- need to know its type. The type depends on the macro used to define
3510
- the action and the parameter types. The rule is relatively simple:
3511
- | **Given Definition** | **Expression** | **Has Type** |
3512
- |:---------------------|:---------------|:-------------|
3513
- | `ACTION(Foo)` | `Foo()` | `FooAction` |
3514
- | `ACTION_TEMPLATE(Foo, HAS_m_TEMPLATE_PARAMS(...), AND_0_VALUE_PARAMS())` | `Foo<t1, ..., t_m>()` | `FooAction<t1, ..., t_m>` |
3515
- | `ACTION_P(Bar, param)` | `Bar(int_value)` | `BarActionP<int>` |
3516
- | `ACTION_TEMPLATE(Bar, HAS_m_TEMPLATE_PARAMS(...), AND_1_VALUE_PARAMS(p1))` | `Bar<t1, ..., t_m>(int_value)` | `FooActionP<t1, ..., t_m, int>` |
3517
- | `ACTION_P2(Baz, p1, p2)` | `Baz(bool_value, int_value)` | `BazActionP2<bool, int>` |
3518
- | `ACTION_TEMPLATE(Baz, HAS_m_TEMPLATE_PARAMS(...), AND_2_VALUE_PARAMS(p1, p2))` | `Baz<t1, ..., t_m>(bool_value, int_value)` | `FooActionP2<t1, ..., t_m, bool, int>` |
3519
- | ... | ... | ... |
3520
-
3521
- Note that we have to pick different suffixes (`Action`, `ActionP`,
3522
- `ActionP2`, and etc) for actions with different numbers of value
3523
- parameters, or the action definitions cannot be overloaded on the
3524
- number of them.
3525
-
3526
- ## Writing New Monomorphic Actions ##
3527
-
3528
- While the `ACTION*` macros are very convenient, sometimes they are
3529
- inappropriate. For example, despite the tricks shown in the previous
3530
- recipes, they don't let you directly specify the types of the mock
3531
- function arguments and the action parameters, which in general leads
3532
- to unoptimized compiler error messages that can baffle unfamiliar
3533
- users. They also don't allow overloading actions based on parameter
3534
- types without jumping through some hoops.
3535
-
3536
- An alternative to the `ACTION*` macros is to implement
3537
- `::testing::ActionInterface<F>`, where `F` is the type of the mock
3538
- function in which the action will be used. For example:
3539
-
3540
- ```
3541
- template <typename F>class ActionInterface {
3542
- public:
3543
- virtual ~ActionInterface();
3544
-
3545
- // Performs the action. Result is the return type of function type
3546
- // F, and ArgumentTuple is the tuple of arguments of F.
3547
- //
3548
- // For example, if F is int(bool, const string&), then Result would
3549
- // be int, and ArgumentTuple would be ::testing::tuple<bool, const string&>.
3550
- virtual Result Perform(const ArgumentTuple& args) = 0;
3551
- };
3552
-
3553
- using ::testing::_;
3554
- using ::testing::Action;
3555
- using ::testing::ActionInterface;
3556
- using ::testing::MakeAction;
3557
-
3558
- typedef int IncrementMethod(int*);
3559
-
3560
- class IncrementArgumentAction : public ActionInterface<IncrementMethod> {
3561
- public:
3562
- virtual int Perform(const ::testing::tuple<int*>& args) {
3563
- int* p = ::testing::get<0>(args); // Grabs the first argument.
3564
- return *p++;
3565
- }
3566
- };
3567
-
3568
- Action<IncrementMethod> IncrementArgument() {
3569
- return MakeAction(new IncrementArgumentAction);
3570
- }
3571
- ...
3572
-
3573
- EXPECT_CALL(foo, Baz(_))
3574
- .WillOnce(IncrementArgument());
3575
-
3576
- int n = 5;
3577
- foo.Baz(&n); // Should return 5 and change n to 6.
3578
- ```
3579
-
3580
- ## Writing New Polymorphic Actions ##
3581
-
3582
- The previous recipe showed you how to define your own action. This is
3583
- all good, except that you need to know the type of the function in
3584
- which the action will be used. Sometimes that can be a problem. For
3585
- example, if you want to use the action in functions with _different_
3586
- types (e.g. like `Return()` and `SetArgPointee()`).
3587
-
3588
- If an action can be used in several types of mock functions, we say
3589
- it's _polymorphic_. The `MakePolymorphicAction()` function template
3590
- makes it easy to define such an action:
3591
-
3592
- ```
3593
- namespace testing {
3594
-
3595
- template <typename Impl>
3596
- PolymorphicAction<Impl> MakePolymorphicAction(const Impl& impl);
3597
-
3598
- } // namespace testing
3599
- ```
3600
-
3601
- As an example, let's define an action that returns the second argument
3602
- in the mock function's argument list. The first step is to define an
3603
- implementation class:
3604
-
3605
- ```
3606
- class ReturnSecondArgumentAction {
3607
- public:
3608
- template <typename Result, typename ArgumentTuple>
3609
- Result Perform(const ArgumentTuple& args) const {
3610
- // To get the i-th (0-based) argument, use ::testing::get<i>(args).
3611
- return ::testing::get<1>(args);
3612
- }
3613
- };
3614
- ```
3615
-
3616
- This implementation class does _not_ need to inherit from any
3617
- particular class. What matters is that it must have a `Perform()`
3618
- method template. This method template takes the mock function's
3619
- arguments as a tuple in a **single** argument, and returns the result of
3620
- the action. It can be either `const` or not, but must be invokable
3621
- with exactly one template argument, which is the result type. In other
3622
- words, you must be able to call `Perform<R>(args)` where `R` is the
3623
- mock function's return type and `args` is its arguments in a tuple.
3624
-
3625
- Next, we use `MakePolymorphicAction()` to turn an instance of the
3626
- implementation class into the polymorphic action we need. It will be
3627
- convenient to have a wrapper for this:
3628
-
3629
- ```
3630
- using ::testing::MakePolymorphicAction;
3631
- using ::testing::PolymorphicAction;
3632
-
3633
- PolymorphicAction<ReturnSecondArgumentAction> ReturnSecondArgument() {
3634
- return MakePolymorphicAction(ReturnSecondArgumentAction());
3635
- }
3636
- ```
3637
-
3638
- Now, you can use this polymorphic action the same way you use the
3639
- built-in ones:
3640
-
3641
- ```
3642
- using ::testing::_;
3643
-
3644
- class MockFoo : public Foo {
3645
- public:
3646
- MOCK_METHOD2(DoThis, int(bool flag, int n));
3647
- MOCK_METHOD3(DoThat, string(int x, const char* str1, const char* str2));
3648
- };
3649
- ...
3650
-
3651
- MockFoo foo;
3652
- EXPECT_CALL(foo, DoThis(_, _))
3653
- .WillOnce(ReturnSecondArgument());
3654
- EXPECT_CALL(foo, DoThat(_, _, _))
3655
- .WillOnce(ReturnSecondArgument());
3656
- ...
3657
- foo.DoThis(true, 5); // Will return 5.
3658
- foo.DoThat(1, "Hi", "Bye"); // Will return "Hi".
3659
- ```
3660
-
3661
- ## Teaching Google Mock How to Print Your Values ##
3662
-
3663
- When an uninteresting or unexpected call occurs, Google Mock prints the
3664
- argument values and the stack trace to help you debug. Assertion
3665
- macros like `EXPECT_THAT` and `EXPECT_EQ` also print the values in
3666
- question when the assertion fails. Google Mock and Google Test do this using
3667
- Google Test's user-extensible value printer.
3668
-
3669
- This printer knows how to print built-in C++ types, native arrays, STL
3670
- containers, and any type that supports the `<<` operator. For other
3671
- types, it prints the raw bytes in the value and hopes that you the
3672
- user can figure it out.
3673
- [Google Test's advanced guide](../../googletest/docs/AdvancedGuide.md#teaching-google-test-how-to-print-your-values)
3674
- explains how to extend the printer to do a better job at
3675
- printing your particular type than to dump the bytes.