simdjson 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2541) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +1 -1
  3. data/.travis.yml +10 -3
  4. data/README.md +2 -0
  5. data/Rakefile +1 -1
  6. data/benchmark/run_benchmark.rb +4 -0
  7. data/ext/simdjson/extconf.rb +1 -1
  8. data/ext/simdjson/simdjson.cpp +34 -41
  9. data/lib/simdjson/version.rb +1 -1
  10. data/simdjson.gemspec +2 -1
  11. data/vendor/simdjson/AUTHORS +2 -1
  12. data/vendor/simdjson/CMakeFiles/3.16.3/CompilerIdC/a.out +0 -0
  13. data/vendor/simdjson/CMakeFiles/3.16.3/CompilerIdCXX/a.out +0 -0
  14. data/vendor/simdjson/CMakeLists.txt +68 -39
  15. data/vendor/simdjson/CONTRIBUTING.md +92 -0
  16. data/vendor/simdjson/CONTRIBUTORS +12 -0
  17. data/vendor/simdjson/Dockerfile +88 -10
  18. data/vendor/simdjson/Doxyfile +2578 -0
  19. data/vendor/simdjson/HACKING.md +652 -0
  20. data/vendor/simdjson/README.md +156 -547
  21. data/vendor/simdjson/RELEASES.md +50 -0
  22. data/vendor/simdjson/benchmark/CMakeLists.txt +37 -8
  23. data/vendor/simdjson/benchmark/Dockerfile +19 -0
  24. data/vendor/simdjson/benchmark/bench_dom_api.cpp +552 -0
  25. data/vendor/simdjson/benchmark/bench_parse_call.cpp +162 -0
  26. data/vendor/simdjson/benchmark/benchfeatures.cpp +466 -0
  27. data/vendor/simdjson/benchmark/benchmark.h +62 -179
  28. data/vendor/simdjson/benchmark/benchmarker.h +522 -0
  29. data/vendor/simdjson/benchmark/checkperf.cmake +101 -0
  30. data/vendor/simdjson/benchmark/distinctuseridcompetition.cpp +108 -49
  31. data/vendor/simdjson/benchmark/event_counter.h +152 -0
  32. data/vendor/simdjson/benchmark/get_corpus_benchmark.cpp +57 -0
  33. data/vendor/simdjson/benchmark/linux/linux-perf-events.h +24 -16
  34. data/vendor/simdjson/benchmark/minifiercompetition.cpp +47 -44
  35. data/vendor/simdjson/benchmark/parse.cpp +174 -345
  36. data/vendor/simdjson/benchmark/parse_stream.cpp +191 -0
  37. data/vendor/simdjson/benchmark/parseandstatcompetition.cpp +260 -77
  38. data/vendor/simdjson/benchmark/parsingcompetition.cpp +138 -75
  39. data/vendor/simdjson/benchmark/perfdiff.cpp +114 -0
  40. data/vendor/simdjson/benchmark/statisticalmodel.cpp +75 -76
  41. data/vendor/simdjson/cmake/add_cpp_test.cmake +49 -0
  42. data/vendor/simdjson/cmake/simdjson-flags.cmake +155 -0
  43. data/vendor/simdjson/cmake/simdjson-user-cmakecache.cmake +24 -0
  44. data/vendor/simdjson/dependencies/CMakeLists.txt +89 -0
  45. data/vendor/simdjson/dependencies/benchmark/AUTHORS +56 -0
  46. data/vendor/simdjson/dependencies/benchmark/BUILD.bazel +44 -0
  47. data/vendor/simdjson/dependencies/benchmark/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  48. data/vendor/simdjson/dependencies/benchmark/CMakeFiles/progress.marks +1 -0
  49. data/vendor/simdjson/dependencies/benchmark/CMakeLists.txt +279 -0
  50. data/vendor/simdjson/dependencies/benchmark/CONTRIBUTING.md +58 -0
  51. data/vendor/simdjson/dependencies/benchmark/CONTRIBUTORS +78 -0
  52. data/vendor/simdjson/dependencies/benchmark/CTestTestfile.cmake +7 -0
  53. data/vendor/simdjson/dependencies/benchmark/LICENSE +202 -0
  54. data/vendor/simdjson/dependencies/benchmark/Makefile +220 -0
  55. data/vendor/simdjson/dependencies/benchmark/README.md +1290 -0
  56. data/vendor/simdjson/dependencies/benchmark/WORKSPACE +15 -0
  57. data/vendor/simdjson/dependencies/benchmark/_config.yml +1 -0
  58. data/vendor/simdjson/dependencies/benchmark/appveyor.yml +50 -0
  59. data/vendor/simdjson/dependencies/benchmark/cmake/AddCXXCompilerFlag.cmake +74 -0
  60. data/vendor/simdjson/dependencies/benchmark/cmake/CXXFeatureCheck.cmake +64 -0
  61. data/vendor/simdjson/dependencies/benchmark/cmake/Config.cmake.in +1 -0
  62. data/vendor/simdjson/dependencies/benchmark/cmake/GetGitVersion.cmake +54 -0
  63. data/vendor/simdjson/dependencies/benchmark/cmake/GoogleTest.cmake +41 -0
  64. data/vendor/simdjson/dependencies/benchmark/cmake/GoogleTest.cmake.in +58 -0
  65. data/vendor/simdjson/dependencies/benchmark/cmake/Modules/FindLLVMAr.cmake +16 -0
  66. data/vendor/simdjson/dependencies/benchmark/cmake/Modules/FindLLVMNm.cmake +16 -0
  67. data/vendor/simdjson/dependencies/benchmark/cmake/Modules/FindLLVMRanLib.cmake +15 -0
  68. data/vendor/simdjson/dependencies/benchmark/cmake/benchmark.pc.in +12 -0
  69. data/vendor/simdjson/dependencies/benchmark/cmake/gnu_posix_regex.cpp +12 -0
  70. data/vendor/simdjson/dependencies/benchmark/cmake/llvm-toolchain.cmake +8 -0
  71. data/vendor/simdjson/dependencies/benchmark/cmake/posix_regex.cpp +14 -0
  72. data/vendor/simdjson/dependencies/benchmark/cmake/split_list.cmake +3 -0
  73. data/vendor/simdjson/dependencies/benchmark/cmake/std_regex.cpp +10 -0
  74. data/vendor/simdjson/dependencies/benchmark/cmake/steady_clock.cpp +7 -0
  75. data/vendor/simdjson/dependencies/benchmark/cmake/thread_safety_attributes.cpp +4 -0
  76. data/vendor/simdjson/dependencies/benchmark/cmake_install.cmake +45 -0
  77. data/vendor/simdjson/dependencies/benchmark/conan/CMakeLists.txt +7 -0
  78. data/vendor/simdjson/dependencies/benchmark/conan/test_package/CMakeLists.txt +10 -0
  79. data/vendor/simdjson/dependencies/benchmark/conan/test_package/conanfile.py +19 -0
  80. data/vendor/simdjson/dependencies/benchmark/conan/test_package/test_package.cpp +18 -0
  81. data/vendor/simdjson/dependencies/benchmark/conanfile.py +79 -0
  82. data/vendor/simdjson/dependencies/benchmark/dependencies.md +18 -0
  83. data/vendor/simdjson/dependencies/benchmark/docs/AssemblyTests.md +147 -0
  84. data/vendor/simdjson/dependencies/benchmark/docs/_config.yml +1 -0
  85. data/vendor/simdjson/dependencies/benchmark/docs/tools.md +199 -0
  86. data/vendor/simdjson/dependencies/benchmark/include/benchmark/benchmark.h +1586 -0
  87. data/vendor/simdjson/dependencies/benchmark/mingw.py +320 -0
  88. data/vendor/simdjson/dependencies/benchmark/releasing.md +16 -0
  89. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  90. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/CXX.includecache +738 -0
  91. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/DependInfo.cmake +47 -0
  92. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/build.make +354 -0
  93. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/cmake_clean.cmake +27 -0
  94. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/cmake_clean_target.cmake +3 -0
  95. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/depend.internal +157 -0
  96. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/depend.make +157 -0
  97. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/flags.make +10 -0
  98. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/link.txt +2 -0
  99. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/progress.make +20 -0
  100. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/CXX.includecache +40 -0
  101. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/DependInfo.cmake +31 -0
  102. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/build.make +99 -0
  103. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/cmake_clean.cmake +10 -0
  104. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/cmake_clean_target.cmake +3 -0
  105. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/depend.internal +6 -0
  106. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/depend.make +6 -0
  107. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/flags.make +10 -0
  108. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/link.txt +2 -0
  109. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/progress.make +3 -0
  110. data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/progress.marks +1 -0
  111. data/vendor/simdjson/dependencies/benchmark/src/CMakeLists.txt +116 -0
  112. data/vendor/simdjson/dependencies/benchmark/src/CTestTestfile.cmake +6 -0
  113. data/vendor/simdjson/dependencies/benchmark/src/Makefile +822 -0
  114. data/vendor/simdjson/dependencies/benchmark/src/arraysize.h +33 -0
  115. data/vendor/simdjson/dependencies/benchmark/src/benchmark.cc +499 -0
  116. data/vendor/simdjson/dependencies/benchmark/src/benchmark_api_internal.cc +15 -0
  117. data/vendor/simdjson/dependencies/benchmark/src/benchmark_api_internal.h +53 -0
  118. data/vendor/simdjson/dependencies/benchmark/src/benchmark_main.cc +17 -0
  119. data/vendor/simdjson/dependencies/benchmark/src/benchmark_name.cc +58 -0
  120. data/vendor/simdjson/dependencies/benchmark/src/benchmark_register.cc +506 -0
  121. data/vendor/simdjson/dependencies/benchmark/src/benchmark_register.h +107 -0
  122. data/vendor/simdjson/dependencies/benchmark/src/benchmark_runner.cc +361 -0
  123. data/vendor/simdjson/dependencies/benchmark/src/benchmark_runner.h +51 -0
  124. data/vendor/simdjson/dependencies/benchmark/src/check.h +82 -0
  125. data/vendor/simdjson/dependencies/benchmark/src/cmake_install.cmake +39 -0
  126. data/vendor/simdjson/dependencies/benchmark/src/colorprint.cc +188 -0
  127. data/vendor/simdjson/dependencies/benchmark/src/colorprint.h +33 -0
  128. data/vendor/simdjson/dependencies/benchmark/src/commandlineflags.cc +228 -0
  129. data/vendor/simdjson/dependencies/benchmark/src/commandlineflags.h +103 -0
  130. data/vendor/simdjson/dependencies/benchmark/src/complexity.cc +238 -0
  131. data/vendor/simdjson/dependencies/benchmark/src/complexity.h +55 -0
  132. data/vendor/simdjson/dependencies/benchmark/src/console_reporter.cc +177 -0
  133. data/vendor/simdjson/dependencies/benchmark/src/counter.cc +80 -0
  134. data/vendor/simdjson/dependencies/benchmark/src/counter.h +32 -0
  135. data/vendor/simdjson/dependencies/benchmark/src/csv_reporter.cc +154 -0
  136. data/vendor/simdjson/dependencies/benchmark/src/cycleclock.h +192 -0
  137. data/vendor/simdjson/dependencies/benchmark/src/internal_macros.h +94 -0
  138. data/vendor/simdjson/dependencies/benchmark/src/json_reporter.cc +253 -0
  139. data/vendor/simdjson/dependencies/benchmark/src/log.h +74 -0
  140. data/vendor/simdjson/dependencies/benchmark/src/mutex.h +155 -0
  141. data/vendor/simdjson/dependencies/benchmark/src/re.h +158 -0
  142. data/vendor/simdjson/dependencies/benchmark/src/reporter.cc +105 -0
  143. data/vendor/simdjson/dependencies/benchmark/src/sleep.cc +51 -0
  144. data/vendor/simdjson/dependencies/benchmark/src/sleep.h +15 -0
  145. data/vendor/simdjson/dependencies/benchmark/src/statistics.cc +193 -0
  146. data/vendor/simdjson/dependencies/benchmark/src/statistics.h +37 -0
  147. data/vendor/simdjson/dependencies/benchmark/src/string_util.cc +252 -0
  148. data/vendor/simdjson/dependencies/benchmark/src/string_util.h +59 -0
  149. data/vendor/simdjson/dependencies/benchmark/src/sysinfo.cc +708 -0
  150. data/vendor/simdjson/dependencies/benchmark/src/thread_manager.h +64 -0
  151. data/vendor/simdjson/dependencies/benchmark/src/thread_timer.h +86 -0
  152. data/vendor/simdjson/dependencies/benchmark/src/timers.cc +217 -0
  153. data/vendor/simdjson/dependencies/benchmark/src/timers.h +48 -0
  154. data/vendor/simdjson/dependencies/benchmark/test/AssemblyTests.cmake +46 -0
  155. data/vendor/simdjson/dependencies/benchmark/test/BUILD +73 -0
  156. data/vendor/simdjson/dependencies/benchmark/test/CMakeLists.txt +260 -0
  157. data/vendor/simdjson/dependencies/benchmark/test/basic_test.cc +136 -0
  158. data/vendor/simdjson/dependencies/benchmark/test/benchmark_gtest.cc +128 -0
  159. data/vendor/simdjson/dependencies/benchmark/test/benchmark_name_gtest.cc +74 -0
  160. data/vendor/simdjson/dependencies/benchmark/test/benchmark_test.cc +245 -0
  161. data/vendor/simdjson/dependencies/benchmark/test/clobber_memory_assembly_test.cc +64 -0
  162. data/vendor/simdjson/dependencies/benchmark/test/commandlineflags_gtest.cc +201 -0
  163. data/vendor/simdjson/dependencies/benchmark/test/complexity_test.cc +213 -0
  164. data/vendor/simdjson/dependencies/benchmark/test/cxx03_test.cc +63 -0
  165. data/vendor/simdjson/dependencies/benchmark/test/diagnostics_test.cc +80 -0
  166. data/vendor/simdjson/dependencies/benchmark/test/display_aggregates_only_test.cc +43 -0
  167. data/vendor/simdjson/dependencies/benchmark/test/donotoptimize_assembly_test.cc +163 -0
  168. data/vendor/simdjson/dependencies/benchmark/test/donotoptimize_test.cc +52 -0
  169. data/vendor/simdjson/dependencies/benchmark/test/filter_test.cc +104 -0
  170. data/vendor/simdjson/dependencies/benchmark/test/fixture_test.cc +49 -0
  171. data/vendor/simdjson/dependencies/benchmark/test/internal_threading_test.cc +184 -0
  172. data/vendor/simdjson/dependencies/benchmark/test/link_main_test.cc +8 -0
  173. data/vendor/simdjson/dependencies/benchmark/test/map_test.cc +57 -0
  174. data/vendor/simdjson/dependencies/benchmark/test/memory_manager_test.cc +44 -0
  175. data/vendor/simdjson/dependencies/benchmark/test/multiple_ranges_test.cc +96 -0
  176. data/vendor/simdjson/dependencies/benchmark/test/options_test.cc +75 -0
  177. data/vendor/simdjson/dependencies/benchmark/test/output_test.h +213 -0
  178. data/vendor/simdjson/dependencies/benchmark/test/output_test_helper.cc +515 -0
  179. data/vendor/simdjson/dependencies/benchmark/test/register_benchmark_test.cc +184 -0
  180. data/vendor/simdjson/dependencies/benchmark/test/report_aggregates_only_test.cc +39 -0
  181. data/vendor/simdjson/dependencies/benchmark/test/reporter_output_test.cc +748 -0
  182. data/vendor/simdjson/dependencies/benchmark/test/skip_with_error_test.cc +189 -0
  183. data/vendor/simdjson/dependencies/benchmark/test/state_assembly_test.cc +68 -0
  184. data/vendor/simdjson/dependencies/benchmark/test/statistics_gtest.cc +28 -0
  185. data/vendor/simdjson/dependencies/benchmark/test/string_util_gtest.cc +153 -0
  186. data/vendor/simdjson/dependencies/benchmark/test/templated_fixture_test.cc +28 -0
  187. data/vendor/simdjson/dependencies/benchmark/test/user_counters_tabular_test.cc +285 -0
  188. data/vendor/simdjson/dependencies/benchmark/test/user_counters_test.cc +531 -0
  189. data/vendor/simdjson/dependencies/benchmark/test/user_counters_thousands_test.cc +173 -0
  190. data/vendor/simdjson/dependencies/benchmark/tools/compare.py +408 -0
  191. data/vendor/simdjson/dependencies/benchmark/tools/gbench/__init__.py +8 -0
  192. data/vendor/simdjson/dependencies/benchmark/tools/gbench/report.py +541 -0
  193. data/vendor/simdjson/dependencies/benchmark/tools/gbench/util.py +164 -0
  194. data/vendor/simdjson/dependencies/benchmark/tools/strip_asm.py +151 -0
  195. data/vendor/simdjson/dependencies/cJSON/CHANGELOG.md +375 -0
  196. data/vendor/simdjson/dependencies/cJSON/CMakeLists.txt +251 -0
  197. data/vendor/simdjson/dependencies/cJSON/CONTRIBUTORS.md +51 -0
  198. data/vendor/simdjson/dependencies/cJSON/LICENSE +20 -0
  199. data/vendor/simdjson/dependencies/cJSON/Makefile +157 -0
  200. data/vendor/simdjson/dependencies/cJSON/README.md +533 -0
  201. data/vendor/simdjson/dependencies/cJSON/appveyor.yml +86 -0
  202. data/vendor/simdjson/dependencies/cJSON/cJSON.c +2936 -0
  203. data/vendor/simdjson/dependencies/cJSON/cJSON.h +285 -0
  204. data/vendor/simdjson/dependencies/cJSON/cJSON_Utils.c +1450 -0
  205. data/vendor/simdjson/dependencies/cJSON/cJSON_Utils.h +88 -0
  206. data/vendor/simdjson/dependencies/cJSON/fuzzing/CMakeLists.txt +28 -0
  207. data/vendor/simdjson/dependencies/cJSON/fuzzing/afl-prepare-linux.sh +5 -0
  208. data/vendor/simdjson/dependencies/cJSON/fuzzing/afl.c +176 -0
  209. data/vendor/simdjson/dependencies/cJSON/fuzzing/afl.sh +9 -0
  210. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test1 +22 -0
  211. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test10 +1 -0
  212. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test11 +8 -0
  213. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test2 +11 -0
  214. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test3 +26 -0
  215. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test3.bu +26 -0
  216. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test3.uf +26 -0
  217. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test3.uu +26 -0
  218. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test4 +88 -0
  219. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test5 +27 -0
  220. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test6 +16 -0
  221. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test7 +22 -0
  222. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test8 +13 -0
  223. data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test9 +5 -0
  224. data/vendor/simdjson/dependencies/cJSON/fuzzing/json.dict +47 -0
  225. data/vendor/simdjson/dependencies/cJSON/library_config/cJSONConfig.cmake.in +29 -0
  226. data/vendor/simdjson/dependencies/cJSON/library_config/cJSONConfigVersion.cmake.in +11 -0
  227. data/vendor/simdjson/dependencies/cJSON/library_config/libcjson.pc.in +10 -0
  228. data/vendor/simdjson/dependencies/cJSON/library_config/libcjson_utils.pc.in +10 -0
  229. data/vendor/simdjson/dependencies/cJSON/test.c +268 -0
  230. data/vendor/simdjson/dependencies/cJSON/tests/CMakeLists.txt +115 -0
  231. data/vendor/simdjson/dependencies/cJSON/tests/cjson_add.c +422 -0
  232. data/vendor/simdjson/dependencies/cJSON/tests/common.h +122 -0
  233. data/vendor/simdjson/dependencies/cJSON/tests/compare_tests.c +205 -0
  234. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test1 +22 -0
  235. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test1.expected +22 -0
  236. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test10 +1 -0
  237. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test10.expected +1 -0
  238. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test11 +8 -0
  239. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test11.expected +10 -0
  240. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test2 +11 -0
  241. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test2.expected +18 -0
  242. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test3 +26 -0
  243. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test3.expected +28 -0
  244. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test4 +88 -0
  245. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test4.expected +94 -0
  246. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test5 +27 -0
  247. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test5.expected +54 -0
  248. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test6 +16 -0
  249. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test7 +22 -0
  250. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test7.expected +19 -0
  251. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test8 +13 -0
  252. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test8.expected +13 -0
  253. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test9 +5 -0
  254. data/vendor/simdjson/dependencies/cJSON/tests/inputs/test9.expected +1 -0
  255. data/vendor/simdjson/dependencies/cJSON/tests/json-patch-tests/README.md +75 -0
  256. data/vendor/simdjson/dependencies/cJSON/tests/json_patch_tests.c +243 -0
  257. data/vendor/simdjson/dependencies/cJSON/tests/misc_tests.c +579 -0
  258. data/vendor/simdjson/dependencies/cJSON/tests/misc_utils_tests.c +80 -0
  259. data/vendor/simdjson/dependencies/cJSON/tests/old_utils_tests.c +205 -0
  260. data/vendor/simdjson/dependencies/cJSON/tests/parse_array.c +166 -0
  261. data/vendor/simdjson/dependencies/cJSON/tests/parse_examples.c +214 -0
  262. data/vendor/simdjson/dependencies/cJSON/tests/parse_hex4.c +73 -0
  263. data/vendor/simdjson/dependencies/cJSON/tests/parse_number.c +110 -0
  264. data/vendor/simdjson/dependencies/cJSON/tests/parse_object.c +176 -0
  265. data/vendor/simdjson/dependencies/cJSON/tests/parse_string.c +135 -0
  266. data/vendor/simdjson/dependencies/cJSON/tests/parse_value.c +112 -0
  267. data/vendor/simdjson/dependencies/cJSON/tests/parse_with_opts.c +112 -0
  268. data/vendor/simdjson/dependencies/cJSON/tests/print_array.c +100 -0
  269. data/vendor/simdjson/dependencies/cJSON/tests/print_number.c +105 -0
  270. data/vendor/simdjson/dependencies/cJSON/tests/print_object.c +101 -0
  271. data/vendor/simdjson/dependencies/cJSON/tests/print_string.c +78 -0
  272. data/vendor/simdjson/dependencies/cJSON/tests/print_value.c +107 -0
  273. data/vendor/simdjson/dependencies/cJSON/tests/readme_examples.c +258 -0
  274. data/vendor/simdjson/dependencies/cJSON/tests/unity/README.md +231 -0
  275. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/colour_prompt.rb +118 -0
  276. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/colour_reporter.rb +39 -0
  277. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/generate_config.yml +36 -0
  278. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/generate_module.rb +308 -0
  279. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/generate_test_runner.rb +454 -0
  280. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/parse_output.rb +220 -0
  281. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/stylize_as_junit.rb +252 -0
  282. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/test_file_filter.rb +25 -0
  283. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/type_sanitizer.rb +6 -0
  284. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/unity_test_summary.py +139 -0
  285. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/unity_test_summary.rb +136 -0
  286. data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/unity_to_junit.py +146 -0
  287. data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/ThrowTheSwitchCodingStandard.md +207 -0
  288. data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf +0 -0
  289. data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityAssertionsReference.md +770 -0
  290. data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityConfigurationGuide.md +435 -0
  291. data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityGettingStartedGuide.md +191 -0
  292. data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityHelperScriptsGuide.md +254 -0
  293. data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/license.txt +21 -0
  294. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/makefile +71 -0
  295. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/readme.txt +5 -0
  296. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/src/ProductionCode.c +24 -0
  297. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/src/ProductionCode.h +3 -0
  298. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/src/ProductionCode2.c +11 -0
  299. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/src/ProductionCode2.h +2 -0
  300. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/test/TestProductionCode.c +62 -0
  301. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/test/TestProductionCode2.c +31 -0
  302. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +53 -0
  303. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +57 -0
  304. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/makefile +70 -0
  305. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/readme.txt +5 -0
  306. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/src/ProductionCode.c +24 -0
  307. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/src/ProductionCode.h +3 -0
  308. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/src/ProductionCode2.c +11 -0
  309. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/src/ProductionCode2.h +2 -0
  310. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/TestProductionCode.c +64 -0
  311. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/TestProductionCode2.c +33 -0
  312. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +9 -0
  313. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +11 -0
  314. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/test_runners/all_tests.c +12 -0
  315. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/helper/UnityHelper.c +10 -0
  316. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/helper/UnityHelper.h +12 -0
  317. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/rakefile.rb +43 -0
  318. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/rakefile_helper.rb +249 -0
  319. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/readme.txt +13 -0
  320. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/src/ProductionCode.c +24 -0
  321. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/src/ProductionCode.h +3 -0
  322. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/src/ProductionCode2.c +11 -0
  323. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/src/ProductionCode2.h +2 -0
  324. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/target_gcc_32.yml +46 -0
  325. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/test/TestProductionCode.c +62 -0
  326. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/test/TestProductionCode2.c +31 -0
  327. data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/unity_config.h +239 -0
  328. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/eclipse/error_parsers.txt +26 -0
  329. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/rakefile.rb +48 -0
  330. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/rakefile_helper.rb +178 -0
  331. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/readme.txt +9 -0
  332. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/src/unity_fixture.c +432 -0
  333. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/src/unity_fixture.h +83 -0
  334. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/src/unity_fixture_internals.h +51 -0
  335. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +47 -0
  336. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/Makefile +75 -0
  337. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/main/AllTests.c +22 -0
  338. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/template_fixture_tests.c +39 -0
  339. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/unity_fixture_Test.c +543 -0
  340. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/unity_fixture_TestRunner.c +57 -0
  341. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/unity_output_Spy.c +57 -0
  342. data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/unity_output_Spy.h +17 -0
  343. data/vendor/simdjson/dependencies/cJSON/tests/unity/release/build.info +2 -0
  344. data/vendor/simdjson/dependencies/cJSON/tests/unity/release/version.info +2 -0
  345. data/vendor/simdjson/dependencies/cJSON/tests/unity/src/unity.c +1570 -0
  346. data/vendor/simdjson/dependencies/cJSON/tests/unity/src/unity.h +503 -0
  347. data/vendor/simdjson/dependencies/cJSON/tests/unity/src/unity_internals.h +870 -0
  348. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/Makefile +66 -0
  349. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_cmd.c +61 -0
  350. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_def.c +57 -0
  351. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_head1.c +55 -0
  352. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_head1.h +15 -0
  353. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_cmd.c +80 -0
  354. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_def.c +76 -0
  355. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_head1.c +75 -0
  356. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_head1.h +13 -0
  357. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_new1.c +89 -0
  358. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_new2.c +89 -0
  359. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_param.c +77 -0
  360. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_run1.c +89 -0
  361. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_run2.c +89 -0
  362. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_yaml.c +90 -0
  363. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_new1.c +67 -0
  364. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_new2.c +70 -0
  365. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_param.c +58 -0
  366. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_run1.c +67 -0
  367. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_run2.c +70 -0
  368. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_yaml.c +71 -0
  369. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/rakefile +125 -0
  370. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/rakefile_helper.rb +260 -0
  371. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/spec/generate_module_existing_file_spec.rb +158 -0
  372. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/clang_file.yml +78 -0
  373. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/clang_strict.yml +78 -0
  374. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_32.yml +49 -0
  375. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_64.yml +50 -0
  376. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_auto_limits.yml +47 -0
  377. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_auto_stdint.yml +59 -0
  378. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_manual_math.yml +47 -0
  379. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/hitech_picc18.yml +101 -0
  380. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_arm_v4.yml +90 -0
  381. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_arm_v5.yml +80 -0
  382. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_arm_v5_3.yml +80 -0
  383. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +94 -0
  384. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_cortexm3_v5.yml +84 -0
  385. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_msp430.yml +95 -0
  386. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_sh2a_v6.yml +86 -0
  387. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/CException.h +11 -0
  388. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/Defs.h +8 -0
  389. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/cmock.h +14 -0
  390. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/mockMock.h +13 -0
  391. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/testRunnerGenerator.c +183 -0
  392. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/testRunnerGeneratorSmall.c +67 -0
  393. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/testRunnerGeneratorWithMocks.c +192 -0
  394. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/tests/test_generate_test_runner.rb +1252 -0
  395. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/tests/testparameterized.c +110 -0
  396. data/vendor/simdjson/dependencies/cJSON/tests/unity/test/tests/testunity.c +5337 -0
  397. data/vendor/simdjson/dependencies/cJSON/tests/unity_setup.c +3 -0
  398. data/vendor/simdjson/dependencies/cJSON/valgrind.supp +6 -0
  399. data/vendor/simdjson/dependencies/cxxopts/CHANGELOG.md +97 -0
  400. data/vendor/simdjson/dependencies/cxxopts/CMakeLists.txt +108 -0
  401. data/vendor/simdjson/dependencies/cxxopts/INSTALL +23 -0
  402. data/vendor/simdjson/dependencies/cxxopts/LICENSE +19 -0
  403. data/vendor/simdjson/dependencies/cxxopts/README.md +208 -0
  404. data/vendor/simdjson/dependencies/cxxopts/cxxopts-config.cmake.in +4 -0
  405. data/vendor/simdjson/dependencies/cxxopts/include/cxxopts.hpp +2193 -0
  406. data/vendor/simdjson/dependencies/cxxopts/src/CMakeLists.txt +24 -0
  407. data/vendor/simdjson/dependencies/cxxopts/src/example.cpp +167 -0
  408. data/vendor/simdjson/dependencies/cxxopts/test/CMakeLists.txt +35 -0
  409. data/vendor/simdjson/dependencies/cxxopts/test/add-subdirectory-test/CMakeLists.txt +11 -0
  410. data/vendor/simdjson/dependencies/cxxopts/test/catch.hpp +10460 -0
  411. data/vendor/simdjson/dependencies/cxxopts/test/find-package-test/CMakeLists.txt +11 -0
  412. data/vendor/simdjson/dependencies/cxxopts/test/link_a.cpp +6 -0
  413. data/vendor/simdjson/dependencies/cxxopts/test/link_b.cpp +1 -0
  414. data/vendor/simdjson/dependencies/cxxopts/test/main.cpp +2 -0
  415. data/vendor/simdjson/dependencies/cxxopts/test/options.cpp +776 -0
  416. data/vendor/simdjson/dependencies/fastjson/LICENSE.txt +24 -0
  417. data/vendor/simdjson/dependencies/fastjson/Makefile +5 -0
  418. data/vendor/simdjson/dependencies/fastjson/README.md +68 -0
  419. data/vendor/simdjson/dependencies/fastjson/SConstruct +44 -0
  420. data/vendor/simdjson/dependencies/fastjson/examples/address_book/Makefile +2 -0
  421. data/vendor/simdjson/dependencies/fastjson/examples/address_book/README.markdown +5 -0
  422. data/vendor/simdjson/dependencies/fastjson/examples/address_book/address_book.cpp +166 -0
  423. data/vendor/simdjson/dependencies/fastjson/include/fastjson/core.h +146 -0
  424. data/vendor/simdjson/dependencies/fastjson/include/fastjson/dom.h +799 -0
  425. data/vendor/simdjson/dependencies/fastjson/include/fastjson/error.h +64 -0
  426. data/vendor/simdjson/dependencies/fastjson/include/fastjson/fastjson.h +161 -0
  427. data/vendor/simdjson/dependencies/fastjson/include/fastjson/utils.h +62 -0
  428. data/vendor/simdjson/dependencies/fastjson/src/fastjson.cpp +1016 -0
  429. data/vendor/simdjson/dependencies/fastjson/src/fastjson2.cpp +440 -0
  430. data/vendor/simdjson/dependencies/fastjson/src/fastjson_dom.cpp +165 -0
  431. data/vendor/simdjson/dependencies/fastjson/tests/00-bug-00-bad-parse.cpp +59 -0
  432. data/vendor/simdjson/dependencies/fastjson/tests/00-bug-01-string-roundtrip.cpp +88 -0
  433. data/vendor/simdjson/dependencies/fastjson/tests/00-bug-02-unicode-escape.cpp +66 -0
  434. data/vendor/simdjson/dependencies/fastjson/tests/01-dom-00-dict-const-get.cpp +35 -0
  435. data/vendor/simdjson/dependencies/fastjson/tests/01-dom-01-vector-from-json.cpp +36 -0
  436. data/vendor/simdjson/dependencies/fastjson/tests/Makefile +4 -0
  437. data/vendor/simdjson/dependencies/fastjson/tests/clone_token.cpp +49 -0
  438. data/vendor/simdjson/dependencies/fastjson/tests/dom_from_string.cpp +77 -0
  439. data/vendor/simdjson/dependencies/fastjson/tests/misc/dynamic_test.cpp +49 -0
  440. data/vendor/simdjson/dependencies/fastjson/tests/misc/from_file.cpp +57 -0
  441. data/vendor/simdjson/dependencies/fastjson/tests/misc/speed_test.cpp +127 -0
  442. data/vendor/simdjson/dependencies/fastjson/tests/misc/speed_test_boost.cpp +115 -0
  443. data/vendor/simdjson/dependencies/fastjson/tests/saruconf +3 -0
  444. data/vendor/simdjson/dependencies/fastjson/tests/test0.cpp +385 -0
  445. data/vendor/simdjson/dependencies/fastjson/tests/test1.cpp +237 -0
  446. data/vendor/simdjson/dependencies/fastjson/tests/test2.cpp +301 -0
  447. data/vendor/simdjson/dependencies/fastjson/tests/test_permissive_count.cpp +100 -0
  448. data/vendor/simdjson/dependencies/fastjson/tests/test_permissive_parse.cpp +83 -0
  449. data/vendor/simdjson/dependencies/fastjson/tests/test_permissive_roundtrip.cpp +64 -0
  450. data/vendor/simdjson/dependencies/fastjson/tests/test_utils.cpp +176 -0
  451. data/vendor/simdjson/dependencies/gason/CMakeLists.txt +16 -0
  452. data/vendor/simdjson/dependencies/gason/LICENSE +20 -0
  453. data/vendor/simdjson/dependencies/gason/README.md +167 -0
  454. data/vendor/simdjson/dependencies/gason/data/download.sh +5 -0
  455. data/vendor/simdjson/dependencies/gason/ruberoid/AndroidManifest.xml +32 -0
  456. data/vendor/simdjson/dependencies/gason/ruberoid/res/values/strings.xml +4 -0
  457. data/vendor/simdjson/dependencies/gason/src/benchmark.cpp +257 -0
  458. data/vendor/simdjson/dependencies/gason/src/gason.cpp +334 -0
  459. data/vendor/simdjson/dependencies/gason/src/gason.h +135 -0
  460. data/vendor/simdjson/dependencies/gason/src/pretty-print.cpp +192 -0
  461. data/vendor/simdjson/dependencies/gason/src/test-suite.cpp +146 -0
  462. data/vendor/simdjson/dependencies/jsmn/LICENSE +20 -0
  463. data/vendor/simdjson/dependencies/jsmn/Makefile +41 -0
  464. data/vendor/simdjson/dependencies/jsmn/README.md +168 -0
  465. data/vendor/simdjson/dependencies/jsmn/example/jsondump.c +126 -0
  466. data/vendor/simdjson/dependencies/jsmn/example/simple.c +76 -0
  467. data/vendor/simdjson/dependencies/jsmn/jsmn.c +314 -0
  468. data/vendor/simdjson/dependencies/jsmn/jsmn.h +76 -0
  469. data/vendor/simdjson/dependencies/jsmn/test/test.h +27 -0
  470. data/vendor/simdjson/dependencies/jsmn/test/tests.c +407 -0
  471. data/vendor/simdjson/dependencies/jsmn/test/testutil.h +94 -0
  472. data/vendor/simdjson/dependencies/json/CMakeLists.txt +131 -0
  473. data/vendor/simdjson/dependencies/json/CODE_OF_CONDUCT.md +46 -0
  474. data/vendor/simdjson/dependencies/json/ChangeLog.md +1670 -0
  475. data/vendor/simdjson/dependencies/json/LICENSE.MIT +21 -0
  476. data/vendor/simdjson/dependencies/json/Makefile +629 -0
  477. data/vendor/simdjson/dependencies/json/README.md +1370 -0
  478. data/vendor/simdjson/dependencies/json/appveyor.yml +111 -0
  479. data/vendor/simdjson/dependencies/json/benchmarks/CMakeLists.txt +28 -0
  480. data/vendor/simdjson/dependencies/json/benchmarks/src/benchmarks.cpp +109 -0
  481. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/AUTHORS +46 -0
  482. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/BUILD.bazel +42 -0
  483. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/CMakeLists.txt +251 -0
  484. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/CONTRIBUTING.md +58 -0
  485. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/CONTRIBUTORS +65 -0
  486. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/LICENSE +202 -0
  487. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/README.md +950 -0
  488. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/WORKSPACE +7 -0
  489. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/appveyor.yml +56 -0
  490. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/AddCXXCompilerFlag.cmake +74 -0
  491. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/CXXFeatureCheck.cmake +64 -0
  492. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/Config.cmake.in +1 -0
  493. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/GetGitVersion.cmake +54 -0
  494. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/HandleGTest.cmake +113 -0
  495. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/Modules/FindLLVMAr.cmake +16 -0
  496. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/Modules/FindLLVMNm.cmake +16 -0
  497. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/Modules/FindLLVMRanLib.cmake +15 -0
  498. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/benchmark.pc.in +11 -0
  499. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/gnu_posix_regex.cpp +12 -0
  500. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/llvm-toolchain.cmake +8 -0
  501. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/posix_regex.cpp +14 -0
  502. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/split_list.cmake +3 -0
  503. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/std_regex.cpp +10 -0
  504. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/steady_clock.cpp +7 -0
  505. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/thread_safety_attributes.cpp +4 -0
  506. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/docs/AssemblyTests.md +147 -0
  507. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/docs/tools.md +242 -0
  508. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/include/benchmark/benchmark.h +1456 -0
  509. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/mingw.py +320 -0
  510. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/releasing.md +16 -0
  511. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/CMakeLists.txt +105 -0
  512. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/arraysize.h +33 -0
  513. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark.cc +630 -0
  514. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark_api_internal.h +47 -0
  515. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark_main.cc +17 -0
  516. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark_register.cc +461 -0
  517. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark_register.h +33 -0
  518. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/check.h +79 -0
  519. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/colorprint.cc +188 -0
  520. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/colorprint.h +33 -0
  521. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/commandlineflags.cc +218 -0
  522. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/commandlineflags.h +79 -0
  523. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/complexity.cc +220 -0
  524. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/complexity.h +55 -0
  525. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/console_reporter.cc +182 -0
  526. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/counter.cc +68 -0
  527. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/counter.h +26 -0
  528. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/csv_reporter.cc +149 -0
  529. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/cycleclock.h +177 -0
  530. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/internal_macros.h +89 -0
  531. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/json_reporter.cc +205 -0
  532. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/log.h +73 -0
  533. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/mutex.h +155 -0
  534. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/re.h +152 -0
  535. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/reporter.cc +87 -0
  536. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/sleep.cc +51 -0
  537. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/sleep.h +15 -0
  538. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/statistics.cc +178 -0
  539. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/statistics.h +37 -0
  540. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/string_util.cc +172 -0
  541. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/string_util.h +40 -0
  542. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/sysinfo.cc +587 -0
  543. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/thread_manager.h +66 -0
  544. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/thread_timer.h +69 -0
  545. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/timers.cc +217 -0
  546. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/timers.h +48 -0
  547. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/compare.py +316 -0
  548. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/compare_bench.py +67 -0
  549. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/gbench/__init__.py +8 -0
  550. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/gbench/report.py +208 -0
  551. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/gbench/util.py +159 -0
  552. data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/strip_asm.py +151 -0
  553. data/vendor/simdjson/dependencies/json/cmake/config.cmake.in +15 -0
  554. data/vendor/simdjson/dependencies/json/doc/Doxyfile +335 -0
  555. data/vendor/simdjson/dependencies/json/doc/Makefile +90 -0
  556. data/vendor/simdjson/dependencies/json/doc/avatars.png +0 -0
  557. data/vendor/simdjson/dependencies/json/doc/binary_formats.md +171 -0
  558. data/vendor/simdjson/dependencies/json/doc/css/mylayout.css +26 -0
  559. data/vendor/simdjson/dependencies/json/doc/css/mylayout_docset.css +27 -0
  560. data/vendor/simdjson/dependencies/json/doc/examples/README.cpp +39 -0
  561. data/vendor/simdjson/dependencies/json/doc/examples/README.link +1 -0
  562. data/vendor/simdjson/dependencies/json/doc/examples/README.output +27 -0
  563. data/vendor/simdjson/dependencies/json/doc/examples/array.cpp +19 -0
  564. data/vendor/simdjson/dependencies/json/doc/examples/array.link +1 -0
  565. data/vendor/simdjson/dependencies/json/doc/examples/array.output +4 -0
  566. data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type.cpp +48 -0
  567. data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type.link +1 -0
  568. data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type.output +4 -0
  569. data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type_const.cpp +42 -0
  570. data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type_const.link +1 -0
  571. data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type_const.output +3 -0
  572. data/vendor/simdjson/dependencies/json/doc/examples/at__size_type.cpp +43 -0
  573. data/vendor/simdjson/dependencies/json/doc/examples/at__size_type.link +1 -0
  574. data/vendor/simdjson/dependencies/json/doc/examples/at__size_type.output +4 -0
  575. data/vendor/simdjson/dependencies/json/doc/examples/at__size_type_const.cpp +37 -0
  576. data/vendor/simdjson/dependencies/json/doc/examples/at__size_type_const.link +1 -0
  577. data/vendor/simdjson/dependencies/json/doc/examples/at__size_type_const.output +3 -0
  578. data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer.cpp +103 -0
  579. data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer.link +1 -0
  580. data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer.output +12 -0
  581. data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer_const.cpp +79 -0
  582. data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer_const.link +1 -0
  583. data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer_const.output +9 -0
  584. data/vendor/simdjson/dependencies/json/doc/examples/back.cpp +38 -0
  585. data/vendor/simdjson/dependencies/json/doc/examples/back.link +1 -0
  586. data/vendor/simdjson/dependencies/json/doc/examples/back.output +7 -0
  587. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__CompatibleType.cpp +218 -0
  588. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__CompatibleType.link +1 -0
  589. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__CompatibleType.output +39 -0
  590. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__InputIt_InputIt.cpp +32 -0
  591. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__InputIt_InputIt.link +1 -0
  592. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__InputIt_InputIt.output +4 -0
  593. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__basic_json.cpp +17 -0
  594. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__basic_json.link +1 -0
  595. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__basic_json.output +2 -0
  596. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__copyassignment.cpp +18 -0
  597. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__copyassignment.link +1 -0
  598. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__copyassignment.output +2 -0
  599. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__list_init_t.cpp +21 -0
  600. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__list_init_t.link +1 -0
  601. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__list_init_t.output +5 -0
  602. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__moveconstructor.cpp +17 -0
  603. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__moveconstructor.link +1 -0
  604. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__moveconstructor.output +2 -0
  605. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__nullptr_t.cpp +16 -0
  606. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__nullptr_t.link +1 -0
  607. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__nullptr_t.output +2 -0
  608. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__size_type_basic_json.cpp +18 -0
  609. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__size_type_basic_json.link +1 -0
  610. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__size_type_basic_json.output +3 -0
  611. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value.cpp +30 -0
  612. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value.link +1 -0
  613. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value.output +1 -0
  614. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_ptr.cpp +30 -0
  615. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_ptr.link +1 -0
  616. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_ptr.output +1 -0
  617. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_t.cpp +25 -0
  618. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_t.link +1 -0
  619. data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_t.output +7 -0
  620. data/vendor/simdjson/dependencies/json/doc/examples/begin.cpp +16 -0
  621. data/vendor/simdjson/dependencies/json/doc/examples/begin.link +1 -0
  622. data/vendor/simdjson/dependencies/json/doc/examples/begin.output +1 -0
  623. data/vendor/simdjson/dependencies/json/doc/examples/cbegin.cpp +16 -0
  624. data/vendor/simdjson/dependencies/json/doc/examples/cbegin.link +1 -0
  625. data/vendor/simdjson/dependencies/json/doc/examples/cbegin.output +1 -0
  626. data/vendor/simdjson/dependencies/json/doc/examples/cend.cpp +19 -0
  627. data/vendor/simdjson/dependencies/json/doc/examples/cend.link +1 -0
  628. data/vendor/simdjson/dependencies/json/doc/examples/cend.output +1 -0
  629. data/vendor/simdjson/dependencies/json/doc/examples/clear.cpp +34 -0
  630. data/vendor/simdjson/dependencies/json/doc/examples/clear.link +1 -0
  631. data/vendor/simdjson/dependencies/json/doc/examples/clear.output +7 -0
  632. data/vendor/simdjson/dependencies/json/doc/examples/contains.cpp +17 -0
  633. data/vendor/simdjson/dependencies/json/doc/examples/contains.link +1 -0
  634. data/vendor/simdjson/dependencies/json/doc/examples/contains.output +3 -0
  635. data/vendor/simdjson/dependencies/json/doc/examples/contains_json_pointer.cpp +45 -0
  636. data/vendor/simdjson/dependencies/json/doc/examples/contains_json_pointer.link +1 -0
  637. data/vendor/simdjson/dependencies/json/doc/examples/contains_json_pointer.output +10 -0
  638. data/vendor/simdjson/dependencies/json/doc/examples/count.cpp +18 -0
  639. data/vendor/simdjson/dependencies/json/doc/examples/count.link +1 -0
  640. data/vendor/simdjson/dependencies/json/doc/examples/count.output +2 -0
  641. data/vendor/simdjson/dependencies/json/doc/examples/crbegin.cpp +16 -0
  642. data/vendor/simdjson/dependencies/json/doc/examples/crbegin.link +1 -0
  643. data/vendor/simdjson/dependencies/json/doc/examples/crbegin.output +1 -0
  644. data/vendor/simdjson/dependencies/json/doc/examples/crend.cpp +19 -0
  645. data/vendor/simdjson/dependencies/json/doc/examples/crend.link +1 -0
  646. data/vendor/simdjson/dependencies/json/doc/examples/crend.output +1 -0
  647. data/vendor/simdjson/dependencies/json/doc/examples/diff.cpp +36 -0
  648. data/vendor/simdjson/dependencies/json/doc/examples/diff.link +1 -0
  649. data/vendor/simdjson/dependencies/json/doc/examples/diff.output +25 -0
  650. data/vendor/simdjson/dependencies/json/doc/examples/dump.cpp +48 -0
  651. data/vendor/simdjson/dependencies/json/doc/examples/dump.link +1 -0
  652. data/vendor/simdjson/dependencies/json/doc/examples/dump.output +55 -0
  653. data/vendor/simdjson/dependencies/json/doc/examples/emplace.cpp +31 -0
  654. data/vendor/simdjson/dependencies/json/doc/examples/emplace.link +1 -0
  655. data/vendor/simdjson/dependencies/json/doc/examples/emplace.output +6 -0
  656. data/vendor/simdjson/dependencies/json/doc/examples/emplace_back.cpp +24 -0
  657. data/vendor/simdjson/dependencies/json/doc/examples/emplace_back.link +1 -0
  658. data/vendor/simdjson/dependencies/json/doc/examples/emplace_back.output +4 -0
  659. data/vendor/simdjson/dependencies/json/doc/examples/empty.cpp +30 -0
  660. data/vendor/simdjson/dependencies/json/doc/examples/empty.link +1 -0
  661. data/vendor/simdjson/dependencies/json/doc/examples/empty.output +9 -0
  662. data/vendor/simdjson/dependencies/json/doc/examples/end.cpp +19 -0
  663. data/vendor/simdjson/dependencies/json/doc/examples/end.link +1 -0
  664. data/vendor/simdjson/dependencies/json/doc/examples/end.output +1 -0
  665. data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType.cpp +31 -0
  666. data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType.link +1 -0
  667. data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType.output +6 -0
  668. data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType_IteratorType.cpp +31 -0
  669. data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType_IteratorType.link +1 -0
  670. data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType_IteratorType.output +6 -0
  671. data/vendor/simdjson/dependencies/json/doc/examples/erase__key_type.cpp +18 -0
  672. data/vendor/simdjson/dependencies/json/doc/examples/erase__key_type.link +1 -0
  673. data/vendor/simdjson/dependencies/json/doc/examples/erase__key_type.output +2 -0
  674. data/vendor/simdjson/dependencies/json/doc/examples/erase__size_type.cpp +16 -0
  675. data/vendor/simdjson/dependencies/json/doc/examples/erase__size_type.link +1 -0
  676. data/vendor/simdjson/dependencies/json/doc/examples/erase__size_type.output +1 -0
  677. data/vendor/simdjson/dependencies/json/doc/examples/exception.cpp +20 -0
  678. data/vendor/simdjson/dependencies/json/doc/examples/exception.link +1 -0
  679. data/vendor/simdjson/dependencies/json/doc/examples/exception.output +2 -0
  680. data/vendor/simdjson/dependencies/json/doc/examples/find__key_type.cpp +20 -0
  681. data/vendor/simdjson/dependencies/json/doc/examples/find__key_type.link +1 -0
  682. data/vendor/simdjson/dependencies/json/doc/examples/find__key_type.output +3 -0
  683. data/vendor/simdjson/dependencies/json/doc/examples/flatten.cpp +32 -0
  684. data/vendor/simdjson/dependencies/json/doc/examples/flatten.link +1 -0
  685. data/vendor/simdjson/dependencies/json/doc/examples/flatten.output +12 -0
  686. data/vendor/simdjson/dependencies/json/doc/examples/from_bson.cpp +21 -0
  687. data/vendor/simdjson/dependencies/json/doc/examples/from_bson.link +1 -0
  688. data/vendor/simdjson/dependencies/json/doc/examples/from_bson.output +4 -0
  689. data/vendor/simdjson/dependencies/json/doc/examples/from_cbor.cpp +20 -0
  690. data/vendor/simdjson/dependencies/json/doc/examples/from_cbor.link +1 -0
  691. data/vendor/simdjson/dependencies/json/doc/examples/from_cbor.output +4 -0
  692. data/vendor/simdjson/dependencies/json/doc/examples/from_msgpack.cpp +20 -0
  693. data/vendor/simdjson/dependencies/json/doc/examples/from_msgpack.link +1 -0
  694. data/vendor/simdjson/dependencies/json/doc/examples/from_msgpack.output +4 -0
  695. data/vendor/simdjson/dependencies/json/doc/examples/from_ubjson.cpp +20 -0
  696. data/vendor/simdjson/dependencies/json/doc/examples/from_ubjson.link +1 -0
  697. data/vendor/simdjson/dependencies/json/doc/examples/from_ubjson.output +4 -0
  698. data/vendor/simdjson/dependencies/json/doc/examples/front.cpp +29 -0
  699. data/vendor/simdjson/dependencies/json/doc/examples/front.link +1 -0
  700. data/vendor/simdjson/dependencies/json/doc/examples/front.output +6 -0
  701. data/vendor/simdjson/dependencies/json/doc/examples/get__PointerType.cpp +21 -0
  702. data/vendor/simdjson/dependencies/json/doc/examples/get__PointerType.link +1 -0
  703. data/vendor/simdjson/dependencies/json/doc/examples/get__PointerType.output +2 -0
  704. data/vendor/simdjson/dependencies/json/doc/examples/get__ValueType_const.cpp +50 -0
  705. data/vendor/simdjson/dependencies/json/doc/examples/get__ValueType_const.link +1 -0
  706. data/vendor/simdjson/dependencies/json/doc/examples/get__ValueType_const.output +11 -0
  707. data/vendor/simdjson/dependencies/json/doc/examples/get_ptr.cpp +21 -0
  708. data/vendor/simdjson/dependencies/json/doc/examples/get_ptr.link +1 -0
  709. data/vendor/simdjson/dependencies/json/doc/examples/get_ptr.output +2 -0
  710. data/vendor/simdjson/dependencies/json/doc/examples/get_ref.cpp +27 -0
  711. data/vendor/simdjson/dependencies/json/doc/examples/get_ref.link +1 -0
  712. data/vendor/simdjson/dependencies/json/doc/examples/get_ref.output +2 -0
  713. data/vendor/simdjson/dependencies/json/doc/examples/get_to.cpp +60 -0
  714. data/vendor/simdjson/dependencies/json/doc/examples/get_to.link +1 -0
  715. data/vendor/simdjson/dependencies/json/doc/examples/get_to.output +11 -0
  716. data/vendor/simdjson/dependencies/json/doc/examples/insert.cpp +17 -0
  717. data/vendor/simdjson/dependencies/json/doc/examples/insert.link +1 -0
  718. data/vendor/simdjson/dependencies/json/doc/examples/insert.output +2 -0
  719. data/vendor/simdjson/dependencies/json/doc/examples/insert__count.cpp +17 -0
  720. data/vendor/simdjson/dependencies/json/doc/examples/insert__count.link +1 -0
  721. data/vendor/simdjson/dependencies/json/doc/examples/insert__count.output +2 -0
  722. data/vendor/simdjson/dependencies/json/doc/examples/insert__ilist.cpp +17 -0
  723. data/vendor/simdjson/dependencies/json/doc/examples/insert__ilist.link +1 -0
  724. data/vendor/simdjson/dependencies/json/doc/examples/insert__ilist.output +2 -0
  725. data/vendor/simdjson/dependencies/json/doc/examples/insert__range.cpp +20 -0
  726. data/vendor/simdjson/dependencies/json/doc/examples/insert__range.link +1 -0
  727. data/vendor/simdjson/dependencies/json/doc/examples/insert__range.output +2 -0
  728. data/vendor/simdjson/dependencies/json/doc/examples/insert__range_object.cpp +21 -0
  729. data/vendor/simdjson/dependencies/json/doc/examples/insert__range_object.link +1 -0
  730. data/vendor/simdjson/dependencies/json/doc/examples/insert__range_object.output +3 -0
  731. data/vendor/simdjson/dependencies/json/doc/examples/invalid_iterator.cpp +21 -0
  732. data/vendor/simdjson/dependencies/json/doc/examples/invalid_iterator.link +1 -0
  733. data/vendor/simdjson/dependencies/json/doc/examples/invalid_iterator.output +2 -0
  734. data/vendor/simdjson/dependencies/json/doc/examples/is_array.cpp +28 -0
  735. data/vendor/simdjson/dependencies/json/doc/examples/is_array.link +1 -0
  736. data/vendor/simdjson/dependencies/json/doc/examples/is_array.output +8 -0
  737. data/vendor/simdjson/dependencies/json/doc/examples/is_boolean.cpp +28 -0
  738. data/vendor/simdjson/dependencies/json/doc/examples/is_boolean.link +1 -0
  739. data/vendor/simdjson/dependencies/json/doc/examples/is_boolean.output +8 -0
  740. data/vendor/simdjson/dependencies/json/doc/examples/is_discarded.cpp +28 -0
  741. data/vendor/simdjson/dependencies/json/doc/examples/is_discarded.link +1 -0
  742. data/vendor/simdjson/dependencies/json/doc/examples/is_discarded.output +8 -0
  743. data/vendor/simdjson/dependencies/json/doc/examples/is_null.cpp +28 -0
  744. data/vendor/simdjson/dependencies/json/doc/examples/is_null.link +1 -0
  745. data/vendor/simdjson/dependencies/json/doc/examples/is_null.output +8 -0
  746. data/vendor/simdjson/dependencies/json/doc/examples/is_number.cpp +28 -0
  747. data/vendor/simdjson/dependencies/json/doc/examples/is_number.link +1 -0
  748. data/vendor/simdjson/dependencies/json/doc/examples/is_number.output +8 -0
  749. data/vendor/simdjson/dependencies/json/doc/examples/is_number_float.cpp +28 -0
  750. data/vendor/simdjson/dependencies/json/doc/examples/is_number_float.link +1 -0
  751. data/vendor/simdjson/dependencies/json/doc/examples/is_number_float.output +8 -0
  752. data/vendor/simdjson/dependencies/json/doc/examples/is_number_integer.cpp +28 -0
  753. data/vendor/simdjson/dependencies/json/doc/examples/is_number_integer.link +1 -0
  754. data/vendor/simdjson/dependencies/json/doc/examples/is_number_integer.output +8 -0
  755. data/vendor/simdjson/dependencies/json/doc/examples/is_number_unsigned.cpp +28 -0
  756. data/vendor/simdjson/dependencies/json/doc/examples/is_number_unsigned.link +1 -0
  757. data/vendor/simdjson/dependencies/json/doc/examples/is_number_unsigned.output +8 -0
  758. data/vendor/simdjson/dependencies/json/doc/examples/is_object.cpp +28 -0
  759. data/vendor/simdjson/dependencies/json/doc/examples/is_object.link +1 -0
  760. data/vendor/simdjson/dependencies/json/doc/examples/is_object.output +8 -0
  761. data/vendor/simdjson/dependencies/json/doc/examples/is_primitive.cpp +28 -0
  762. data/vendor/simdjson/dependencies/json/doc/examples/is_primitive.link +1 -0
  763. data/vendor/simdjson/dependencies/json/doc/examples/is_primitive.output +8 -0
  764. data/vendor/simdjson/dependencies/json/doc/examples/is_string.cpp +28 -0
  765. data/vendor/simdjson/dependencies/json/doc/examples/is_string.link +1 -0
  766. data/vendor/simdjson/dependencies/json/doc/examples/is_string.output +8 -0
  767. data/vendor/simdjson/dependencies/json/doc/examples/is_structured.cpp +28 -0
  768. data/vendor/simdjson/dependencies/json/doc/examples/is_structured.link +1 -0
  769. data/vendor/simdjson/dependencies/json/doc/examples/is_structured.output +8 -0
  770. data/vendor/simdjson/dependencies/json/doc/examples/items.cpp +23 -0
  771. data/vendor/simdjson/dependencies/json/doc/examples/items.link +1 -0
  772. data/vendor/simdjson/dependencies/json/doc/examples/items.output +7 -0
  773. data/vendor/simdjson/dependencies/json/doc/examples/iterator_wrapper.cpp +23 -0
  774. data/vendor/simdjson/dependencies/json/doc/examples/iterator_wrapper.link +1 -0
  775. data/vendor/simdjson/dependencies/json/doc/examples/iterator_wrapper.output +7 -0
  776. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer.cpp +47 -0
  777. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer.link +1 -0
  778. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer.output +3 -0
  779. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__back.cpp +15 -0
  780. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__back.link +1 -0
  781. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__back.output +2 -0
  782. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__empty.cpp +20 -0
  783. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__empty.link +1 -0
  784. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__empty.output +4 -0
  785. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add.cpp +23 -0
  786. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add.link +1 -0
  787. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add.output +4 -0
  788. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add_binary.cpp +19 -0
  789. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add_binary.link +1 -0
  790. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add_binary.output +3 -0
  791. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__parent_pointer.cpp +18 -0
  792. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__parent_pointer.link +1 -0
  793. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__parent_pointer.output +3 -0
  794. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__pop_back.cpp +21 -0
  795. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__pop_back.link +1 -0
  796. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__pop_back.output +4 -0
  797. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__push_back.cpp +21 -0
  798. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__push_back.link +1 -0
  799. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__push_back.output +4 -0
  800. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__to_string.cpp +35 -0
  801. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__to_string.link +1 -0
  802. data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__to_string.output +12 -0
  803. data/vendor/simdjson/dependencies/json/doc/examples/max_size.cpp +25 -0
  804. data/vendor/simdjson/dependencies/json/doc/examples/max_size.link +1 -0
  805. data/vendor/simdjson/dependencies/json/doc/examples/max_size.output +7 -0
  806. data/vendor/simdjson/dependencies/json/doc/examples/merge_patch.cpp +40 -0
  807. data/vendor/simdjson/dependencies/json/doc/examples/merge_patch.link +1 -0
  808. data/vendor/simdjson/dependencies/json/doc/examples/merge_patch.output +11 -0
  809. data/vendor/simdjson/dependencies/json/doc/examples/meta.cpp +11 -0
  810. data/vendor/simdjson/dependencies/json/doc/examples/meta.link +1 -0
  811. data/vendor/simdjson/dependencies/json/doc/examples/meta.output +17 -0
  812. data/vendor/simdjson/dependencies/json/doc/examples/object.cpp +28 -0
  813. data/vendor/simdjson/dependencies/json/doc/examples/object.link +1 -0
  814. data/vendor/simdjson/dependencies/json/doc/examples/object.output +4 -0
  815. data/vendor/simdjson/dependencies/json/doc/examples/operator__ValueType.cpp +60 -0
  816. data/vendor/simdjson/dependencies/json/doc/examples/operator__ValueType.link +1 -0
  817. data/vendor/simdjson/dependencies/json/doc/examples/operator__ValueType.output +12 -0
  818. data/vendor/simdjson/dependencies/json/doc/examples/operator__equal.cpp +24 -0
  819. data/vendor/simdjson/dependencies/json/doc/examples/operator__equal.link +1 -0
  820. data/vendor/simdjson/dependencies/json/doc/examples/operator__equal.output +4 -0
  821. data/vendor/simdjson/dependencies/json/doc/examples/operator__equal__nullptr_t.cpp +22 -0
  822. data/vendor/simdjson/dependencies/json/doc/examples/operator__equal__nullptr_t.link +1 -0
  823. data/vendor/simdjson/dependencies/json/doc/examples/operator__equal__nullptr_t.output +5 -0
  824. data/vendor/simdjson/dependencies/json/doc/examples/operator__greater.cpp +24 -0
  825. data/vendor/simdjson/dependencies/json/doc/examples/operator__greater.link +1 -0
  826. data/vendor/simdjson/dependencies/json/doc/examples/operator__greater.output +4 -0
  827. data/vendor/simdjson/dependencies/json/doc/examples/operator__greaterequal.cpp +24 -0
  828. data/vendor/simdjson/dependencies/json/doc/examples/operator__greaterequal.link +1 -0
  829. data/vendor/simdjson/dependencies/json/doc/examples/operator__greaterequal.output +4 -0
  830. data/vendor/simdjson/dependencies/json/doc/examples/operator__less.cpp +24 -0
  831. data/vendor/simdjson/dependencies/json/doc/examples/operator__less.link +1 -0
  832. data/vendor/simdjson/dependencies/json/doc/examples/operator__less.output +4 -0
  833. data/vendor/simdjson/dependencies/json/doc/examples/operator__lessequal.cpp +24 -0
  834. data/vendor/simdjson/dependencies/json/doc/examples/operator__lessequal.link +1 -0
  835. data/vendor/simdjson/dependencies/json/doc/examples/operator__lessequal.output +4 -0
  836. data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal.cpp +24 -0
  837. data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal.link +1 -0
  838. data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal.output +4 -0
  839. data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal__nullptr_t.cpp +22 -0
  840. data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal__nullptr_t.link +1 -0
  841. data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal__nullptr_t.output +5 -0
  842. data/vendor/simdjson/dependencies/json/doc/examples/operator__value_t.cpp +38 -0
  843. data/vendor/simdjson/dependencies/json/doc/examples/operator__value_t.link +1 -0
  844. data/vendor/simdjson/dependencies/json/doc/examples/operator__value_t.output +8 -0
  845. data/vendor/simdjson/dependencies/json/doc/examples/operator_deserialize.cpp +26 -0
  846. data/vendor/simdjson/dependencies/json/doc/examples/operator_deserialize.link +1 -0
  847. data/vendor/simdjson/dependencies/json/doc/examples/operator_deserialize.output +13 -0
  848. data/vendor/simdjson/dependencies/json/doc/examples/operator_serialize.cpp +21 -0
  849. data/vendor/simdjson/dependencies/json/doc/examples/operator_serialize.link +1 -0
  850. data/vendor/simdjson/dependencies/json/doc/examples/operator_serialize.output +22 -0
  851. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type.cpp +32 -0
  852. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type.link +1 -0
  853. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type.output +19 -0
  854. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type_const.cpp +16 -0
  855. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type_const.link +1 -0
  856. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type_const.output +1 -0
  857. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type.cpp +25 -0
  858. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type.link +1 -0
  859. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type.output +3 -0
  860. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type_const.cpp +13 -0
  861. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type_const.link +1 -0
  862. data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type_const.output +1 -0
  863. data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer.cpp +48 -0
  864. data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer.link +1 -0
  865. data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer.output +8 -0
  866. data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer_const.cpp +24 -0
  867. data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer_const.link +1 -0
  868. data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer_const.output +4 -0
  869. data/vendor/simdjson/dependencies/json/doc/examples/other_error.cpp +29 -0
  870. data/vendor/simdjson/dependencies/json/doc/examples/other_error.link +1 -0
  871. data/vendor/simdjson/dependencies/json/doc/examples/other_error.output +2 -0
  872. data/vendor/simdjson/dependencies/json/doc/examples/out_of_range.cpp +20 -0
  873. data/vendor/simdjson/dependencies/json/doc/examples/out_of_range.link +1 -0
  874. data/vendor/simdjson/dependencies/json/doc/examples/out_of_range.output +2 -0
  875. data/vendor/simdjson/dependencies/json/doc/examples/parse__array__parser_callback_t.cpp +30 -0
  876. data/vendor/simdjson/dependencies/json/doc/examples/parse__array__parser_callback_t.link +1 -0
  877. data/vendor/simdjson/dependencies/json/doc/examples/parse__array__parser_callback_t.output +20 -0
  878. data/vendor/simdjson/dependencies/json/doc/examples/parse__contiguouscontainer__parser_callback_t.cpp +15 -0
  879. data/vendor/simdjson/dependencies/json/doc/examples/parse__contiguouscontainer__parser_callback_t.link +1 -0
  880. data/vendor/simdjson/dependencies/json/doc/examples/parse__contiguouscontainer__parser_callback_t.output +6 -0
  881. data/vendor/simdjson/dependencies/json/doc/examples/parse__istream__parser_callback_t.cpp +58 -0
  882. data/vendor/simdjson/dependencies/json/doc/examples/parse__istream__parser_callback_t.link +1 -0
  883. data/vendor/simdjson/dependencies/json/doc/examples/parse__istream__parser_callback_t.output +34 -0
  884. data/vendor/simdjson/dependencies/json/doc/examples/parse__iteratortype__parser_callback_t.cpp +15 -0
  885. data/vendor/simdjson/dependencies/json/doc/examples/parse__iteratortype__parser_callback_t.link +1 -0
  886. data/vendor/simdjson/dependencies/json/doc/examples/parse__iteratortype__parser_callback_t.output +6 -0
  887. data/vendor/simdjson/dependencies/json/doc/examples/parse__string__parser_callback_t.cpp +49 -0
  888. data/vendor/simdjson/dependencies/json/doc/examples/parse__string__parser_callback_t.link +1 -0
  889. data/vendor/simdjson/dependencies/json/doc/examples/parse__string__parser_callback_t.output +34 -0
  890. data/vendor/simdjson/dependencies/json/doc/examples/parse_error.cpp +20 -0
  891. data/vendor/simdjson/dependencies/json/doc/examples/parse_error.link +1 -0
  892. data/vendor/simdjson/dependencies/json/doc/examples/parse_error.output +3 -0
  893. data/vendor/simdjson/dependencies/json/doc/examples/patch.cpp +32 -0
  894. data/vendor/simdjson/dependencies/json/doc/examples/patch.link +1 -0
  895. data/vendor/simdjson/dependencies/json/doc/examples/patch.output +11 -0
  896. data/vendor/simdjson/dependencies/json/doc/examples/push_back.cpp +25 -0
  897. data/vendor/simdjson/dependencies/json/doc/examples/push_back.link +1 -0
  898. data/vendor/simdjson/dependencies/json/doc/examples/push_back.output +4 -0
  899. data/vendor/simdjson/dependencies/json/doc/examples/push_back__initializer_list.cpp +27 -0
  900. data/vendor/simdjson/dependencies/json/doc/examples/push_back__initializer_list.link +1 -0
  901. data/vendor/simdjson/dependencies/json/doc/examples/push_back__initializer_list.output +4 -0
  902. data/vendor/simdjson/dependencies/json/doc/examples/push_back__object_t__value.cpp +25 -0
  903. data/vendor/simdjson/dependencies/json/doc/examples/push_back__object_t__value.link +1 -0
  904. data/vendor/simdjson/dependencies/json/doc/examples/push_back__object_t__value.output +4 -0
  905. data/vendor/simdjson/dependencies/json/doc/examples/rbegin.cpp +16 -0
  906. data/vendor/simdjson/dependencies/json/doc/examples/rbegin.link +1 -0
  907. data/vendor/simdjson/dependencies/json/doc/examples/rbegin.output +1 -0
  908. data/vendor/simdjson/dependencies/json/doc/examples/rend.cpp +19 -0
  909. data/vendor/simdjson/dependencies/json/doc/examples/rend.link +1 -0
  910. data/vendor/simdjson/dependencies/json/doc/examples/rend.output +1 -0
  911. data/vendor/simdjson/dependencies/json/doc/examples/sax_parse.cpp +124 -0
  912. data/vendor/simdjson/dependencies/json/doc/examples/sax_parse.link +1 -0
  913. data/vendor/simdjson/dependencies/json/doc/examples/sax_parse.output +2 -0
  914. data/vendor/simdjson/dependencies/json/doc/examples/size.cpp +29 -0
  915. data/vendor/simdjson/dependencies/json/doc/examples/size.link +1 -0
  916. data/vendor/simdjson/dependencies/json/doc/examples/size.output +9 -0
  917. data/vendor/simdjson/dependencies/json/doc/examples/swap__array_t.cpp +20 -0
  918. data/vendor/simdjson/dependencies/json/doc/examples/swap__array_t.link +1 -0
  919. data/vendor/simdjson/dependencies/json/doc/examples/swap__array_t.output +2 -0
  920. data/vendor/simdjson/dependencies/json/doc/examples/swap__object_t.cpp +20 -0
  921. data/vendor/simdjson/dependencies/json/doc/examples/swap__object_t.link +1 -0
  922. data/vendor/simdjson/dependencies/json/doc/examples/swap__object_t.output +2 -0
  923. data/vendor/simdjson/dependencies/json/doc/examples/swap__reference.cpp +18 -0
  924. data/vendor/simdjson/dependencies/json/doc/examples/swap__reference.link +1 -0
  925. data/vendor/simdjson/dependencies/json/doc/examples/swap__reference.output +2 -0
  926. data/vendor/simdjson/dependencies/json/doc/examples/swap__string_t.cpp +20 -0
  927. data/vendor/simdjson/dependencies/json/doc/examples/swap__string_t.link +1 -0
  928. data/vendor/simdjson/dependencies/json/doc/examples/swap__string_t.output +2 -0
  929. data/vendor/simdjson/dependencies/json/doc/examples/to_bson.cpp +21 -0
  930. data/vendor/simdjson/dependencies/json/doc/examples/to_bson.link +1 -0
  931. data/vendor/simdjson/dependencies/json/doc/examples/to_bson.output +1 -0
  932. data/vendor/simdjson/dependencies/json/doc/examples/to_cbor.cpp +21 -0
  933. data/vendor/simdjson/dependencies/json/doc/examples/to_cbor.link +1 -0
  934. data/vendor/simdjson/dependencies/json/doc/examples/to_cbor.output +1 -0
  935. data/vendor/simdjson/dependencies/json/doc/examples/to_msgpack.cpp +21 -0
  936. data/vendor/simdjson/dependencies/json/doc/examples/to_msgpack.link +1 -0
  937. data/vendor/simdjson/dependencies/json/doc/examples/to_msgpack.output +1 -0
  938. data/vendor/simdjson/dependencies/json/doc/examples/to_ubjson.cpp +63 -0
  939. data/vendor/simdjson/dependencies/json/doc/examples/to_ubjson.link +1 -0
  940. data/vendor/simdjson/dependencies/json/doc/examples/to_ubjson.output +4 -0
  941. data/vendor/simdjson/dependencies/json/doc/examples/type.cpp +28 -0
  942. data/vendor/simdjson/dependencies/json/doc/examples/type.link +1 -0
  943. data/vendor/simdjson/dependencies/json/doc/examples/type.output +8 -0
  944. data/vendor/simdjson/dependencies/json/doc/examples/type_error.cpp +20 -0
  945. data/vendor/simdjson/dependencies/json/doc/examples/type_error.link +1 -0
  946. data/vendor/simdjson/dependencies/json/doc/examples/type_error.output +2 -0
  947. data/vendor/simdjson/dependencies/json/doc/examples/type_name.cpp +27 -0
  948. data/vendor/simdjson/dependencies/json/doc/examples/type_name.link +1 -0
  949. data/vendor/simdjson/dependencies/json/doc/examples/type_name.output +8 -0
  950. data/vendor/simdjson/dependencies/json/doc/examples/unflatten.cpp +26 -0
  951. data/vendor/simdjson/dependencies/json/doc/examples/unflatten.link +1 -0
  952. data/vendor/simdjson/dependencies/json/doc/examples/unflatten.output +18 -0
  953. data/vendor/simdjson/dependencies/json/doc/examples/update.cpp +18 -0
  954. data/vendor/simdjson/dependencies/json/doc/examples/update.link +1 -0
  955. data/vendor/simdjson/dependencies/json/doc/examples/update.output +5 -0
  956. data/vendor/simdjson/dependencies/json/doc/examples/update__range.cpp +18 -0
  957. data/vendor/simdjson/dependencies/json/doc/examples/update__range.link +1 -0
  958. data/vendor/simdjson/dependencies/json/doc/examples/update__range.output +5 -0
  959. data/vendor/simdjson/dependencies/json/doc/faq.md +87 -0
  960. data/vendor/simdjson/dependencies/json/doc/images/binary.png +0 -0
  961. data/vendor/simdjson/dependencies/json/doc/images/callback_events.png +0 -0
  962. data/vendor/simdjson/dependencies/json/doc/images/range-begin-end.svg +435 -0
  963. data/vendor/simdjson/dependencies/json/doc/images/range-rbegin-rend.svg +1232 -0
  964. data/vendor/simdjson/dependencies/json/doc/index.md +332 -0
  965. data/vendor/simdjson/dependencies/json/doc/json.gif +0 -0
  966. data/vendor/simdjson/dependencies/json/doc/scripts/git-update-ghpages +193 -0
  967. data/vendor/simdjson/dependencies/json/doc/scripts/send_to_wandbox.py +120 -0
  968. data/vendor/simdjson/dependencies/json/doc/usages/ios.png +0 -0
  969. data/vendor/simdjson/dependencies/json/doc/usages/macos.png +0 -0
  970. data/vendor/simdjson/dependencies/json/include/nlohmann/adl_serializer.hpp +49 -0
  971. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/conversions/from_json.hpp +389 -0
  972. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/conversions/to_chars.hpp +1106 -0
  973. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/conversions/to_json.hpp +344 -0
  974. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/exceptions.hpp +356 -0
  975. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/binary_reader.hpp +1983 -0
  976. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/input_adapters.hpp +442 -0
  977. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/json_sax.hpp +701 -0
  978. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/lexer.hpp +1512 -0
  979. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/parser.hpp +498 -0
  980. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/position_t.hpp +27 -0
  981. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/internal_iterator.hpp +25 -0
  982. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/iter_impl.hpp +638 -0
  983. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/iteration_proxy.hpp +170 -0
  984. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/iterator_traits.hpp +51 -0
  985. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/json_reverse_iterator.hpp +119 -0
  986. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/primitive_iterator.hpp +120 -0
  987. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/json_pointer.hpp +1011 -0
  988. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/json_ref.hpp +69 -0
  989. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/macro_scope.hpp +121 -0
  990. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/macro_unscope.hpp +21 -0
  991. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/cpp_future.hpp +63 -0
  992. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/detected.hpp +58 -0
  993. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/is_sax.hpp +142 -0
  994. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/type_traits.hpp +361 -0
  995. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/void_t.hpp +13 -0
  996. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/output/binary_writer.hpp +1336 -0
  997. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/output/output_adapters.hpp +123 -0
  998. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/output/serializer.hpp +840 -0
  999. data/vendor/simdjson/dependencies/json/include/nlohmann/detail/value_t.hpp +77 -0
  1000. data/vendor/simdjson/dependencies/json/include/nlohmann/json.hpp +8134 -0
  1001. data/vendor/simdjson/dependencies/json/include/nlohmann/json_fwd.hpp +64 -0
  1002. data/vendor/simdjson/dependencies/json/include/nlohmann/thirdparty/hedley/hedley.hpp +1505 -0
  1003. data/vendor/simdjson/dependencies/json/include/nlohmann/thirdparty/hedley/hedley_undef.hpp +121 -0
  1004. data/vendor/simdjson/dependencies/json/meson.build +23 -0
  1005. data/vendor/simdjson/dependencies/json/nlohmann_json.natvis +32 -0
  1006. data/vendor/simdjson/dependencies/json/single_include/nlohmann/json.hpp +22684 -0
  1007. data/vendor/simdjson/dependencies/json/test/CMakeLists.txt +150 -0
  1008. data/vendor/simdjson/dependencies/json/test/Makefile +110 -0
  1009. data/vendor/simdjson/dependencies/json/test/cmake_add_subdirectory/CMakeLists.txt +15 -0
  1010. data/vendor/simdjson/dependencies/json/test/cmake_add_subdirectory/project/CMakeLists.txt +13 -0
  1011. data/vendor/simdjson/dependencies/json/test/cmake_add_subdirectory/project/main.cpp +8 -0
  1012. data/vendor/simdjson/dependencies/json/test/cmake_import/CMakeLists.txt +15 -0
  1013. data/vendor/simdjson/dependencies/json/test/cmake_import/project/CMakeLists.txt +12 -0
  1014. data/vendor/simdjson/dependencies/json/test/cmake_import/project/main.cpp +8 -0
  1015. data/vendor/simdjson/dependencies/json/test/cmake_import_minver/CMakeLists.txt +15 -0
  1016. data/vendor/simdjson/dependencies/json/test/cmake_import_minver/project/CMakeLists.txt +8 -0
  1017. data/vendor/simdjson/dependencies/json/test/cmake_import_minver/project/main.cpp +8 -0
  1018. data/vendor/simdjson/dependencies/json/test/data/big-list-of-naughty-strings/LICENSE +22 -0
  1019. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test01 +1 -0
  1020. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test02 +0 -0
  1021. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test03 +0 -0
  1022. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test04 +0 -0
  1023. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test05 +0 -0
  1024. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test06 +0 -0
  1025. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test07 +0 -0
  1026. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test08 +0 -0
  1027. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test09 +0 -0
  1028. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test10 +1 -0
  1029. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test11 +0 -0
  1030. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test12 +0 -0
  1031. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test13 +0 -0
  1032. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test14 +0 -0
  1033. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test15 +0 -0
  1034. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test16 +0 -0
  1035. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test17 +0 -0
  1036. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test18 +0 -0
  1037. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test19 +0 -0
  1038. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test20 +0 -0
  1039. data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test21 +0 -0
  1040. data/vendor/simdjson/dependencies/json/test/data/json-patch-tests/README.md +75 -0
  1041. data/vendor/simdjson/dependencies/json/test/data/json.org/1.json.bson +0 -0
  1042. data/vendor/simdjson/dependencies/json/test/data/json.org/1.json.cbor +1 -0
  1043. data/vendor/simdjson/dependencies/json/test/data/json.org/1.json.msgpack +0 -0
  1044. data/vendor/simdjson/dependencies/json/test/data/json.org/2.json.bson +0 -0
  1045. data/vendor/simdjson/dependencies/json/test/data/json.org/2.json.cbor +1 -0
  1046. data/vendor/simdjson/dependencies/json/test/data/json.org/2.json.msgpack +1 -0
  1047. data/vendor/simdjson/dependencies/json/test/data/json.org/3.json.bson +0 -0
  1048. data/vendor/simdjson/dependencies/json/test/data/json.org/3.json.cbor +1 -0
  1049. data/vendor/simdjson/dependencies/json/test/data/json.org/3.json.msgpack +0 -0
  1050. data/vendor/simdjson/dependencies/json/test/data/json.org/4.json.bson +0 -0
  1051. data/vendor/simdjson/dependencies/json/test/data/json.org/4.json.cbor +4 -0
  1052. data/vendor/simdjson/dependencies/json/test/data/json.org/4.json.msgpack +0 -0
  1053. data/vendor/simdjson/dependencies/json/test/data/json.org/5.json.bson +0 -0
  1054. data/vendor/simdjson/dependencies/json/test/data/json.org/5.json.cbor +1 -0
  1055. data/vendor/simdjson/dependencies/json/test/data/json.org/5.json.msgpack +0 -0
  1056. data/vendor/simdjson/dependencies/json/test/data/json_nlohmann_tests/all_unicode.json.cbor +0 -0
  1057. data/vendor/simdjson/dependencies/json/test/data/json_nlohmann_tests/all_unicode.json.msgpack +0 -0
  1058. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip01.json.cbor +1 -0
  1059. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip01.json.msgpack +1 -0
  1060. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip02.json.cbor +1 -0
  1061. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip02.json.msgpack +1 -0
  1062. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip03.json.cbor +1 -0
  1063. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip03.json.msgpack +1 -0
  1064. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip04.json.cbor +0 -0
  1065. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip04.json.msgpack +0 -0
  1066. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip05.json.cbor +1 -0
  1067. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip05.json.msgpack +1 -0
  1068. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip06.json.cbor +1 -0
  1069. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip06.json.msgpack +1 -0
  1070. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip07.json.cbor +1 -0
  1071. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip07.json.msgpack +1 -0
  1072. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip08.json.cbor +0 -0
  1073. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip08.json.msgpack +0 -0
  1074. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip09.json.cbor +1 -0
  1075. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip09.json.msgpack +1 -0
  1076. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip10.json.cbor +1 -0
  1077. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip10.json.msgpack +1 -0
  1078. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip11.json.cbor +1 -0
  1079. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip11.json.msgpack +1 -0
  1080. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip12.json.cbor +1 -0
  1081. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip12.json.msgpack +0 -0
  1082. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip13.json.cbor +1 -0
  1083. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip13.json.msgpack +1 -0
  1084. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip14.json.cbor +1 -0
  1085. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip14.json.msgpack +0 -0
  1086. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip15.json.cbor +1 -0
  1087. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip15.json.msgpack +1 -0
  1088. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip16.json.cbor +1 -0
  1089. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip16.json.msgpack +1 -0
  1090. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip17.json.cbor +1 -0
  1091. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip17.json.msgpack +1 -0
  1092. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip18.json.cbor +1 -0
  1093. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip18.json.msgpack +1 -0
  1094. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip19.json.cbor +1 -0
  1095. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip19.json.msgpack +1 -0
  1096. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip20.json.cbor +0 -0
  1097. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip20.json.msgpack +0 -0
  1098. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip21.json.cbor +0 -0
  1099. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip21.json.msgpack +0 -0
  1100. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip22.json.cbor +1 -0
  1101. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip22.json.msgpack +1 -0
  1102. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip23.json.cbor +1 -0
  1103. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip23.json.msgpack +1 -0
  1104. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip24.json.cbor +0 -0
  1105. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip24.json.msgpack +0 -0
  1106. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip25.json.cbor +0 -0
  1107. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip25.json.msgpack +0 -0
  1108. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip26.json.cbor +0 -0
  1109. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip26.json.msgpack +0 -0
  1110. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip27.json.cbor +1 -0
  1111. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip27.json.msgpack +1 -0
  1112. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip28.json.cbor +0 -0
  1113. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip28.json.msgpack +0 -0
  1114. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip29.json.cbor +0 -0
  1115. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip29.json.msgpack +0 -0
  1116. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip30.json.cbor +1 -0
  1117. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip30.json.msgpack +1 -0
  1118. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip31.json.cbor +1 -0
  1119. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip31.json.msgpack +1 -0
  1120. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip32.json.cbor +1 -0
  1121. data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip32.json.msgpack +1 -0
  1122. data/vendor/simdjson/dependencies/json/test/data/json_tests/pass1.json.cbor +0 -0
  1123. data/vendor/simdjson/dependencies/json/test/data/json_tests/pass1.json.msgpack +0 -0
  1124. data/vendor/simdjson/dependencies/json/test/data/json_tests/pass2.json.cbor +1 -0
  1125. data/vendor/simdjson/dependencies/json/test/data/json_tests/pass2.json.msgpack +1 -0
  1126. data/vendor/simdjson/dependencies/json/test/data/json_tests/pass3.json.bson +0 -0
  1127. data/vendor/simdjson/dependencies/json/test/data/json_tests/pass3.json.cbor +1 -0
  1128. data/vendor/simdjson/dependencies/json/test/data/json_tests/pass3.json.msgpack +1 -0
  1129. data/vendor/simdjson/dependencies/json/test/data/json_testsuite/README.md +10 -0
  1130. data/vendor/simdjson/dependencies/json/test/data/json_testsuite/sample.json.cbor +0 -0
  1131. data/vendor/simdjson/dependencies/json/test/data/json_testsuite/sample.json.msgpack +0 -0
  1132. data/vendor/simdjson/dependencies/json/test/data/markus_kuhn/UTF-8-test.txt +0 -0
  1133. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/LICENSE +21 -0
  1134. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_arraysWithSpaces.json.cbor +1 -0
  1135. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_arraysWithSpaces.json.msgpack +1 -0
  1136. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_empty-string.json.cbor +1 -0
  1137. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_empty-string.json.msgpack +1 -0
  1138. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_empty.json.cbor +1 -0
  1139. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_empty.json.msgpack +1 -0
  1140. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_ending_with_newline.json.cbor +1 -0
  1141. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_ending_with_newline.json.msgpack +1 -0
  1142. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_false.json.cbor +1 -0
  1143. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_false.json.msgpack +1 -0
  1144. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_heterogeneous.json.cbor +1 -0
  1145. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_heterogeneous.json.msgpack +1 -0
  1146. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_null.json.cbor +1 -0
  1147. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_null.json.msgpack +1 -0
  1148. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_1_and_newline.json.cbor +1 -0
  1149. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_1_and_newline.json.msgpack +1 -0
  1150. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_leading_space.json.cbor +1 -0
  1151. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_leading_space.json.msgpack +1 -0
  1152. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_several_null.json.cbor +1 -0
  1153. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_several_null.json.msgpack +1 -0
  1154. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_trailing_space.json.cbor +1 -0
  1155. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_trailing_space.json.msgpack +1 -0
  1156. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number.json.cbor +1 -0
  1157. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number.json.msgpack +1 -0
  1158. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_0e+1.json.cbor +0 -0
  1159. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_0e+1.json.msgpack +0 -0
  1160. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_0e1.json.cbor +0 -0
  1161. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_0e1.json.msgpack +0 -0
  1162. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_after_space.json.cbor +1 -0
  1163. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_after_space.json.msgpack +1 -0
  1164. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_double_close_to_zero.json.cbor +1 -0
  1165. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_double_close_to_zero.json.msgpack +1 -0
  1166. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_double_huge_neg_exp.json.cbor +0 -0
  1167. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_double_huge_neg_exp.json.msgpack +0 -0
  1168. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_huge_exp.json.cbor +0 -0
  1169. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_huge_exp.json.msgpack +0 -0
  1170. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_int_with_exp.json.cbor +0 -0
  1171. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_int_with_exp.json.msgpack +0 -0
  1172. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_minus_zero.json.cbor +0 -0
  1173. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_minus_zero.json.msgpack +0 -0
  1174. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_int.json.cbor +1 -0
  1175. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_int.json.msgpack +1 -0
  1176. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_one.json.cbor +1 -0
  1177. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_one.json.msgpack +1 -0
  1178. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_zero.json.cbor +0 -0
  1179. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_zero.json.msgpack +0 -0
  1180. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e.json.cbor +1 -0
  1181. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e.json.msgpack +1 -0
  1182. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_neg_exp.json.cbor +1 -0
  1183. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_neg_exp.json.msgpack +1 -0
  1184. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_pos_exp.json.cbor +0 -0
  1185. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_pos_exp.json.msgpack +0 -0
  1186. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_exponent.json.cbor +0 -0
  1187. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_exponent.json.msgpack +0 -0
  1188. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_fraction_exponent.json.cbor +1 -0
  1189. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_fraction_exponent.json.msgpack +1 -0
  1190. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_neg_exp.json.cbor +1 -0
  1191. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_neg_exp.json.msgpack +1 -0
  1192. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_neg_overflow.json.cbor +0 -0
  1193. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_neg_overflow.json.msgpack +0 -0
  1194. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_pos_exponent.json.cbor +0 -0
  1195. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_pos_exponent.json.msgpack +0 -0
  1196. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_pos_overflow.json.cbor +0 -0
  1197. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_pos_overflow.json.msgpack +0 -0
  1198. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_underflow.json.cbor +0 -0
  1199. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_underflow.json.msgpack +0 -0
  1200. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_simple_int.json.cbor +1 -0
  1201. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_simple_int.json.msgpack +1 -0
  1202. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_simple_real.json.cbor +1 -0
  1203. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_simple_real.json.msgpack +1 -0
  1204. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_too_big_neg_int.json.cbor +1 -0
  1205. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object.json.cbor +1 -0
  1206. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object.json.msgpack +1 -0
  1207. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_basic.json.cbor +1 -0
  1208. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_basic.json.msgpack +1 -0
  1209. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key.json.cbor +1 -0
  1210. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key.json.msgpack +1 -0
  1211. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key_and_value.json.cbor +1 -0
  1212. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key_and_value.json.msgpack +1 -0
  1213. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_empty.json.cbor +1 -0
  1214. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_empty.json.msgpack +1 -0
  1215. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_empty_key.json.cbor +0 -0
  1216. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_empty_key.json.msgpack +0 -0
  1217. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_escaped_null_in_key.json.cbor +0 -0
  1218. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_escaped_null_in_key.json.msgpack +0 -0
  1219. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_extreme_numbers.json.cbor +1 -0
  1220. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_extreme_numbers.json.msgpack +1 -0
  1221. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_long_strings.json.cbor +1 -0
  1222. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_long_strings.json.msgpack +0 -0
  1223. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_simple.json.cbor +1 -0
  1224. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_simple.json.msgpack +1 -0
  1225. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_string_unicode.json.cbor +1 -0
  1226. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_string_unicode.json.msgpack +0 -0
  1227. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_with_newlines.json.cbor +1 -0
  1228. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_with_newlines.json.msgpack +1 -0
  1229. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_1_2_3_bytes_UTF-8_sequences.json.cbor +1 -0
  1230. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_1_2_3_bytes_UTF-8_sequences.json.msgpack +1 -0
  1231. 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 +1 -0
  1232. 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 +1 -0
  1233. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pair.json.cbor +1 -0
  1234. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pair.json.msgpack +1 -0
  1235. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pairs.json.cbor +1 -0
  1236. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pairs.json.msgpack +1 -0
  1237. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_allowed_escapes.json.cbor +2 -0
  1238. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_allowed_escapes.json.msgpack +2 -0
  1239. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_backslash_and_u_escaped_zero.json.cbor +1 -0
  1240. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_backslash_and_u_escaped_zero.json.msgpack +1 -0
  1241. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_backslash_doublequotes.json.cbor +1 -0
  1242. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_backslash_doublequotes.json.msgpack +1 -0
  1243. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_comments.json.cbor +1 -0
  1244. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_comments.json.msgpack +1 -0
  1245. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_double_escape_a.json.cbor +1 -0
  1246. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_double_escape_a.json.msgpack +1 -0
  1247. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_double_escape_n.json.cbor +1 -0
  1248. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_double_escape_n.json.msgpack +1 -0
  1249. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_escaped_control_character.json.cbor +1 -0
  1250. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_escaped_control_character.json.msgpack +1 -0
  1251. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_escaped_noncharacter.json.cbor +1 -0
  1252. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_escaped_noncharacter.json.msgpack +1 -0
  1253. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_in_array.json.cbor +1 -0
  1254. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_in_array.json.msgpack +1 -0
  1255. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_in_array_with_leading_space.json.cbor +1 -0
  1256. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_in_array_with_leading_space.json.msgpack +1 -0
  1257. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_last_surrogates_1_and_2.json.cbor +1 -0
  1258. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_last_surrogates_1_and_2.json.msgpack +1 -0
  1259. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_newline_uescaped.json.cbor +1 -0
  1260. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_newline_uescaped.json.msgpack +1 -0
  1261. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+10FFFF.json.cbor +1 -0
  1262. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+10FFFF.json.msgpack +1 -0
  1263. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+1FFFF.json.cbor +1 -0
  1264. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+1FFFF.json.msgpack +1 -0
  1265. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+FFFF.json.cbor +1 -0
  1266. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+FFFF.json.msgpack +1 -0
  1267. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_null_escape.json.cbor +0 -0
  1268. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_null_escape.json.msgpack +0 -0
  1269. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_one-byte-utf-8.json.cbor +1 -0
  1270. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_one-byte-utf-8.json.msgpack +1 -0
  1271. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_pi.json.cbor +1 -0
  1272. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_pi.json.msgpack +1 -0
  1273. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_simple_ascii.json.cbor +1 -0
  1274. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_simple_ascii.json.msgpack +1 -0
  1275. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_space.json.cbor +1 -0
  1276. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_space.json.msgpack +1 -0
  1277. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_three-byte-utf-8.json.cbor +1 -0
  1278. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_three-byte-utf-8.json.msgpack +1 -0
  1279. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_two-byte-utf-8.json.cbor +1 -0
  1280. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_two-byte-utf-8.json.msgpack +1 -0
  1281. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_u+2028_line_sep.json.cbor +1 -0
  1282. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_u+2028_line_sep.json.msgpack +1 -0
  1283. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_u+2029_par_sep.json.cbor +1 -0
  1284. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_u+2029_par_sep.json.msgpack +1 -0
  1285. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_uEscape.json.cbor +1 -0
  1286. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_uEscape.json.msgpack +1 -0
  1287. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unescaped_char_delete.json.cbor +1 -0
  1288. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unescaped_char_delete.json.msgpack +1 -0
  1289. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode.json.cbor +1 -0
  1290. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode.json.msgpack +1 -0
  1291. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicodeEscapedBackslash.json.cbor +1 -0
  1292. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicodeEscapedBackslash.json.msgpack +1 -0
  1293. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_2.json.cbor +1 -0
  1294. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_2.json.msgpack +1 -0
  1295. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json.cbor +1 -0
  1296. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json.msgpack +1 -0
  1297. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+2064_invisible_plus.json.cbor +1 -0
  1298. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+2064_invisible_plus.json.msgpack +1 -0
  1299. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_escaped_double_quote.json.cbor +1 -0
  1300. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_escaped_double_quote.json.msgpack +1 -0
  1301. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_utf8.json.cbor +1 -0
  1302. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_utf8.json.msgpack +1 -0
  1303. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_with_del_character.json.cbor +1 -0
  1304. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_with_del_character.json.msgpack +1 -0
  1305. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_false.json.cbor +1 -0
  1306. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_false.json.msgpack +1 -0
  1307. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_int.json.cbor +1 -0
  1308. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_int.json.msgpack +1 -0
  1309. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_negative_real.json.cbor +1 -0
  1310. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_negative_real.json.msgpack +1 -0
  1311. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_null.json.cbor +1 -0
  1312. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_null.json.msgpack +1 -0
  1313. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_string.json.cbor +1 -0
  1314. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_string.json.msgpack +1 -0
  1315. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_true.json.cbor +1 -0
  1316. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_true.json.msgpack +1 -0
  1317. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_string_empty.json.cbor +1 -0
  1318. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_string_empty.json.msgpack +1 -0
  1319. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_trailing_newline.json.cbor +1 -0
  1320. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_trailing_newline.json.msgpack +1 -0
  1321. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_true_in_array.json.cbor +1 -0
  1322. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_true_in_array.json.msgpack +1 -0
  1323. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_whitespace_array.json.cbor +1 -0
  1324. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_whitespace_array.json.msgpack +1 -0
  1325. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite2/LICENSE +21 -0
  1326. data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite2/README.md +55 -0
  1327. data/vendor/simdjson/dependencies/json/test/data/regression/floats.json.cbor +0 -0
  1328. data/vendor/simdjson/dependencies/json/test/data/regression/floats.json.msgpack +0 -0
  1329. data/vendor/simdjson/dependencies/json/test/data/regression/signed_ints.json.cbor +0 -0
  1330. data/vendor/simdjson/dependencies/json/test/data/regression/signed_ints.json.msgpack +0 -0
  1331. data/vendor/simdjson/dependencies/json/test/data/regression/unsigned_ints.json.cbor +0 -0
  1332. data/vendor/simdjson/dependencies/json/test/data/regression/unsigned_ints.json.msgpack +0 -0
  1333. data/vendor/simdjson/dependencies/json/test/data/regression/working_file.json.cbor +1 -0
  1334. data/vendor/simdjson/dependencies/json/test/data/regression/working_file.json.msgpack +1 -0
  1335. data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/exec_speed.png +0 -0
  1336. data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/fuzz.tiff +0 -0
  1337. data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/high_freq.png +0 -0
  1338. data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/index.html +10 -0
  1339. data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/low_freq.png +0 -0
  1340. data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/README.md +31 -0
  1341. data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/conformance_Nlohmann (C++11).md +670 -0
  1342. data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/conformance_overall_Result.png +0 -0
  1343. 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
  1344. 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
  1345. 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
  1346. 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
  1347. 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
  1348. data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/exec_speed.png +0 -0
  1349. data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/fuzz.tiff +0 -0
  1350. data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/high_freq.png +0 -0
  1351. data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/index.html +10 -0
  1352. data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/low_freq.png +0 -0
  1353. data/vendor/simdjson/dependencies/json/test/src/fuzzer-driver_afl.cpp +38 -0
  1354. data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_bson.cpp +73 -0
  1355. data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_cbor.cpp +68 -0
  1356. data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_json.cpp +69 -0
  1357. data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_msgpack.cpp +68 -0
  1358. data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_ubjson.cpp +68 -0
  1359. data/vendor/simdjson/dependencies/json/test/src/unit-algorithms.cpp +320 -0
  1360. data/vendor/simdjson/dependencies/json/test/src/unit-allocator.cpp +236 -0
  1361. data/vendor/simdjson/dependencies/json/test/src/unit-alt-string.cpp +264 -0
  1362. data/vendor/simdjson/dependencies/json/test/src/unit-bson.cpp +1254 -0
  1363. data/vendor/simdjson/dependencies/json/test/src/unit-capacity.cpp +563 -0
  1364. data/vendor/simdjson/dependencies/json/test/src/unit-cbor.cpp +2189 -0
  1365. data/vendor/simdjson/dependencies/json/test/src/unit-class_const_iterator.cpp +419 -0
  1366. data/vendor/simdjson/dependencies/json/test/src/unit-class_iterator.cpp +403 -0
  1367. data/vendor/simdjson/dependencies/json/test/src/unit-class_lexer.cpp +181 -0
  1368. data/vendor/simdjson/dependencies/json/test/src/unit-class_parser.cpp +1770 -0
  1369. data/vendor/simdjson/dependencies/json/test/src/unit-comparison.cpp +263 -0
  1370. data/vendor/simdjson/dependencies/json/test/src/unit-concepts.cpp +171 -0
  1371. data/vendor/simdjson/dependencies/json/test/src/unit-constructor1.cpp +1537 -0
  1372. data/vendor/simdjson/dependencies/json/test/src/unit-constructor2.cpp +192 -0
  1373. data/vendor/simdjson/dependencies/json/test/src/unit-convenience.cpp +117 -0
  1374. data/vendor/simdjson/dependencies/json/test/src/unit-conversions.cpp +1577 -0
  1375. data/vendor/simdjson/dependencies/json/test/src/unit-deserialization.cpp +1026 -0
  1376. data/vendor/simdjson/dependencies/json/test/src/unit-element_access1.cpp +974 -0
  1377. data/vendor/simdjson/dependencies/json/test/src/unit-element_access2.cpp +1109 -0
  1378. data/vendor/simdjson/dependencies/json/test/src/unit-inspection.cpp +442 -0
  1379. data/vendor/simdjson/dependencies/json/test/src/unit-items.cpp +1450 -0
  1380. data/vendor/simdjson/dependencies/json/test/src/unit-iterators1.cpp +1692 -0
  1381. data/vendor/simdjson/dependencies/json/test/src/unit-iterators2.cpp +906 -0
  1382. data/vendor/simdjson/dependencies/json/test/src/unit-json_patch.cpp +1295 -0
  1383. data/vendor/simdjson/dependencies/json/test/src/unit-json_pointer.cpp +646 -0
  1384. data/vendor/simdjson/dependencies/json/test/src/unit-merge_patch.cpp +262 -0
  1385. data/vendor/simdjson/dependencies/json/test/src/unit-meta.cpp +57 -0
  1386. data/vendor/simdjson/dependencies/json/test/src/unit-modifiers.cpp +941 -0
  1387. data/vendor/simdjson/dependencies/json/test/src/unit-msgpack.cpp +1607 -0
  1388. data/vendor/simdjson/dependencies/json/test/src/unit-noexcept.cpp +82 -0
  1389. data/vendor/simdjson/dependencies/json/test/src/unit-pointer_access.cpp +444 -0
  1390. data/vendor/simdjson/dependencies/json/test/src/unit-readme.cpp +327 -0
  1391. data/vendor/simdjson/dependencies/json/test/src/unit-reference_access.cpp +318 -0
  1392. data/vendor/simdjson/dependencies/json/test/src/unit-regression.cpp +1830 -0
  1393. data/vendor/simdjson/dependencies/json/test/src/unit-serialization.cpp +191 -0
  1394. data/vendor/simdjson/dependencies/json/test/src/unit-testsuites.cpp +1415 -0
  1395. data/vendor/simdjson/dependencies/json/test/src/unit-to_chars.cpp +537 -0
  1396. data/vendor/simdjson/dependencies/json/test/src/unit-ubjson.cpp +2295 -0
  1397. data/vendor/simdjson/dependencies/json/test/src/unit-udt.cpp +830 -0
  1398. data/vendor/simdjson/dependencies/json/test/src/unit-unicode.cpp +1610 -0
  1399. data/vendor/simdjson/dependencies/json/test/src/unit-wstring.cpp +117 -0
  1400. data/vendor/simdjson/dependencies/json/test/src/unit.cpp +31 -0
  1401. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/CMakeLists.txt +45 -0
  1402. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerCorpus.h +217 -0
  1403. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerCrossOver.cpp +52 -0
  1404. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerDefs.h +89 -0
  1405. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerDictionary.h +124 -0
  1406. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerDriver.cpp +545 -0
  1407. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctions.def +50 -0
  1408. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctions.h +35 -0
  1409. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctionsDlsym.cpp +52 -0
  1410. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctionsWeak.cpp +53 -0
  1411. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctionsWeakAlias.cpp +56 -0
  1412. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerFlags.def +115 -0
  1413. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerIO.cpp +117 -0
  1414. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerIO.h +64 -0
  1415. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerIOPosix.cpp +88 -0
  1416. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerIOWindows.cpp +282 -0
  1417. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerInterface.h +67 -0
  1418. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerInternal.h +182 -0
  1419. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerLoop.cpp +792 -0
  1420. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMain.cpp +21 -0
  1421. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMerge.cpp +261 -0
  1422. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMerge.h +70 -0
  1423. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMutate.cpp +527 -0
  1424. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMutate.h +145 -0
  1425. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerOptions.h +68 -0
  1426. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerRandom.h +36 -0
  1427. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerSHA1.cpp +222 -0
  1428. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerSHA1.h +33 -0
  1429. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerTracePC.cpp +339 -0
  1430. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerTracePC.h +158 -0
  1431. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerTraceState.cpp +325 -0
  1432. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtil.cpp +218 -0
  1433. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtil.h +72 -0
  1434. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtilDarwin.cpp +152 -0
  1435. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtilLinux.cpp +24 -0
  1436. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtilPosix.cpp +117 -0
  1437. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtilWindows.cpp +182 -0
  1438. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerValueBitMap.h +87 -0
  1439. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/README.txt +2 -0
  1440. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/afl/afl_driver.cpp +295 -0
  1441. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/build.sh +10 -0
  1442. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/cxx.dict +122 -0
  1443. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/standalone/StandaloneFuzzTargetMain.c +41 -0
  1444. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/AFLDriverTest.cpp +22 -0
  1445. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/AbsNegAndConstant64Test.cpp +23 -0
  1446. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/AbsNegAndConstantTest.cpp +23 -0
  1447. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/AccumulateAllocationsTest.cpp +17 -0
  1448. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/BufferOverflowOnInput.cpp +23 -0
  1449. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CMakeLists.txt +217 -0
  1450. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CallerCalleeTest.cpp +59 -0
  1451. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CounterTest.cpp +18 -0
  1452. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CustomCrossOverTest.cpp +63 -0
  1453. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CustomMutatorTest.cpp +38 -0
  1454. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DSO1.cpp +12 -0
  1455. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DSO2.cpp +12 -0
  1456. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DSOTestExtra.cpp +11 -0
  1457. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DSOTestMain.cpp +31 -0
  1458. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DivTest.cpp +20 -0
  1459. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/EmptyTest.cpp +11 -0
  1460. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/FourIndependentBranchesTest.cpp +22 -0
  1461. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/FullCoverageSetTest.cpp +24 -0
  1462. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/FuzzerUnittest.cpp +738 -0
  1463. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/InitializeTest.cpp +28 -0
  1464. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/LeakTest.cpp +17 -0
  1465. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/LeakTimeoutTest.cpp +17 -0
  1466. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/LoadTest.cpp +22 -0
  1467. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/MemcmpTest.cpp +31 -0
  1468. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/NthRunCrashTest.cpp +18 -0
  1469. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/NullDerefOnEmptyTest.cpp +19 -0
  1470. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/NullDerefTest.cpp +26 -0
  1471. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/OneHugeAllocTest.cpp +28 -0
  1472. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/OutOfMemorySingleLargeMallocTest.cpp +27 -0
  1473. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/OutOfMemoryTest.cpp +31 -0
  1474. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/RepeatedBytesTest.cpp +29 -0
  1475. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/RepeatedMemcmp.cpp +22 -0
  1476. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ShrinkControlFlowTest.cpp +28 -0
  1477. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ShrinkValueProfileTest.cpp +22 -0
  1478. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SignedIntOverflowTest.cpp +28 -0
  1479. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleCmpTest.cpp +46 -0
  1480. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleDictionaryTest.cpp +29 -0
  1481. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleHashTest.cpp +40 -0
  1482. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleTest.cpp +27 -0
  1483. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleThreadedTest.cpp +25 -0
  1484. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SingleMemcmpTest.cpp +17 -0
  1485. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SingleStrcmpTest.cpp +17 -0
  1486. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SingleStrncmpTest.cpp +17 -0
  1487. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SpamyTest.cpp +21 -0
  1488. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/StrcmpTest.cpp +32 -0
  1489. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/StrncmpOOBTest.cpp +21 -0
  1490. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/StrncmpTest.cpp +28 -0
  1491. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/StrstrTest.cpp +28 -0
  1492. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SwapCmpTest.cpp +34 -0
  1493. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/Switch2Test.cpp +35 -0
  1494. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SwitchTest.cpp +58 -0
  1495. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ThreadedLeakTest.cpp +18 -0
  1496. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ThreadedTest.cpp +26 -0
  1497. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/TimeoutEmptyTest.cpp +14 -0
  1498. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/TimeoutTest.cpp +26 -0
  1499. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/TraceMallocTest.cpp +27 -0
  1500. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/UninstrumentedTest.cpp +11 -0
  1501. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/afl-driver-extra-stats.test +28 -0
  1502. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/afl-driver-stderr.test +10 -0
  1503. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/caller-callee.test +2 -0
  1504. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/coverage.test +19 -0
  1505. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/dict1.txt +4 -0
  1506. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/dump_coverage.test +16 -0
  1507. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-customcrossover.test +10 -0
  1508. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-custommutator.test +4 -0
  1509. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-dict.test +6 -0
  1510. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-dirs.test +15 -0
  1511. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-fdmask.test +30 -0
  1512. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-finalstats.test +11 -0
  1513. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-flags.test +10 -0
  1514. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-jobs.test +29 -0
  1515. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-leak.test +35 -0
  1516. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-oom-with-profile.test +6 -0
  1517. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-oom.test +11 -0
  1518. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-printcovpcs.test +8 -0
  1519. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-runs.test +8 -0
  1520. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-seed.test +3 -0
  1521. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-segv.test +5 -0
  1522. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-singleinputs.test +16 -0
  1523. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-threaded.test +7 -0
  1524. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-timeout.test +19 -0
  1525. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-traces-hooks.test +25 -0
  1526. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-ubsan.test +4 -0
  1527. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer.test +57 -0
  1528. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/hi.txt +1 -0
  1529. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/lit.cfg +29 -0
  1530. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/lit.site.cfg.in +4 -0
  1531. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/merge.test +46 -0
  1532. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/minimize_crash.test +6 -0
  1533. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/no-coverage/CMakeLists.txt +29 -0
  1534. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/repeated-bytes.test +2 -0
  1535. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/shrink.test +7 -0
  1536. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/simple-cmp.test +2 -0
  1537. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/standalone.test +4 -0
  1538. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/swap-cmp.test +2 -0
  1539. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/trace-malloc.test +10 -0
  1540. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ubsan/CMakeLists.txt +15 -0
  1541. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ulimit.test +2 -0
  1542. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/uninstrumented/CMakeLists.txt +16 -0
  1543. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/unit/lit.cfg +7 -0
  1544. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/unit/lit.site.cfg.in +2 -0
  1545. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-cmp.test +2 -0
  1546. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-cmp2.test +2 -0
  1547. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-cmp3.test +2 -0
  1548. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-cmp4.test +2 -0
  1549. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-div.test +3 -0
  1550. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-load.test +3 -0
  1551. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-mem.test +2 -0
  1552. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-set.test +3 -0
  1553. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-strcmp.test +2 -0
  1554. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-strncmp.test +2 -0
  1555. data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-switch.test +3 -0
  1556. data/vendor/simdjson/dependencies/json/test/thirdparty/doctest/LICENSE.txt +21 -0
  1557. data/vendor/simdjson/dependencies/json/test/thirdparty/doctest/doctest.h +6025 -0
  1558. data/vendor/simdjson/dependencies/json/test/thirdparty/doctest/doctest_compatibility.h +37 -0
  1559. data/vendor/simdjson/dependencies/json/test/thirdparty/fastcov/LICENSE +21 -0
  1560. data/vendor/simdjson/dependencies/json/test/thirdparty/fastcov/README.md +46 -0
  1561. data/vendor/simdjson/dependencies/json/test/thirdparty/fastcov/fastcov.py +372 -0
  1562. data/vendor/simdjson/dependencies/json/test/thirdparty/fifo_map/LICENSE.MIT +21 -0
  1563. data/vendor/simdjson/dependencies/json/test/thirdparty/fifo_map/fifo_map.hpp +530 -0
  1564. data/vendor/simdjson/dependencies/json/test/thirdparty/imapdl/filterbr.py +109 -0
  1565. data/vendor/simdjson/dependencies/json/test/thirdparty/imapdl/gpl-3.0.txt +674 -0
  1566. data/vendor/simdjson/dependencies/json/third_party/amalgamate/CHANGES.md +10 -0
  1567. data/vendor/simdjson/dependencies/json/third_party/amalgamate/LICENSE.md +27 -0
  1568. data/vendor/simdjson/dependencies/json/third_party/amalgamate/README.md +66 -0
  1569. data/vendor/simdjson/dependencies/json/third_party/amalgamate/amalgamate.py +299 -0
  1570. data/vendor/simdjson/dependencies/json/third_party/cpplint/LICENSE +27 -0
  1571. data/vendor/simdjson/dependencies/json/third_party/cpplint/README.rst +80 -0
  1572. data/vendor/simdjson/dependencies/json/third_party/cpplint/cpplint.py +6583 -0
  1573. data/vendor/simdjson/dependencies/json/third_party/cpplint/update.sh +5 -0
  1574. data/vendor/simdjson/dependencies/json11/CMakeLists.txt +57 -0
  1575. data/vendor/simdjson/dependencies/json11/LICENSE.txt +19 -0
  1576. data/vendor/simdjson/dependencies/json11/Makefile +15 -0
  1577. data/vendor/simdjson/dependencies/json11/README.md +42 -0
  1578. data/vendor/simdjson/dependencies/json11/json11.cpp +788 -0
  1579. data/vendor/simdjson/dependencies/json11/json11.hpp +232 -0
  1580. data/vendor/simdjson/dependencies/json11/json11.pc.in +9 -0
  1581. data/vendor/simdjson/dependencies/json11/test.cpp +281 -0
  1582. data/vendor/simdjson/dependencies/jsoncpp/AUTHORS +111 -0
  1583. data/vendor/simdjson/dependencies/jsoncpp/CMakeLists.txt +186 -0
  1584. data/vendor/simdjson/dependencies/jsoncpp/CTestConfig.cmake +15 -0
  1585. data/vendor/simdjson/dependencies/jsoncpp/LICENSE +55 -0
  1586. data/vendor/simdjson/dependencies/jsoncpp/README.md +144 -0
  1587. data/vendor/simdjson/dependencies/jsoncpp/amalgamate.py +155 -0
  1588. data/vendor/simdjson/dependencies/jsoncpp/appveyor.yml +26 -0
  1589. data/vendor/simdjson/dependencies/jsoncpp/dev.makefile +35 -0
  1590. data/vendor/simdjson/dependencies/jsoncpp/devtools/__init__.py +6 -0
  1591. data/vendor/simdjson/dependencies/jsoncpp/devtools/antglob.py +205 -0
  1592. data/vendor/simdjson/dependencies/jsoncpp/devtools/batchbuild.py +278 -0
  1593. data/vendor/simdjson/dependencies/jsoncpp/devtools/fixeol.py +70 -0
  1594. data/vendor/simdjson/dependencies/jsoncpp/devtools/licenseupdater.py +94 -0
  1595. data/vendor/simdjson/dependencies/jsoncpp/devtools/tarball.py +52 -0
  1596. data/vendor/simdjson/dependencies/jsoncpp/doc/doxyfile.in +2302 -0
  1597. data/vendor/simdjson/dependencies/jsoncpp/doc/footer.html +21 -0
  1598. data/vendor/simdjson/dependencies/jsoncpp/doc/header.html +64 -0
  1599. data/vendor/simdjson/dependencies/jsoncpp/doc/jsoncpp.dox +164 -0
  1600. data/vendor/simdjson/dependencies/jsoncpp/doc/readme.txt +1 -0
  1601. data/vendor/simdjson/dependencies/jsoncpp/doc/roadmap.dox +3 -0
  1602. data/vendor/simdjson/dependencies/jsoncpp/doc/web_doxyfile.in +2290 -0
  1603. data/vendor/simdjson/dependencies/jsoncpp/doxybuild.py +189 -0
  1604. data/vendor/simdjson/dependencies/jsoncpp/include/CMakeLists.txt +2 -0
  1605. data/vendor/simdjson/dependencies/jsoncpp/include/json/allocator.h +89 -0
  1606. data/vendor/simdjson/dependencies/jsoncpp/include/json/assertions.h +59 -0
  1607. data/vendor/simdjson/dependencies/jsoncpp/include/json/autolink.h +25 -0
  1608. data/vendor/simdjson/dependencies/jsoncpp/include/json/config.h +198 -0
  1609. data/vendor/simdjson/dependencies/jsoncpp/include/json/features.h +61 -0
  1610. data/vendor/simdjson/dependencies/jsoncpp/include/json/forwards.h +37 -0
  1611. data/vendor/simdjson/dependencies/jsoncpp/include/json/json.h +15 -0
  1612. data/vendor/simdjson/dependencies/jsoncpp/include/json/reader.h +417 -0
  1613. data/vendor/simdjson/dependencies/jsoncpp/include/json/value.h +909 -0
  1614. data/vendor/simdjson/dependencies/jsoncpp/include/json/version.h +22 -0
  1615. data/vendor/simdjson/dependencies/jsoncpp/include/json/writer.h +368 -0
  1616. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/jsoncpp.sln +42 -0
  1617. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/jsontest.vcxproj +96 -0
  1618. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/jsontest.vcxproj.filters +13 -0
  1619. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/lib_json.vcxproj +143 -0
  1620. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/lib_json.vcxproj.filters +33 -0
  1621. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/test_lib_json.vcxproj +109 -0
  1622. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/test_lib_json.vcxproj.filters +24 -0
  1623. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2017/jsoncpp.sln +64 -0
  1624. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2017/jsontest.vcxproj +168 -0
  1625. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2017/lib_json.vcxproj +258 -0
  1626. data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2017/test_lib_json.vcxproj +189 -0
  1627. data/vendor/simdjson/dependencies/jsoncpp/makefiles/vs71/jsoncpp.sln +46 -0
  1628. data/vendor/simdjson/dependencies/jsoncpp/makefiles/vs71/jsontest.vcproj +119 -0
  1629. data/vendor/simdjson/dependencies/jsoncpp/makefiles/vs71/lib_json.vcproj +205 -0
  1630. data/vendor/simdjson/dependencies/jsoncpp/makefiles/vs71/test_lib_json.vcproj +130 -0
  1631. data/vendor/simdjson/dependencies/jsoncpp/makerelease.py +390 -0
  1632. data/vendor/simdjson/dependencies/jsoncpp/meson.build +115 -0
  1633. data/vendor/simdjson/dependencies/jsoncpp/pkg-config/jsoncpp.pc.in +9 -0
  1634. data/vendor/simdjson/dependencies/jsoncpp/src/CMakeLists.txt +5 -0
  1635. data/vendor/simdjson/dependencies/jsoncpp/src/jsontestrunner/CMakeLists.txt +36 -0
  1636. data/vendor/simdjson/dependencies/jsoncpp/src/jsontestrunner/main.cpp +300 -0
  1637. data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/CMakeLists.txt +145 -0
  1638. data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_reader.cpp +2008 -0
  1639. data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_tool.h +134 -0
  1640. data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_value.cpp +1713 -0
  1641. data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_valueiterator.inl +159 -0
  1642. data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_writer.cpp +1253 -0
  1643. data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/version.h.in +20 -0
  1644. data/vendor/simdjson/dependencies/jsoncpp/src/test_lib_json/CMakeLists.txt +40 -0
  1645. data/vendor/simdjson/dependencies/jsoncpp/src/test_lib_json/jsontest.cpp +435 -0
  1646. data/vendor/simdjson/dependencies/jsoncpp/src/test_lib_json/jsontest.h +276 -0
  1647. data/vendor/simdjson/dependencies/jsoncpp/src/test_lib_json/main.cpp +2597 -0
  1648. data/vendor/simdjson/dependencies/jsoncpp/test/cleantests.py +16 -0
  1649. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_01.expected +1 -0
  1650. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_02.expected +2 -0
  1651. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_03.expected +6 -0
  1652. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_04.expected +5 -0
  1653. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_05.expected +100 -0
  1654. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_06.expected +5 -0
  1655. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_07.expected +2122 -0
  1656. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_01.expected +1 -0
  1657. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_02.expected +1 -0
  1658. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_03.expected +3 -0
  1659. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_04.expected +2 -0
  1660. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_05.expected +2 -0
  1661. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_06.expected +2 -0
  1662. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_07.expected +2 -0
  1663. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_08.expected +3 -0
  1664. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_09.expected +4 -0
  1665. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_comment_00.expected +4 -0
  1666. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_comment_01.expected +10 -0
  1667. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_comment_02.expected +23 -0
  1668. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_complex_01.expected +20 -0
  1669. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_01.expected +2 -0
  1670. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_02.expected +2 -0
  1671. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_03.expected +2 -0
  1672. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_04.expected +3 -0
  1673. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_05.expected +2 -0
  1674. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_06_64bits.expected +1 -0
  1675. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_07_64bits.expected +1 -0
  1676. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_08_64bits.expected +1 -0
  1677. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_large_01.expected +2122 -0
  1678. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_object_01.expected +1 -0
  1679. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_object_02.expected +2 -0
  1680. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_object_03.expected +4 -0
  1681. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_object_04.expected +2 -0
  1682. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_preserve_comment_01.expected +11 -0
  1683. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_01.expected +3 -0
  1684. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_02.expected +3 -0
  1685. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_03.expected +3 -0
  1686. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_04.expected +3 -0
  1687. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_05.expected +4 -0
  1688. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_06.expected +4 -0
  1689. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_07.expected +4 -0
  1690. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_08.expected +4 -0
  1691. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_09.expected +4 -0
  1692. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_10.expected +4 -0
  1693. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_11.expected +4 -0
  1694. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_12.expected +2 -0
  1695. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_01.expected +1 -0
  1696. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_02.expected +1 -0
  1697. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_03.expected +1 -0
  1698. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_04.expected +2 -0
  1699. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_05.expected +2 -0
  1700. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_01.expected +1 -0
  1701. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_02.expected +1 -0
  1702. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_03.expected +1 -0
  1703. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_04.expected +1 -0
  1704. data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_05.expected +2 -0
  1705. data/vendor/simdjson/dependencies/jsoncpp/test/generate_expected.py +17 -0
  1706. data/vendor/simdjson/dependencies/jsoncpp/test/jsonchecker/readme.txt +3 -0
  1707. data/vendor/simdjson/dependencies/jsoncpp/test/pyjsontestrunner.py +71 -0
  1708. data/vendor/simdjson/dependencies/jsoncpp/test/runjsontests.py +210 -0
  1709. data/vendor/simdjson/dependencies/jsoncpp/test/rununittests.py +84 -0
  1710. data/vendor/simdjson/dependencies/jsoncpp/version +1 -0
  1711. data/vendor/simdjson/dependencies/jsoncpp/version.in +1 -0
  1712. data/vendor/simdjson/dependencies/jsoncppdist/jsoncpp.cpp +8 -0
  1713. data/vendor/simdjson/dependencies/rapidjson/CHANGELOG.md +158 -0
  1714. data/vendor/simdjson/dependencies/rapidjson/CMakeLists.txt +221 -0
  1715. data/vendor/simdjson/dependencies/rapidjson/CMakeModules/FindGTestSrc.cmake +30 -0
  1716. data/vendor/simdjson/dependencies/rapidjson/RapidJSON.pc.in +7 -0
  1717. data/vendor/simdjson/dependencies/rapidjson/RapidJSONConfig.cmake.in +15 -0
  1718. data/vendor/simdjson/dependencies/rapidjson/RapidJSONConfigVersion.cmake.in +10 -0
  1719. data/vendor/simdjson/dependencies/rapidjson/appveyor.yml +41 -0
  1720. data/vendor/simdjson/dependencies/rapidjson/bin/data/readme.txt +1 -0
  1721. data/vendor/simdjson/dependencies/rapidjson/bin/draft-04/schema +150 -0
  1722. data/vendor/simdjson/dependencies/rapidjson/bin/jsonchecker/readme.txt +3 -0
  1723. data/vendor/simdjson/dependencies/rapidjson/bin/jsonschema/LICENSE +19 -0
  1724. data/vendor/simdjson/dependencies/rapidjson/bin/jsonschema/README.md +148 -0
  1725. data/vendor/simdjson/dependencies/rapidjson/bin/jsonschema/bin/jsonschema_suite +283 -0
  1726. data/vendor/simdjson/dependencies/rapidjson/bin/jsonschema/tox.ini +8 -0
  1727. data/vendor/simdjson/dependencies/rapidjson/bin/types/readme.txt +1 -0
  1728. data/vendor/simdjson/dependencies/rapidjson/contrib/natvis/LICENSE +45 -0
  1729. data/vendor/simdjson/dependencies/rapidjson/contrib/natvis/README.md +7 -0
  1730. data/vendor/simdjson/dependencies/rapidjson/contrib/natvis/rapidjson.natvis +38 -0
  1731. data/vendor/simdjson/dependencies/rapidjson/doc/CMakeLists.txt +27 -0
  1732. data/vendor/simdjson/dependencies/rapidjson/doc/Doxyfile.in +2369 -0
  1733. data/vendor/simdjson/dependencies/rapidjson/doc/Doxyfile.zh-cn.in +2369 -0
  1734. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/architecture.dot +50 -0
  1735. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/architecture.png +0 -0
  1736. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/insituparsing.dot +65 -0
  1737. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/insituparsing.png +0 -0
  1738. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/iterative-parser-states-diagram.dot +62 -0
  1739. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/iterative-parser-states-diagram.png +0 -0
  1740. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/makefile +8 -0
  1741. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move1.dot +47 -0
  1742. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move1.png +0 -0
  1743. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move2.dot +62 -0
  1744. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move2.png +0 -0
  1745. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move3.dot +60 -0
  1746. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move3.png +0 -0
  1747. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/normalparsing.dot +56 -0
  1748. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/normalparsing.png +0 -0
  1749. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/simpledom.dot +54 -0
  1750. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/simpledom.png +0 -0
  1751. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/tutorial.dot +58 -0
  1752. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/tutorial.png +0 -0
  1753. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/utilityclass.dot +73 -0
  1754. data/vendor/simdjson/dependencies/rapidjson/doc/diagram/utilityclass.png +0 -0
  1755. data/vendor/simdjson/dependencies/rapidjson/doc/dom.md +280 -0
  1756. data/vendor/simdjson/dependencies/rapidjson/doc/dom.zh-cn.md +284 -0
  1757. data/vendor/simdjson/dependencies/rapidjson/doc/encoding.md +146 -0
  1758. data/vendor/simdjson/dependencies/rapidjson/doc/encoding.zh-cn.md +152 -0
  1759. data/vendor/simdjson/dependencies/rapidjson/doc/faq.md +289 -0
  1760. data/vendor/simdjson/dependencies/rapidjson/doc/faq.zh-cn.md +290 -0
  1761. data/vendor/simdjson/dependencies/rapidjson/doc/features.md +104 -0
  1762. data/vendor/simdjson/dependencies/rapidjson/doc/features.zh-cn.md +103 -0
  1763. data/vendor/simdjson/dependencies/rapidjson/doc/internals.md +368 -0
  1764. data/vendor/simdjson/dependencies/rapidjson/doc/internals.zh-cn.md +363 -0
  1765. data/vendor/simdjson/dependencies/rapidjson/doc/logo/rapidjson.png +0 -0
  1766. data/vendor/simdjson/dependencies/rapidjson/doc/logo/rapidjson.svg +119 -0
  1767. data/vendor/simdjson/dependencies/rapidjson/doc/misc/DoxygenLayout.xml +194 -0
  1768. data/vendor/simdjson/dependencies/rapidjson/doc/misc/doxygenextra.css +274 -0
  1769. data/vendor/simdjson/dependencies/rapidjson/doc/misc/footer.html +11 -0
  1770. data/vendor/simdjson/dependencies/rapidjson/doc/misc/header.html +24 -0
  1771. data/vendor/simdjson/dependencies/rapidjson/doc/npm.md +31 -0
  1772. data/vendor/simdjson/dependencies/rapidjson/doc/performance.md +26 -0
  1773. data/vendor/simdjson/dependencies/rapidjson/doc/performance.zh-cn.md +26 -0
  1774. data/vendor/simdjson/dependencies/rapidjson/doc/pointer.md +234 -0
  1775. data/vendor/simdjson/dependencies/rapidjson/doc/pointer.zh-cn.md +234 -0
  1776. data/vendor/simdjson/dependencies/rapidjson/doc/sax.md +509 -0
  1777. data/vendor/simdjson/dependencies/rapidjson/doc/sax.zh-cn.md +487 -0
  1778. data/vendor/simdjson/dependencies/rapidjson/doc/schema.md +505 -0
  1779. data/vendor/simdjson/dependencies/rapidjson/doc/schema.zh-cn.md +237 -0
  1780. data/vendor/simdjson/dependencies/rapidjson/doc/stream.md +429 -0
  1781. data/vendor/simdjson/dependencies/rapidjson/doc/stream.zh-cn.md +429 -0
  1782. data/vendor/simdjson/dependencies/rapidjson/doc/tutorial.md +536 -0
  1783. data/vendor/simdjson/dependencies/rapidjson/doc/tutorial.zh-cn.md +534 -0
  1784. data/vendor/simdjson/dependencies/rapidjson/docker/debian/Dockerfile +8 -0
  1785. data/vendor/simdjson/dependencies/rapidjson/example/CMakeLists.txt +45 -0
  1786. data/vendor/simdjson/dependencies/rapidjson/example/archiver/archiver.cpp +292 -0
  1787. data/vendor/simdjson/dependencies/rapidjson/example/archiver/archiver.h +145 -0
  1788. data/vendor/simdjson/dependencies/rapidjson/example/archiver/archivertest.cpp +287 -0
  1789. data/vendor/simdjson/dependencies/rapidjson/example/capitalize/capitalize.cpp +67 -0
  1790. data/vendor/simdjson/dependencies/rapidjson/example/condense/condense.cpp +32 -0
  1791. data/vendor/simdjson/dependencies/rapidjson/example/filterkey/filterkey.cpp +135 -0
  1792. data/vendor/simdjson/dependencies/rapidjson/example/filterkeydom/filterkeydom.cpp +170 -0
  1793. data/vendor/simdjson/dependencies/rapidjson/example/jsonx/jsonx.cpp +207 -0
  1794. data/vendor/simdjson/dependencies/rapidjson/example/lookaheadparser/lookaheadparser.cpp +350 -0
  1795. data/vendor/simdjson/dependencies/rapidjson/example/messagereader/messagereader.cpp +105 -0
  1796. data/vendor/simdjson/dependencies/rapidjson/example/parsebyparts/parsebyparts.cpp +176 -0
  1797. data/vendor/simdjson/dependencies/rapidjson/example/pretty/pretty.cpp +30 -0
  1798. data/vendor/simdjson/dependencies/rapidjson/example/prettyauto/prettyauto.cpp +56 -0
  1799. data/vendor/simdjson/dependencies/rapidjson/example/schemavalidator/schemavalidator.cpp +78 -0
  1800. data/vendor/simdjson/dependencies/rapidjson/example/serialize/serialize.cpp +173 -0
  1801. data/vendor/simdjson/dependencies/rapidjson/example/simpledom/simpledom.cpp +29 -0
  1802. data/vendor/simdjson/dependencies/rapidjson/example/simplepullreader/simplepullreader.cpp +53 -0
  1803. data/vendor/simdjson/dependencies/rapidjson/example/simplereader/simplereader.cpp +42 -0
  1804. data/vendor/simdjson/dependencies/rapidjson/example/simplewriter/simplewriter.cpp +36 -0
  1805. data/vendor/simdjson/dependencies/rapidjson/example/tutorial/tutorial.cpp +151 -0
  1806. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/allocators.h +284 -0
  1807. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/cursorstreamwrapper.h +78 -0
  1808. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/document.h +2658 -0
  1809. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/encodedstream.h +299 -0
  1810. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/encodings.h +716 -0
  1811. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/error/en.h +74 -0
  1812. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/error/error.h +161 -0
  1813. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/filereadstream.h +99 -0
  1814. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/filewritestream.h +104 -0
  1815. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/fwd.h +151 -0
  1816. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/biginteger.h +290 -0
  1817. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/diyfp.h +258 -0
  1818. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/dtoa.h +245 -0
  1819. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/ieee754.h +78 -0
  1820. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/itoa.h +309 -0
  1821. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/meta.h +186 -0
  1822. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/pow10.h +55 -0
  1823. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/regex.h +732 -0
  1824. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/stack.h +231 -0
  1825. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/strfunc.h +69 -0
  1826. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/strtod.h +269 -0
  1827. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/swap.h +46 -0
  1828. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/istreamwrapper.h +113 -0
  1829. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/memorybuffer.h +70 -0
  1830. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/memorystream.h +71 -0
  1831. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/msinttypes/inttypes.h +316 -0
  1832. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/msinttypes/stdint.h +300 -0
  1833. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/ostreamwrapper.h +81 -0
  1834. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/pointer.h +1357 -0
  1835. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/prettywriter.h +277 -0
  1836. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/rapidjson.h +628 -0
  1837. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/reader.h +2216 -0
  1838. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/schema.h +2483 -0
  1839. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/stream.h +223 -0
  1840. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/stringbuffer.h +121 -0
  1841. data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/writer.h +710 -0
  1842. data/vendor/simdjson/dependencies/rapidjson/include_dirs.js +2 -0
  1843. data/vendor/simdjson/dependencies/rapidjson/license.txt +57 -0
  1844. data/vendor/simdjson/dependencies/rapidjson/rapidjson.autopkg +77 -0
  1845. data/vendor/simdjson/dependencies/rapidjson/readme.md +160 -0
  1846. data/vendor/simdjson/dependencies/rapidjson/readme.zh-cn.md +152 -0
  1847. data/vendor/simdjson/dependencies/rapidjson/test/CMakeLists.txt +20 -0
  1848. data/vendor/simdjson/dependencies/rapidjson/test/perftest/CMakeLists.txt +28 -0
  1849. data/vendor/simdjson/dependencies/rapidjson/test/perftest/misctest.cpp +974 -0
  1850. data/vendor/simdjson/dependencies/rapidjson/test/perftest/perftest.cpp +24 -0
  1851. data/vendor/simdjson/dependencies/rapidjson/test/perftest/perftest.h +185 -0
  1852. data/vendor/simdjson/dependencies/rapidjson/test/perftest/platformtest.cpp +166 -0
  1853. data/vendor/simdjson/dependencies/rapidjson/test/perftest/rapidjsontest.cpp +472 -0
  1854. data/vendor/simdjson/dependencies/rapidjson/test/perftest/schematest.cpp +216 -0
  1855. data/vendor/simdjson/dependencies/rapidjson/test/unittest/CMakeLists.txt +92 -0
  1856. data/vendor/simdjson/dependencies/rapidjson/test/unittest/allocatorstest.cpp +102 -0
  1857. data/vendor/simdjson/dependencies/rapidjson/test/unittest/bigintegertest.cpp +133 -0
  1858. data/vendor/simdjson/dependencies/rapidjson/test/unittest/cursorstreamwrappertest.cpp +115 -0
  1859. data/vendor/simdjson/dependencies/rapidjson/test/unittest/documenttest.cpp +672 -0
  1860. data/vendor/simdjson/dependencies/rapidjson/test/unittest/dtoatest.cpp +98 -0
  1861. data/vendor/simdjson/dependencies/rapidjson/test/unittest/encodedstreamtest.cpp +313 -0
  1862. data/vendor/simdjson/dependencies/rapidjson/test/unittest/encodingstest.cpp +451 -0
  1863. data/vendor/simdjson/dependencies/rapidjson/test/unittest/filestreamtest.cpp +112 -0
  1864. data/vendor/simdjson/dependencies/rapidjson/test/unittest/fwdtest.cpp +230 -0
  1865. data/vendor/simdjson/dependencies/rapidjson/test/unittest/istreamwrappertest.cpp +181 -0
  1866. data/vendor/simdjson/dependencies/rapidjson/test/unittest/itoatest.cpp +160 -0
  1867. data/vendor/simdjson/dependencies/rapidjson/test/unittest/jsoncheckertest.cpp +143 -0
  1868. data/vendor/simdjson/dependencies/rapidjson/test/unittest/namespacetest.cpp +70 -0
  1869. data/vendor/simdjson/dependencies/rapidjson/test/unittest/ostreamwrappertest.cpp +92 -0
  1870. data/vendor/simdjson/dependencies/rapidjson/test/unittest/pointertest.cpp +1529 -0
  1871. data/vendor/simdjson/dependencies/rapidjson/test/unittest/prettywritertest.cpp +344 -0
  1872. data/vendor/simdjson/dependencies/rapidjson/test/unittest/readertest.cpp +1895 -0
  1873. data/vendor/simdjson/dependencies/rapidjson/test/unittest/regextest.cpp +638 -0
  1874. data/vendor/simdjson/dependencies/rapidjson/test/unittest/schematest.cpp +2045 -0
  1875. data/vendor/simdjson/dependencies/rapidjson/test/unittest/simdtest.cpp +219 -0
  1876. data/vendor/simdjson/dependencies/rapidjson/test/unittest/strfunctest.cpp +30 -0
  1877. data/vendor/simdjson/dependencies/rapidjson/test/unittest/stringbuffertest.cpp +192 -0
  1878. data/vendor/simdjson/dependencies/rapidjson/test/unittest/strtodtest.cpp +132 -0
  1879. data/vendor/simdjson/dependencies/rapidjson/test/unittest/unittest.cpp +51 -0
  1880. data/vendor/simdjson/dependencies/rapidjson/test/unittest/unittest.h +140 -0
  1881. data/vendor/simdjson/dependencies/rapidjson/test/unittest/valuetest.cpp +1851 -0
  1882. data/vendor/simdjson/dependencies/rapidjson/test/unittest/writertest.cpp +598 -0
  1883. data/vendor/simdjson/dependencies/rapidjson/test/valgrind.supp +17 -0
  1884. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/CMakeLists.txt +16 -0
  1885. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/README.md +141 -0
  1886. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/CHANGES +126 -0
  1887. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt +202 -0
  1888. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/CONTRIBUTORS +40 -0
  1889. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/LICENSE +28 -0
  1890. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/Makefile.am +224 -0
  1891. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/README.md +333 -0
  1892. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/configure.ac +146 -0
  1893. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/CheatSheet.md +562 -0
  1894. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/CookBook.md +3675 -0
  1895. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/DesignDoc.md +280 -0
  1896. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/DevGuide.md +132 -0
  1897. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/Documentation.md +12 -0
  1898. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/ForDummies.md +439 -0
  1899. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/FrequentlyAskedQuestions.md +628 -0
  1900. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/KnownIssues.md +19 -0
  1901. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CheatSheet.md +525 -0
  1902. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CookBook.md +3250 -0
  1903. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/Documentation.md +11 -0
  1904. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/ForDummies.md +439 -0
  1905. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/FrequentlyAskedQuestions.md +624 -0
  1906. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CheatSheet.md +534 -0
  1907. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CookBook.md +3342 -0
  1908. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/Documentation.md +12 -0
  1909. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/ForDummies.md +439 -0
  1910. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/FrequentlyAskedQuestions.md +628 -0
  1911. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CheatSheet.md +556 -0
  1912. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CookBook.md +3432 -0
  1913. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/Documentation.md +12 -0
  1914. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/ForDummies.md +439 -0
  1915. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/FrequentlyAskedQuestions.md +628 -0
  1916. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-actions.h +1205 -0
  1917. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-cardinalities.h +147 -0
  1918. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h +2377 -0
  1919. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h.pump +794 -0
  1920. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h +1095 -0
  1921. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +291 -0
  1922. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h +2179 -0
  1923. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h.pump +672 -0
  1924. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h +397 -0
  1925. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h.pump +161 -0
  1926. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h +4399 -0
  1927. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-actions.h +246 -0
  1928. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-matchers.h +58 -0
  1929. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-spec-builders.h +1847 -0
  1930. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock.h +94 -0
  1931. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +8 -0
  1932. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +10 -0
  1933. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-matchers.h +39 -0
  1934. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-port.h +46 -0
  1935. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h +279 -0
  1936. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h.pump +136 -0
  1937. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-internal-utils.h +511 -0
  1938. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-port.h +91 -0
  1939. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/make/Makefile +101 -0
  1940. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.sln +32 -0
  1941. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.vcproj +191 -0
  1942. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_config.vsprops +15 -0
  1943. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_main.vcproj +187 -0
  1944. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_test.vcproj +201 -0
  1945. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.sln +32 -0
  1946. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.vcxproj +82 -0
  1947. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_config.props +19 -0
  1948. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_main.vcxproj +88 -0
  1949. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_test.vcxproj +101 -0
  1950. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.sln +32 -0
  1951. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.vcxproj +84 -0
  1952. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_config.props +19 -0
  1953. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_main.vcxproj +90 -0
  1954. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_test.vcxproj +103 -0
  1955. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/fuse_gmock_files.py +240 -0
  1956. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/LICENSE +203 -0
  1957. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README +35 -0
  1958. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README.cppclean +115 -0
  1959. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/__init__.py +0 -0
  1960. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/ast.py +1733 -0
  1961. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class.py +227 -0
  1962. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class_test.py +448 -0
  1963. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/keywords.py +59 -0
  1964. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/tokenize.py +287 -0
  1965. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/utils.py +41 -0
  1966. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/gmock_gen.py +31 -0
  1967. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/gmock-config.in +303 -0
  1968. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/gmock_doctor.py +640 -0
  1969. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/upload.py +1387 -0
  1970. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/upload_gmock.py +78 -0
  1971. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-all.cc +47 -0
  1972. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-cardinalities.cc +156 -0
  1973. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-internal-utils.cc +174 -0
  1974. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-matchers.cc +498 -0
  1975. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-spec-builders.cc +823 -0
  1976. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock.cc +183 -0
  1977. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock_main.cc +54 -0
  1978. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-actions_test.cc +1411 -0
  1979. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-cardinalities_test.cc +428 -0
  1980. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-actions_test.cc +1228 -0
  1981. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-function-mockers_test.cc +622 -0
  1982. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-internal-utils_test.cc +127 -0
  1983. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-matchers_test.cc +1286 -0
  1984. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-internal-utils_test.cc +699 -0
  1985. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-matchers_test.cc +5648 -0
  1986. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-more-actions_test.cc +708 -0
  1987. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-nice-strict_test.cc +424 -0
  1988. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-port_test.cc +43 -0
  1989. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-spec-builders_test.cc +2644 -0
  1990. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_all_test.cc +51 -0
  1991. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_ex_test.cc +81 -0
  1992. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test.py +108 -0
  1993. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test_.cc +100 -0
  1994. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_link2_test.cc +40 -0
  1995. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.cc +40 -0
  1996. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.h +669 -0
  1997. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test.py +180 -0
  1998. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_.cc +291 -0
  1999. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_golden.txt +310 -0
  2000. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_stress_test.cc +322 -0
  2001. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_test.cc +220 -0
  2002. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_test_utils.py +112 -0
  2003. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/CHANGES +157 -0
  2004. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt +286 -0
  2005. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/CONTRIBUTORS +37 -0
  2006. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/LICENSE +28 -0
  2007. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/Makefile.am +310 -0
  2008. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/README.md +280 -0
  2009. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/cmake/internal_utils.cmake +242 -0
  2010. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest.cbproj +138 -0
  2011. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest.groupproj +54 -0
  2012. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest_all.cc +38 -0
  2013. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest_link.cc +40 -0
  2014. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest_main.cbproj +82 -0
  2015. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest_unittest.cbproj +88 -0
  2016. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/configure.ac +68 -0
  2017. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/AdvancedGuide.md +2182 -0
  2018. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/DevGuide.md +126 -0
  2019. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/Documentation.md +14 -0
  2020. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/FAQ.md +1087 -0
  2021. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/Primer.md +502 -0
  2022. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/PumpManual.md +177 -0
  2023. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/Samples.md +14 -0
  2024. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_AdvancedGuide.md +2096 -0
  2025. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Documentation.md +12 -0
  2026. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_FAQ.md +886 -0
  2027. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Primer.md +497 -0
  2028. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_PumpManual.md +177 -0
  2029. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_XcodeGuide.md +93 -0
  2030. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_AdvancedGuide.md +2178 -0
  2031. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Documentation.md +14 -0
  2032. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_FAQ.md +1038 -0
  2033. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Primer.md +501 -0
  2034. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_PumpManual.md +177 -0
  2035. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Samples.md +14 -0
  2036. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_XcodeGuide.md +93 -0
  2037. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_AdvancedGuide.md +2181 -0
  2038. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Documentation.md +14 -0
  2039. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_FAQ.md +1082 -0
  2040. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Primer.md +501 -0
  2041. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_PumpManual.md +177 -0
  2042. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Samples.md +14 -0
  2043. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_XcodeGuide.md +93 -0
  2044. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/XcodeGuide.md +93 -0
  2045. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-death-test.h +294 -0
  2046. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-message.h +250 -0
  2047. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h +1444 -0
  2048. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h.pump +510 -0
  2049. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-printers.h +993 -0
  2050. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-spi.h +232 -0
  2051. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-test-part.h +179 -0
  2052. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-typed-test.h +263 -0
  2053. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest.h +2236 -0
  2054. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_pred_impl.h +358 -0
  2055. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_prod.h +58 -0
  2056. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-port.h +69 -0
  2057. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-printers.h +42 -0
  2058. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest.h +41 -0
  2059. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h +319 -0
  2060. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-filepath.h +206 -0
  2061. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-internal.h +1238 -0
  2062. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-linked_ptr.h +243 -0
  2063. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h +5146 -0
  2064. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +286 -0
  2065. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util.h +731 -0
  2066. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port-arch.h +93 -0
  2067. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port.h +2554 -0
  2068. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-string.h +167 -0
  2069. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h +1020 -0
  2070. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h.pump +347 -0
  2071. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h +3331 -0
  2072. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h.pump +297 -0
  2073. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/m4/acx_pthread.m4 +363 -0
  2074. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/m4/gtest.m4 +74 -0
  2075. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/make/Makefile +82 -0
  2076. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.sln +45 -0
  2077. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.vcproj +126 -0
  2078. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest.sln +45 -0
  2079. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest.vcproj +126 -0
  2080. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main-md.vcproj +129 -0
  2081. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main.vcproj +129 -0
  2082. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test-md.vcproj +164 -0
  2083. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test.vcproj +164 -0
  2084. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest-md.vcproj +147 -0
  2085. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest.vcproj +147 -0
  2086. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/prime_tables.h +123 -0
  2087. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample1.cc +68 -0
  2088. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample1.h +43 -0
  2089. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample10_unittest.cc +144 -0
  2090. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample1_unittest.cc +153 -0
  2091. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample2.cc +56 -0
  2092. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample2.h +85 -0
  2093. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample2_unittest.cc +109 -0
  2094. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample3-inl.h +172 -0
  2095. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample3_unittest.cc +151 -0
  2096. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample4.cc +46 -0
  2097. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample4.h +53 -0
  2098. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample4_unittest.cc +45 -0
  2099. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample5_unittest.cc +199 -0
  2100. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample6_unittest.cc +224 -0
  2101. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample7_unittest.cc +130 -0
  2102. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample8_unittest.cc +173 -0
  2103. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample9_unittest.cc +160 -0
  2104. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/common.py +83 -0
  2105. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/fuse_gtest_files.py +253 -0
  2106. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/gen_gtest_pred_impl.py +730 -0
  2107. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/gtest-config.in +274 -0
  2108. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/pump.py +855 -0
  2109. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/release_docs.py +158 -0
  2110. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/test/Makefile +59 -0
  2111. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/upload.py +1387 -0
  2112. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/upload_gtest.py +78 -0
  2113. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-all.cc +48 -0
  2114. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-death-test.cc +1342 -0
  2115. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-filepath.cc +387 -0
  2116. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-internal-inl.h +1183 -0
  2117. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-port.cc +1259 -0
  2118. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-printers.cc +373 -0
  2119. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-test-part.cc +110 -0
  2120. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-typed-test.cc +118 -0
  2121. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest.cc +5388 -0
  2122. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest_main.cc +38 -0
  2123. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_ex_test.cc +93 -0
  2124. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_test.cc +1427 -0
  2125. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-filepath_test.cc +662 -0
  2126. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-linked_ptr_test.cc +154 -0
  2127. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-listener_test.cc +311 -0
  2128. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-message_test.cc +159 -0
  2129. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-options_test.cc +215 -0
  2130. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test2_test.cc +65 -0
  2131. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.cc +1055 -0
  2132. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.h +57 -0
  2133. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-port_test.cc +1304 -0
  2134. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-printers_test.cc +1635 -0
  2135. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-test-part_test.cc +208 -0
  2136. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-tuple_test.cc +320 -0
  2137. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test2_test.cc +45 -0
  2138. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.cc +380 -0
  2139. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.h +66 -0
  2140. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-unittest-api_test.cc +341 -0
  2141. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_all_test.cc +47 -0
  2142. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest.py +212 -0
  2143. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest_.cc +88 -0
  2144. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test.py +237 -0
  2145. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test_.cc +311 -0
  2146. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test.py +130 -0
  2147. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test_.cc +71 -0
  2148. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test.py +117 -0
  2149. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test_.cc +126 -0
  2150. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_environment_test.cc +192 -0
  2151. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest.py +636 -0
  2152. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest_.cc +140 -0
  2153. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test.py +172 -0
  2154. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test_.cc +46 -0
  2155. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest.py +207 -0
  2156. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest_.cc +157 -0
  2157. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_main_unittest.cc +45 -0
  2158. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_no_test_unittest.cc +56 -0
  2159. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test.py +340 -0
  2160. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_.cc +1062 -0
  2161. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_golden_lin.txt +743 -0
  2162. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_pred_impl_unittest.cc +2427 -0
  2163. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_premature_exit_test.cc +127 -0
  2164. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_prod_test.cc +57 -0
  2165. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_repeat_test.cc +253 -0
  2166. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test.py +325 -0
  2167. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test_.cc +103 -0
  2168. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_sole_header_test.cc +57 -0
  2169. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_stress_test.cc +256 -0
  2170. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_test_utils.py +320 -0
  2171. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_ex_test.cc +92 -0
  2172. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test.py +171 -0
  2173. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test_.cc +72 -0
  2174. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test.py +70 -0
  2175. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test_.cc +43 -0
  2176. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_unittest.cc +7706 -0
  2177. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile1_test_.cc +49 -0
  2178. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile2_test_.cc +49 -0
  2179. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfiles_test.py +132 -0
  2180. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest.py +308 -0
  2181. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest_.cc +181 -0
  2182. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_test_utils.py +194 -0
  2183. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/production.cc +36 -0
  2184. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/production.h +55 -0
  2185. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/DebugProject.xcconfig +30 -0
  2186. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/FrameworkTarget.xcconfig +17 -0
  2187. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/General.xcconfig +41 -0
  2188. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/ReleaseProject.xcconfig +32 -0
  2189. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/StaticLibraryTarget.xcconfig +18 -0
  2190. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/TestTarget.xcconfig +8 -0
  2191. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Resources/Info.plist +30 -0
  2192. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/Info.plist +28 -0
  2193. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj +457 -0
  2194. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/runtests.sh +62 -0
  2195. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.cc +63 -0
  2196. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.h +59 -0
  2197. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget_test.cc +68 -0
  2198. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/runtests.sh +65 -0
  2199. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/versiongenerate.py +100 -0
  2200. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/gtest.xcodeproj/project.pbxproj +1135 -0
  2201. data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/travis.sh +15 -0
  2202. data/vendor/simdjson/dependencies/rapidjson/travis-doxygen.sh +121 -0
  2203. data/vendor/simdjson/dependencies/sajson/LICENSE.txt +7 -0
  2204. data/vendor/simdjson/dependencies/sajson/README.md +73 -0
  2205. data/vendor/simdjson/dependencies/sajson/SConscript +41 -0
  2206. data/vendor/simdjson/dependencies/sajson/SConstruct +95 -0
  2207. data/vendor/simdjson/dependencies/sajson/benchmark/benchmark.cpp +92 -0
  2208. data/vendor/simdjson/dependencies/sajson/doc/doxygen.config +2427 -0
  2209. data/vendor/simdjson/dependencies/sajson/example/main.cpp +127 -0
  2210. data/vendor/simdjson/dependencies/sajson/example/zero-allocation.cpp +28 -0
  2211. data/vendor/simdjson/dependencies/sajson/include/sajson.h +2493 -0
  2212. data/vendor/simdjson/dependencies/sajson/include/sajson_ostream.h +20 -0
  2213. data/vendor/simdjson/dependencies/sajson/s/bench +15 -0
  2214. data/vendor/simdjson/dependencies/sajson/s/build +4 -0
  2215. data/vendor/simdjson/dependencies/sajson/s/doxygen +4 -0
  2216. data/vendor/simdjson/dependencies/sajson/s/test +21 -0
  2217. data/vendor/simdjson/dependencies/sajson/sajson-fuzz/build.sh +4 -0
  2218. data/vendor/simdjson/dependencies/sajson/sajson-fuzz/json.dict +44 -0
  2219. data/vendor/simdjson/dependencies/sajson/sajson-fuzz/run-primary.sh +4 -0
  2220. data/vendor/simdjson/dependencies/sajson/sajson-fuzz/run.sh +3 -0
  2221. data/vendor/simdjson/dependencies/sajson/swift/sajson.xcodeproj/project.pbxproj +665 -0
  2222. data/vendor/simdjson/dependencies/sajson/swift/sajson.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  2223. data/vendor/simdjson/dependencies/sajson/swift/sajson.xcodeproj/xcshareddata/xcschemes/sajson-macOS.xcscheme +100 -0
  2224. data/vendor/simdjson/dependencies/sajson/swift/sajson/Info.plist +24 -0
  2225. data/vendor/simdjson/dependencies/sajson/swift/sajson/sajson-ffi.cpp +79 -0
  2226. data/vendor/simdjson/dependencies/sajson/swift/sajson/sajson-swift/sajson-ffi.h +35 -0
  2227. data/vendor/simdjson/dependencies/sajson/swift/sajson/sajson.swift +409 -0
  2228. data/vendor/simdjson/dependencies/sajson/swift/sajson/sajson_swift.h +3 -0
  2229. data/vendor/simdjson/dependencies/sajson/swift/sajsonTests/Info.plist +22 -0
  2230. data/vendor/simdjson/dependencies/sajson/swift/sajsonTests/sajsonTests.swift +122 -0
  2231. data/vendor/simdjson/dependencies/sajson/tests/test.cpp +1049 -0
  2232. data/vendor/simdjson/dependencies/sajson/tests/test_no_stl.cpp +2 -0
  2233. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/COPYING +20 -0
  2234. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/Makefile +96 -0
  2235. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/README +68 -0
  2236. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/TestUnitTest++.vsnet2003.vcproj +174 -0
  2237. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/TestUnitTest++.vsnet2005.vcproj +256 -0
  2238. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/UnitTest++.vsnet2003.sln +30 -0
  2239. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/UnitTest++.vsnet2003.vcproj +226 -0
  2240. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/UnitTest++.vsnet2005.sln +29 -0
  2241. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/UnitTest++.vsnet2005.vcproj +318 -0
  2242. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/docs/UnitTest++.html +260 -0
  2243. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/AssertException.cpp +34 -0
  2244. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/AssertException.h +28 -0
  2245. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/CheckMacros.h +122 -0
  2246. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Checks.cpp +50 -0
  2247. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Checks.h +158 -0
  2248. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Config.h +31 -0
  2249. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/CurrentTest.cpp +18 -0
  2250. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/CurrentTest.h +17 -0
  2251. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/DeferredTestReporter.cpp +29 -0
  2252. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/DeferredTestReporter.h +28 -0
  2253. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/DeferredTestResult.cpp +25 -0
  2254. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/DeferredTestResult.h +29 -0
  2255. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/ExecuteTest.h +46 -0
  2256. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/MemoryOutStream.cpp +149 -0
  2257. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/MemoryOutStream.h +67 -0
  2258. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Posix/SignalTranslator.cpp +46 -0
  2259. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Posix/SignalTranslator.h +42 -0
  2260. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Posix/TimeHelpers.cpp +33 -0
  2261. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Posix/TimeHelpers.h +28 -0
  2262. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/ReportAssert.cpp +10 -0
  2263. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/ReportAssert.h +10 -0
  2264. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Test.cpp +41 -0
  2265. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Test.h +34 -0
  2266. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestDetails.cpp +22 -0
  2267. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestDetails.h +24 -0
  2268. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestList.cpp +39 -0
  2269. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestList.h +32 -0
  2270. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestMacros.h +113 -0
  2271. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestReporter.cpp +10 -0
  2272. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestReporter.h +20 -0
  2273. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestReporterStdout.cpp +41 -0
  2274. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestReporterStdout.h +19 -0
  2275. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestResults.cpp +60 -0
  2276. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestResults.h +36 -0
  2277. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestRunner.cpp +76 -0
  2278. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestRunner.h +61 -0
  2279. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestSuite.h +14 -0
  2280. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TimeConstraint.cpp +29 -0
  2281. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TimeConstraint.h +33 -0
  2282. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TimeHelpers.h +7 -0
  2283. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/UnitTest++.h +18 -0
  2284. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Win32/TimeHelpers.cpp +50 -0
  2285. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Win32/TimeHelpers.h +48 -0
  2286. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/XmlTestReporter.cpp +127 -0
  2287. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/XmlTestReporter.h +34 -0
  2288. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/Main.cpp +8 -0
  2289. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/RecordingReporter.h +98 -0
  2290. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/ScopedCurrentTest.h +37 -0
  2291. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestAssertHandler.cpp +44 -0
  2292. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestCheckMacros.cpp +801 -0
  2293. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestChecks.cpp +293 -0
  2294. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestCurrentTest.cpp +38 -0
  2295. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestDeferredTestReporter.cpp +117 -0
  2296. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestMemoryOutStream.cpp +151 -0
  2297. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTest.cpp +129 -0
  2298. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestList.cpp +50 -0
  2299. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestMacros.cpp +212 -0
  2300. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestResults.cpp +111 -0
  2301. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestRunner.cpp +307 -0
  2302. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestSuite.cpp +12 -0
  2303. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTimeConstraint.cpp +69 -0
  2304. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTimeConstraintMacro.cpp +35 -0
  2305. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestUnitTest++.cpp +156 -0
  2306. data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestXmlTestReporter.cpp +183 -0
  2307. data/vendor/simdjson/dependencies/sajson/tools/genpow10.js +39 -0
  2308. data/vendor/simdjson/dependencies/ujson4c/3rdparty/ultrajson.h +310 -0
  2309. data/vendor/simdjson/dependencies/ujson4c/3rdparty/ultrajsondec.c +891 -0
  2310. data/vendor/simdjson/dependencies/ujson4c/LICENSE.txt +31 -0
  2311. data/vendor/simdjson/dependencies/ujson4c/README.rst +43 -0
  2312. data/vendor/simdjson/dependencies/ujson4c/src/ujdecode.c +836 -0
  2313. data/vendor/simdjson/dependencies/ujson4c/src/ujdecode.h +261 -0
  2314. data/vendor/simdjson/dependencies/ujson4c/tests/benchmark.c +225 -0
  2315. data/vendor/simdjson/dependencies/ujson4c/tests/tests.c +102 -0
  2316. data/vendor/simdjson/doc/Multiline_JSON_Parse_Competition.png +0 -0
  2317. data/vendor/simdjson/doc/basics.md +574 -0
  2318. data/vendor/simdjson/doc/basics_doxygen.md +556 -0
  2319. data/vendor/simdjson/doc/gbps.png +0 -0
  2320. data/vendor/simdjson/doc/growing.png +0 -0
  2321. data/vendor/simdjson/doc/implementation-selection.md +83 -0
  2322. data/vendor/simdjson/doc/parse_many.md +160 -0
  2323. data/vendor/simdjson/doc/performance.md +172 -0
  2324. data/vendor/simdjson/{tape.md → doc/tape.md} +40 -38
  2325. data/vendor/simdjson/examples/CMakeLists.txt +1 -0
  2326. data/vendor/simdjson/examples/quickstart/CMakeLists.txt +60 -0
  2327. data/vendor/simdjson/examples/quickstart/Makefile +32 -0
  2328. data/vendor/simdjson/examples/quickstart/quickstart.cpp +7 -0
  2329. data/vendor/simdjson/examples/quickstart/quickstart_noexceptions.cpp +16 -0
  2330. data/vendor/simdjson/extra/dumpbits.h +19 -0
  2331. data/vendor/simdjson/fuzz/CMakeLists.txt +63 -0
  2332. data/vendor/simdjson/fuzz/Fuzzing.md +86 -0
  2333. data/vendor/simdjson/fuzz/NullBuffer.h +21 -0
  2334. data/vendor/simdjson/fuzz/build_corpus.sh +18 -0
  2335. data/vendor/simdjson/fuzz/build_fuzzer_variants.sh +174 -0
  2336. data/vendor/simdjson/fuzz/build_like_ossfuzz.sh +22 -0
  2337. data/vendor/simdjson/fuzz/fuzz_dump.cpp +60 -0
  2338. data/vendor/simdjson/fuzz/fuzz_dump_raw_tape.cpp +18 -0
  2339. data/vendor/simdjson/fuzz/fuzz_minify.cpp +19 -0
  2340. data/vendor/simdjson/fuzz/fuzz_parser.cpp +10 -0
  2341. data/vendor/simdjson/fuzz/fuzz_print_json.cpp +18 -0
  2342. data/vendor/simdjson/fuzz/main.cpp +26 -0
  2343. data/vendor/simdjson/fuzz/measure_coverage.sh +34 -0
  2344. data/vendor/simdjson/fuzz/ossfuzz.sh +44 -0
  2345. data/vendor/simdjson/images/logotiny.png +0 -0
  2346. data/vendor/simdjson/include/CMakeLists.txt +13 -0
  2347. data/vendor/simdjson/include/simdjson.h +47 -0
  2348. data/vendor/simdjson/include/simdjson/common_defs.h +177 -71
  2349. data/vendor/simdjson/include/simdjson/compiler_check.h +35 -0
  2350. data/vendor/simdjson/include/simdjson/dom/array.h +158 -0
  2351. data/vendor/simdjson/include/simdjson/dom/document.h +78 -0
  2352. data/vendor/simdjson/include/simdjson/dom/document_stream.h +261 -0
  2353. data/vendor/simdjson/include/simdjson/dom/element.h +545 -0
  2354. data/vendor/simdjson/include/simdjson/dom/jsonparser.h +117 -0
  2355. data/vendor/simdjson/include/simdjson/dom/object.h +264 -0
  2356. data/vendor/simdjson/include/simdjson/dom/parsedjson.h +17 -0
  2357. data/vendor/simdjson/include/simdjson/dom/parsedjson_iterator.h +270 -0
  2358. data/vendor/simdjson/include/simdjson/dom/parser.h +434 -0
  2359. data/vendor/simdjson/include/simdjson/error.h +252 -0
  2360. data/vendor/simdjson/include/simdjson/implementation.h +244 -0
  2361. data/vendor/simdjson/include/simdjson/inline/array.h +153 -0
  2362. data/vendor/simdjson/include/simdjson/inline/document.h +141 -0
  2363. data/vendor/simdjson/include/simdjson/inline/document_stream.h +255 -0
  2364. data/vendor/simdjson/include/simdjson/inline/element.h +535 -0
  2365. data/vendor/simdjson/include/simdjson/inline/error.h +155 -0
  2366. data/vendor/simdjson/include/simdjson/inline/object.h +255 -0
  2367. data/vendor/simdjson/include/simdjson/inline/padded_string.h +150 -0
  2368. data/vendor/simdjson/include/simdjson/inline/parsedjson_iterator.h +486 -0
  2369. data/vendor/simdjson/include/simdjson/inline/parser.h +206 -0
  2370. data/vendor/simdjson/include/simdjson/inline/tape_ref.h +105 -0
  2371. data/vendor/simdjson/include/simdjson/internal/dom_parser_implementation.h +181 -0
  2372. data/vendor/simdjson/include/simdjson/internal/jsonformatutils.h +65 -0
  2373. data/vendor/simdjson/include/simdjson/internal/tape_ref.h +51 -0
  2374. data/vendor/simdjson/include/simdjson/internal/tape_type.h +28 -0
  2375. data/vendor/simdjson/include/simdjson/jsonioutil.h +10 -22
  2376. data/vendor/simdjson/include/simdjson/minify.h +75 -0
  2377. data/vendor/simdjson/include/simdjson/nonstd/string_view.hpp +1529 -0
  2378. data/vendor/simdjson/include/simdjson/padded_string.h +144 -58
  2379. data/vendor/simdjson/include/simdjson/portability.h +162 -93
  2380. data/vendor/simdjson/include/simdjson/simdjson.h +9 -43
  2381. data/vendor/simdjson/include/simdjson/simdjson_version.h +20 -7
  2382. data/vendor/simdjson/jsonchecker/CMakeLists.txt +3 -0
  2383. data/vendor/simdjson/jsonexamples/CMakeLists.txt +16 -0
  2384. data/vendor/simdjson/jsonexamples/generated/CMakeLists.txt +18 -0
  2385. data/vendor/simdjson/jsonexamples/generated/genfeaturejson.rb +117 -0
  2386. data/vendor/simdjson/jsonexamples/generated/genfeaturejsonseed.rb +49 -0
  2387. data/vendor/simdjson/jsonexamples/generated/miss-templates/128.txt +10000 -0
  2388. data/vendor/simdjson/jsonexamples/generated/miss-templates/64.txt +10000 -0
  2389. data/vendor/simdjson/jsonexamples/small/jsoniter_scala/README.md +25 -1
  2390. data/vendor/simdjson/scripts/ruby/kostya_large.rb +32 -0
  2391. data/vendor/simdjson/scripts/shootout.sh +32 -0
  2392. data/vendor/simdjson/singleheader/CMakeLists.txt +151 -0
  2393. data/vendor/simdjson/singleheader/README.md +2 -1
  2394. data/vendor/simdjson/singleheader/amalgamate.sh +196 -0
  2395. data/vendor/simdjson/singleheader/amalgamate_demo.cpp +46 -0
  2396. data/vendor/simdjson/singleheader/simdjson.cpp +14045 -1541
  2397. data/vendor/simdjson/singleheader/simdjson.h +7250 -39226
  2398. data/vendor/simdjson/src/CMakeLists.txt +91 -50
  2399. data/vendor/simdjson/src/arm64/bitmanipulation.h +73 -0
  2400. data/vendor/simdjson/src/arm64/bitmask.h +43 -0
  2401. data/vendor/simdjson/src/arm64/dom_parser_implementation.cpp +137 -0
  2402. data/vendor/simdjson/src/arm64/dom_parser_implementation.h +15 -0
  2403. data/vendor/simdjson/src/arm64/implementation.cpp +25 -0
  2404. data/vendor/simdjson/src/arm64/implementation.h +27 -0
  2405. data/vendor/simdjson/src/arm64/intrinsics.h +10 -0
  2406. data/vendor/simdjson/src/arm64/numberparsing.h +39 -0
  2407. data/vendor/simdjson/src/arm64/simd.h +522 -0
  2408. data/vendor/simdjson/src/arm64/stringparsing.h +53 -0
  2409. data/vendor/simdjson/src/error.cpp +34 -0
  2410. data/vendor/simdjson/src/fallback/bitmanipulation.h +77 -0
  2411. data/vendor/simdjson/src/fallback/dom_parser_implementation.cpp +335 -0
  2412. data/vendor/simdjson/src/fallback/dom_parser_implementation.h +15 -0
  2413. data/vendor/simdjson/src/fallback/implementation.cpp +25 -0
  2414. data/vendor/simdjson/src/fallback/implementation.h +32 -0
  2415. data/vendor/simdjson/src/fallback/numberparsing.h +35 -0
  2416. data/vendor/simdjson/src/fallback/stringparsing.h +35 -0
  2417. data/vendor/simdjson/src/generic/dom_parser_implementation.h +59 -0
  2418. data/vendor/simdjson/src/generic/stage1/allocate.h +17 -0
  2419. data/vendor/simdjson/src/generic/stage1/buf_block_reader.h +83 -0
  2420. data/vendor/simdjson/src/generic/stage1/find_next_document_index.h +86 -0
  2421. data/vendor/simdjson/src/generic/stage1/json_minifier.h +77 -0
  2422. data/vendor/simdjson/src/generic/stage1/json_scanner.h +104 -0
  2423. data/vendor/simdjson/src/generic/stage1/json_string_scanner.h +139 -0
  2424. data/vendor/simdjson/src/generic/stage1/json_structural_indexer.h +198 -0
  2425. data/vendor/simdjson/src/generic/stage1/utf8_fastvalidate_algorithm.h +178 -0
  2426. data/vendor/simdjson/src/generic/stage1/utf8_lookup2_algorithm.h +218 -0
  2427. data/vendor/simdjson/src/generic/stage1/utf8_lookup3_algorithm.h +230 -0
  2428. data/vendor/simdjson/src/generic/stage1/utf8_lookup_algorithm.h +299 -0
  2429. data/vendor/simdjson/src/generic/stage1/utf8_range_algorithm.h +180 -0
  2430. data/vendor/simdjson/src/generic/stage1/utf8_validator.h +26 -0
  2431. data/vendor/simdjson/src/generic/stage1/utf8_zwegner_algorithm.h +360 -0
  2432. data/vendor/simdjson/src/generic/stage2/allocate.h +18 -0
  2433. data/vendor/simdjson/src/generic/stage2/atomparsing.h +51 -0
  2434. data/vendor/simdjson/src/generic/stage2/logger.h +64 -0
  2435. data/vendor/simdjson/src/generic/stage2/numberparsing.h +572 -0
  2436. data/vendor/simdjson/src/generic/stage2/streaming_structural_parser.h +168 -0
  2437. data/vendor/simdjson/{include/simdjson → src/generic/stage2}/stringparsing.h +54 -36
  2438. data/vendor/simdjson/src/generic/stage2/structural_iterator.h +70 -0
  2439. data/vendor/simdjson/src/generic/stage2/structural_parser.h +474 -0
  2440. data/vendor/simdjson/src/generic/stage2/tape_writer.h +95 -0
  2441. data/vendor/simdjson/src/haswell/bitmanipulation.h +80 -0
  2442. data/vendor/simdjson/src/haswell/bitmask.h +30 -0
  2443. data/vendor/simdjson/src/haswell/dom_parser_implementation.cpp +127 -0
  2444. data/vendor/simdjson/src/haswell/dom_parser_implementation.h +15 -0
  2445. data/vendor/simdjson/src/haswell/implementation.cpp +25 -0
  2446. data/vendor/simdjson/src/haswell/implementation.h +29 -0
  2447. data/vendor/simdjson/src/haswell/intrinsics.h +54 -0
  2448. data/vendor/simdjson/src/haswell/numberparsing.h +49 -0
  2449. data/vendor/simdjson/src/haswell/simd.h +377 -0
  2450. data/vendor/simdjson/src/haswell/stringparsing.h +50 -0
  2451. data/vendor/simdjson/src/implementation.cpp +155 -0
  2452. data/vendor/simdjson/{include/simdjson → src}/isadetection.h +26 -11
  2453. data/vendor/simdjson/src/jsoncharutils.h +1336 -0
  2454. data/vendor/simdjson/src/simdjson.cpp +30 -28
  2455. data/vendor/simdjson/src/simdprune_tables.h +136 -0
  2456. data/vendor/simdjson/src/westmere/bitmanipulation.h +89 -0
  2457. data/vendor/simdjson/src/westmere/bitmask.h +29 -0
  2458. data/vendor/simdjson/src/westmere/dom_parser_implementation.cpp +128 -0
  2459. data/vendor/simdjson/src/westmere/dom_parser_implementation.h +15 -0
  2460. data/vendor/simdjson/src/westmere/implementation.cpp +25 -0
  2461. data/vendor/simdjson/src/westmere/implementation.h +28 -0
  2462. data/vendor/simdjson/src/westmere/intrinsics.h +27 -0
  2463. data/vendor/simdjson/src/westmere/numberparsing.h +50 -0
  2464. data/vendor/simdjson/src/westmere/simd.h +362 -0
  2465. data/vendor/simdjson/src/westmere/stringparsing.h +52 -0
  2466. data/vendor/simdjson/tests/CMakeLists.txt +182 -11
  2467. data/vendor/simdjson/tests/allparserscheckfile.cpp +24 -28
  2468. data/vendor/simdjson/tests/basictests.cpp +1963 -54
  2469. data/vendor/simdjson/tests/cast_tester.h +271 -0
  2470. data/vendor/simdjson/tests/checkimplementation.cpp +23 -0
  2471. data/vendor/simdjson/tests/compilation_failure_tests/CMakeLists.txt +25 -0
  2472. data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_load.cpp +15 -0
  2473. data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_parse_padstring.cpp +16 -0
  2474. data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_parse_stdstring.cpp +16 -0
  2475. data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_parse_uchar.cpp +17 -0
  2476. data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_parse_uint8.cpp +17 -0
  2477. data/vendor/simdjson/tests/compilation_failure_tests/example_compiletest.cpp +20 -0
  2478. data/vendor/simdjson/tests/errortests.cpp +160 -0
  2479. data/vendor/simdjson/tests/extracting_values_example.cpp +12 -0
  2480. data/vendor/simdjson/tests/integer_tests.cpp +95 -0
  2481. data/vendor/simdjson/{scripts → tests}/issue150.sh +1 -2
  2482. data/vendor/simdjson/tests/jsoncheck.cpp +37 -29
  2483. data/vendor/simdjson/tests/numberparsingcheck.cpp +35 -20
  2484. data/vendor/simdjson/tests/parse_many_test.cpp +146 -0
  2485. data/vendor/simdjson/tests/pointercheck.cpp +81 -33
  2486. data/vendor/simdjson/tests/readme_examples.cpp +298 -0
  2487. data/vendor/simdjson/tests/readme_examples_noexceptions.cpp +197 -0
  2488. data/vendor/simdjson/tests/singleheadertest.cpp +8 -12
  2489. data/vendor/simdjson/tests/staticchecks.cpp +29 -0
  2490. data/vendor/simdjson/tests/stringparsingcheck.cpp +29 -30
  2491. data/vendor/simdjson/tests/test_macros.h +55 -0
  2492. data/vendor/simdjson/tests/testjson2json.sh +39 -0
  2493. data/vendor/simdjson/tests/unicode_tests.cpp +246 -0
  2494. data/vendor/simdjson/tools/CMakeLists.txt +9 -3
  2495. data/vendor/simdjson/tools/json2json.cpp +56 -95
  2496. data/vendor/simdjson/tools/jsonpointer.cpp +16 -64
  2497. data/vendor/simdjson/tools/jsonstats.cpp +225 -85
  2498. data/vendor/simdjson/tools/minify.cpp +70 -12
  2499. data/vendor/simdjson/tools/release.py +92 -20
  2500. data/vendor/simdjson/windows/CMakeLists.txt +6 -0
  2501. data/vendor/simdjson/windows/dirent_portable.h +6 -1039
  2502. data/vendor/simdjson/windows/getopt.h +658 -0
  2503. data/vendor/simdjson/windows/toni_ronnko_dirent.h +1075 -0
  2504. data/vendor/simdjson/windows/unistd.h +3 -0
  2505. metadata +2544 -47
  2506. data/vendor/simdjson/Makefile +0 -203
  2507. data/vendor/simdjson/Notes.md +0 -85
  2508. data/vendor/simdjson/amalgamation.sh +0 -158
  2509. data/vendor/simdjson/include/simdjson/jsoncharutils.h +0 -301
  2510. data/vendor/simdjson/include/simdjson/jsonformatutils.h +0 -202
  2511. data/vendor/simdjson/include/simdjson/jsonminifier.h +0 -30
  2512. data/vendor/simdjson/include/simdjson/jsonparser.h +0 -250
  2513. data/vendor/simdjson/include/simdjson/numberparsing.h +0 -587
  2514. data/vendor/simdjson/include/simdjson/parsedjson.h +0 -544
  2515. data/vendor/simdjson/include/simdjson/simdprune_tables.h +0 -35074
  2516. data/vendor/simdjson/include/simdjson/simdutf8check_arm64.h +0 -180
  2517. data/vendor/simdjson/include/simdjson/simdutf8check_haswell.h +0 -198
  2518. data/vendor/simdjson/include/simdjson/simdutf8check_westmere.h +0 -169
  2519. data/vendor/simdjson/include/simdjson/stage1_find_marks.h +0 -121
  2520. data/vendor/simdjson/include/simdjson/stage1_find_marks_arm64.h +0 -210
  2521. data/vendor/simdjson/include/simdjson/stage1_find_marks_flatten.h +0 -93
  2522. data/vendor/simdjson/include/simdjson/stage1_find_marks_flatten_haswell.h +0 -95
  2523. data/vendor/simdjson/include/simdjson/stage1_find_marks_haswell.h +0 -210
  2524. data/vendor/simdjson/include/simdjson/stage1_find_marks_macros.h +0 -239
  2525. data/vendor/simdjson/include/simdjson/stage1_find_marks_westmere.h +0 -194
  2526. data/vendor/simdjson/include/simdjson/stage2_build_tape.h +0 -85
  2527. data/vendor/simdjson/include/simdjson/stringparsing_arm64.h +0 -56
  2528. data/vendor/simdjson/include/simdjson/stringparsing_haswell.h +0 -43
  2529. data/vendor/simdjson/include/simdjson/stringparsing_macros.h +0 -88
  2530. data/vendor/simdjson/include/simdjson/stringparsing_westmere.h +0 -41
  2531. data/vendor/simdjson/scripts/testjson2json.sh +0 -99
  2532. data/vendor/simdjson/singleheader/amalgamation_demo.cpp +0 -20
  2533. data/vendor/simdjson/src/jsonioutil.cpp +0 -35
  2534. data/vendor/simdjson/src/jsonminifier.cpp +0 -285
  2535. data/vendor/simdjson/src/jsonparser.cpp +0 -91
  2536. data/vendor/simdjson/src/parsedjson.cpp +0 -323
  2537. data/vendor/simdjson/src/parsedjsoniterator.cpp +0 -272
  2538. data/vendor/simdjson/src/stage1_find_marks.cpp +0 -41
  2539. data/vendor/simdjson/src/stage2_build_tape.cpp +0 -567
  2540. data/vendor/simdjson/tools/cmake/FindCTargets.cmake +0 -15
  2541. data/vendor/simdjson/tools/cmake/FindOptions.cmake +0 -52
@@ -0,0 +1,3250 @@
1
+
2
+
3
+ You can find recipes for using Google Mock here. If you haven't yet,
4
+ please read the [ForDummies](V1_5_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
+ ## Nice Mocks and Strict Mocks ##
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** when using this feature, as the
301
+ decision you make applies to **all** future changes to the mock
302
+ class. If an important change is made in the interface you are mocking
303
+ (and thus in the mock class), it could break your tests (if you use
304
+ `StrictMock`) or let bugs pass through without a warning (if you use
305
+ `NiceMock`). Therefore, try to specify the mock's behavior using
306
+ explicit `EXPECT_CALL` first, and only turn to `NiceMock` or
307
+ `StrictMock` as the last resort.
308
+
309
+ ## Simplifying the Interface without Breaking Existing Code ##
310
+
311
+ Sometimes a method has a long list of arguments that is mostly
312
+ uninteresting. For example,
313
+
314
+ ```
315
+ class LogSink {
316
+ public:
317
+ ...
318
+ virtual void send(LogSeverity severity, const char* full_filename,
319
+ const char* base_filename, int line,
320
+ const struct tm* tm_time,
321
+ const char* message, size_t message_len) = 0;
322
+ };
323
+ ```
324
+
325
+ This method's argument list is lengthy and hard to work with (let's
326
+ say that the `message` argument is not even 0-terminated). If we mock
327
+ it as is, using the mock will be awkward. If, however, we try to
328
+ simplify this interface, we'll need to fix all clients depending on
329
+ it, which is often infeasible.
330
+
331
+ The trick is to re-dispatch the method in the mock class:
332
+
333
+ ```
334
+ class ScopedMockLog : public LogSink {
335
+ public:
336
+ ...
337
+ virtual void send(LogSeverity severity, const char* full_filename,
338
+ const char* base_filename, int line, const tm* tm_time,
339
+ const char* message, size_t message_len) {
340
+ // We are only interested in the log severity, full file name, and
341
+ // log message.
342
+ Log(severity, full_filename, std::string(message, message_len));
343
+ }
344
+
345
+ // Implements the mock method:
346
+ //
347
+ // void Log(LogSeverity severity,
348
+ // const string& file_path,
349
+ // const string& message);
350
+ MOCK_METHOD3(Log, void(LogSeverity severity, const string& file_path,
351
+ const string& message));
352
+ };
353
+ ```
354
+
355
+ By defining a new mock method with a trimmed argument list, we make
356
+ the mock class much more user-friendly.
357
+
358
+ ## Alternative to Mocking Concrete Classes ##
359
+
360
+ Often you may find yourself using classes that don't implement
361
+ interfaces. In order to test your code that uses such a class (let's
362
+ call it `Concrete`), you may be tempted to make the methods of
363
+ `Concrete` virtual and then mock it.
364
+
365
+ Try not to do that.
366
+
367
+ Making a non-virtual function virtual is a big decision. It creates an
368
+ extension point where subclasses can tweak your class' behavior. This
369
+ weakens your control on the class because now it's harder to maintain
370
+ the class' invariants. You should make a function virtual only when
371
+ there is a valid reason for a subclass to override it.
372
+
373
+ Mocking concrete classes directly is problematic as it creates a tight
374
+ coupling between the class and the tests - any small change in the
375
+ class may invalidate your tests and make test maintenance a pain.
376
+
377
+ To avoid such problems, many programmers have been practicing "coding
378
+ to interfaces": instead of talking to the `Concrete` class, your code
379
+ would define an interface and talk to it. Then you implement that
380
+ interface as an adaptor on top of `Concrete`. In tests, you can easily
381
+ mock that interface to observe how your code is doing.
382
+
383
+ This technique incurs some overhead:
384
+
385
+ * You pay the cost of virtual function calls (usually not a problem).
386
+ * There is more abstraction for the programmers to learn.
387
+
388
+ However, it can also bring significant benefits in addition to better
389
+ testability:
390
+
391
+ * `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.
392
+ * 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.
393
+
394
+ Some people worry that if everyone is practicing this technique, they
395
+ will end up writing lots of redundant code. This concern is totally
396
+ understandable. However, there are two reasons why it may not be the
397
+ case:
398
+
399
+ * 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.
400
+ * 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.
401
+
402
+ You need to weigh the pros and cons carefully for your particular
403
+ problem, but I'd like to assure you that the Java community has been
404
+ practicing this for a long time and it's a proven effective technique
405
+ applicable in a wide variety of situations. :-)
406
+
407
+ ## Delegating Calls to a Fake ##
408
+
409
+ Some times you have a non-trivial fake implementation of an
410
+ interface. For example:
411
+
412
+ ```
413
+ class Foo {
414
+ public:
415
+ virtual ~Foo() {}
416
+ virtual char DoThis(int n) = 0;
417
+ virtual void DoThat(const char* s, int* p) = 0;
418
+ };
419
+
420
+ class FakeFoo : public Foo {
421
+ public:
422
+ virtual char DoThis(int n) {
423
+ return (n > 0) ? '+' :
424
+ (n < 0) ? '-' : '0';
425
+ }
426
+
427
+ virtual void DoThat(const char* s, int* p) {
428
+ *p = strlen(s);
429
+ }
430
+ };
431
+ ```
432
+
433
+ Now you want to mock this interface such that you can set expectations
434
+ on it. However, you also want to use `FakeFoo` for the default
435
+ behavior, as duplicating it in the mock object is, well, a lot of
436
+ work.
437
+
438
+ When you define the mock class using Google Mock, you can have it
439
+ delegate its default action to a fake class you already have, using
440
+ this pattern:
441
+
442
+ ```
443
+ using ::testing::_;
444
+ using ::testing::Invoke;
445
+
446
+ class MockFoo : public Foo {
447
+ public:
448
+ // Normal mock method definitions using Google Mock.
449
+ MOCK_METHOD1(DoThis, char(int n));
450
+ MOCK_METHOD2(DoThat, void(const char* s, int* p));
451
+
452
+ // Delegates the default actions of the methods to a FakeFoo object.
453
+ // This must be called *before* the custom ON_CALL() statements.
454
+ void DelegateToFake() {
455
+ ON_CALL(*this, DoThis(_))
456
+ .WillByDefault(Invoke(&fake_, &FakeFoo::DoThis));
457
+ ON_CALL(*this, DoThat(_, _))
458
+ .WillByDefault(Invoke(&fake_, &FakeFoo::DoThat));
459
+ }
460
+ private:
461
+ FakeFoo fake_; // Keeps an instance of the fake in the mock.
462
+ };
463
+ ```
464
+
465
+ With that, you can use `MockFoo` in your tests as usual. Just remember
466
+ that if you don't explicitly set an action in an `ON_CALL()` or
467
+ `EXPECT_CALL()`, the fake will be called upon to do it:
468
+
469
+ ```
470
+ using ::testing::_;
471
+
472
+ TEST(AbcTest, Xyz) {
473
+ MockFoo foo;
474
+ foo.DelegateToFake(); // Enables the fake for delegation.
475
+
476
+ // Put your ON_CALL(foo, ...)s here, if any.
477
+
478
+ // No action specified, meaning to use the default action.
479
+ EXPECT_CALL(foo, DoThis(5));
480
+ EXPECT_CALL(foo, DoThat(_, _));
481
+
482
+ int n = 0;
483
+ EXPECT_EQ('+', foo.DoThis(5)); // FakeFoo::DoThis() is invoked.
484
+ foo.DoThat("Hi", &n); // FakeFoo::DoThat() is invoked.
485
+ EXPECT_EQ(2, n);
486
+ }
487
+ ```
488
+
489
+ **Some tips:**
490
+
491
+ * If you want, you can still override the default action by providing your own `ON_CALL()` or using `.WillOnce()` / `.WillRepeatedly()` in `EXPECT_CALL()`.
492
+ * In `DelegateToFake()`, you only need to delegate the methods whose fake implementation you intend to use.
493
+ * 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.
494
+ * 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.
495
+
496
+ Regarding the tip on mixing a mock and a fake, here's an example on
497
+ why it may be a bad sign: Suppose you have a class `System` for
498
+ low-level system operations. In particular, it does file and I/O
499
+ operations. And suppose you want to test how your code uses `System`
500
+ to do I/O, and you just want the file operations to work normally. If
501
+ you mock out the entire `System` class, you'll have to provide a fake
502
+ implementation for the file operation part, which suggests that
503
+ `System` is taking on too many roles.
504
+
505
+ Instead, you can define a `FileOps` interface and an `IOOps` interface
506
+ and split `System`'s functionalities into the two. Then you can mock
507
+ `IOOps` without mocking `FileOps`.
508
+
509
+ ## Delegating Calls to a Real Object ##
510
+
511
+ When using testing doubles (mocks, fakes, stubs, and etc), sometimes
512
+ their behaviors will differ from those of the real objects. This
513
+ difference could be either intentional (as in simulating an error such
514
+ that you can test the error handling code) or unintentional. If your
515
+ mocks have different behaviors than the real objects by mistake, you
516
+ could end up with code that passes the tests but fails in production.
517
+
518
+ You can use the _delegating-to-real_ technique to ensure that your
519
+ mock has the same behavior as the real object while retaining the
520
+ ability to validate calls. This technique is very similar to the
521
+ delegating-to-fake technique, the difference being that we use a real
522
+ object instead of a fake. Here's an example:
523
+
524
+ ```
525
+ using ::testing::_;
526
+ using ::testing::AtLeast;
527
+ using ::testing::Invoke;
528
+
529
+ class MockFoo : public Foo {
530
+ public:
531
+ MockFoo() {
532
+ // By default, all calls are delegated to the real object.
533
+ ON_CALL(*this, DoThis())
534
+ .WillByDefault(Invoke(&real_, &Foo::DoThis));
535
+ ON_CALL(*this, DoThat(_))
536
+ .WillByDefault(Invoke(&real_, &Foo::DoThat));
537
+ ...
538
+ }
539
+ MOCK_METHOD0(DoThis, ...);
540
+ MOCK_METHOD1(DoThat, ...);
541
+ ...
542
+ private:
543
+ Foo real_;
544
+ };
545
+ ...
546
+
547
+ MockFoo mock;
548
+
549
+ EXPECT_CALL(mock, DoThis())
550
+ .Times(3);
551
+ EXPECT_CALL(mock, DoThat("Hi"))
552
+ .Times(AtLeast(1));
553
+ ... use mock in test ...
554
+ ```
555
+
556
+ With this, Google Mock will verify that your code made the right calls
557
+ (with the right arguments, in the right order, called the right number
558
+ of times, etc), and a real object will answer the calls (so the
559
+ behavior will be the same as in production). This gives you the best
560
+ of both worlds.
561
+
562
+ ## Delegating Calls to a Parent Class ##
563
+
564
+ Ideally, you should code to interfaces, whose methods are all pure
565
+ virtual. In reality, sometimes you do need to mock a virtual method
566
+ that is not pure (i.e, it already has an implementation). For example:
567
+
568
+ ```
569
+ class Foo {
570
+ public:
571
+ virtual ~Foo();
572
+
573
+ virtual void Pure(int n) = 0;
574
+ virtual int Concrete(const char* str) { ... }
575
+ };
576
+
577
+ class MockFoo : public Foo {
578
+ public:
579
+ // Mocking a pure method.
580
+ MOCK_METHOD1(Pure, void(int n));
581
+ // Mocking a concrete method. Foo::Concrete() is shadowed.
582
+ MOCK_METHOD1(Concrete, int(const char* str));
583
+ };
584
+ ```
585
+
586
+ Sometimes you may want to call `Foo::Concrete()` instead of
587
+ `MockFoo::Concrete()`. Perhaps you want to do it as part of a stub
588
+ action, or perhaps your test doesn't need to mock `Concrete()` at all
589
+ (but it would be oh-so painful to have to define a new mock class
590
+ whenever you don't need to mock one of its methods).
591
+
592
+ The trick is to leave a back door in your mock class for accessing the
593
+ real methods in the base class:
594
+
595
+ ```
596
+ class MockFoo : public Foo {
597
+ public:
598
+ // Mocking a pure method.
599
+ MOCK_METHOD1(Pure, void(int n));
600
+ // Mocking a concrete method. Foo::Concrete() is shadowed.
601
+ MOCK_METHOD1(Concrete, int(const char* str));
602
+
603
+ // Use this to call Concrete() defined in Foo.
604
+ int FooConcrete(const char* str) { return Foo::Concrete(str); }
605
+ };
606
+ ```
607
+
608
+ Now, you can call `Foo::Concrete()` inside an action by:
609
+
610
+ ```
611
+ using ::testing::_;
612
+ using ::testing::Invoke;
613
+ ...
614
+ EXPECT_CALL(foo, Concrete(_))
615
+ .WillOnce(Invoke(&foo, &MockFoo::FooConcrete));
616
+ ```
617
+
618
+ or tell the mock object that you don't want to mock `Concrete()`:
619
+
620
+ ```
621
+ using ::testing::Invoke;
622
+ ...
623
+ ON_CALL(foo, Concrete(_))
624
+ .WillByDefault(Invoke(&foo, &MockFoo::FooConcrete));
625
+ ```
626
+
627
+ (Why don't we just write `Invoke(&foo, &Foo::Concrete)`? If you do
628
+ that, `MockFoo::Concrete()` will be called (and cause an infinite
629
+ recursion) since `Foo::Concrete()` is virtual. That's just how C++
630
+ works.)
631
+
632
+ # Using Matchers #
633
+
634
+ ## Matching Argument Values Exactly ##
635
+
636
+ You can specify exactly which arguments a mock method is expecting:
637
+
638
+ ```
639
+ using ::testing::Return;
640
+ ...
641
+ EXPECT_CALL(foo, DoThis(5))
642
+ .WillOnce(Return('a'));
643
+ EXPECT_CALL(foo, DoThat("Hello", bar));
644
+ ```
645
+
646
+ ## Using Simple Matchers ##
647
+
648
+ You can use matchers to match arguments that have a certain property:
649
+
650
+ ```
651
+ using ::testing::Ge;
652
+ using ::testing::NotNull;
653
+ using ::testing::Return;
654
+ ...
655
+ EXPECT_CALL(foo, DoThis(Ge(5))) // The argument must be >= 5.
656
+ .WillOnce(Return('a'));
657
+ EXPECT_CALL(foo, DoThat("Hello", NotNull()));
658
+ // The second argument must not be NULL.
659
+ ```
660
+
661
+ A frequently used matcher is `_`, which matches anything:
662
+
663
+ ```
664
+ using ::testing::_;
665
+ using ::testing::NotNull;
666
+ ...
667
+ EXPECT_CALL(foo, DoThat(_, NotNull()));
668
+ ```
669
+
670
+ ## Combining Matchers ##
671
+
672
+ You can build complex matchers from existing ones using `AllOf()`,
673
+ `AnyOf()`, and `Not()`:
674
+
675
+ ```
676
+ using ::testing::AllOf;
677
+ using ::testing::Gt;
678
+ using ::testing::HasSubstr;
679
+ using ::testing::Ne;
680
+ using ::testing::Not;
681
+ ...
682
+ // The argument must be > 5 and != 10.
683
+ EXPECT_CALL(foo, DoThis(AllOf(Gt(5),
684
+ Ne(10))));
685
+
686
+ // The first argument must not contain sub-string "blah".
687
+ EXPECT_CALL(foo, DoThat(Not(HasSubstr("blah")),
688
+ NULL));
689
+ ```
690
+
691
+ ## Casting Matchers ##
692
+
693
+ Google Mock matchers are statically typed, meaning that the compiler
694
+ can catch your mistake if you use a matcher of the wrong type (for
695
+ example, if you use `Eq(5)` to match a `string` argument). Good for
696
+ you!
697
+
698
+ Sometimes, however, you know what you're doing and want the compiler
699
+ to give you some slack. One example is that you have a matcher for
700
+ `long` and the argument you want to match is `int`. While the two
701
+ types aren't exactly the same, there is nothing really wrong with
702
+ using a `Matcher<long>` to match an `int` - after all, we can first
703
+ convert the `int` argument to a `long` before giving it to the
704
+ matcher.
705
+
706
+ To support this need, Google Mock gives you the
707
+ `SafeMatcherCast<T>(m)` function. It casts a matcher `m` to type
708
+ `Matcher<T>`. To ensure safety, Google Mock checks that (let `U` be the
709
+ type `m` accepts):
710
+
711
+ 1. Type `T` can be implicitly cast to type `U`;
712
+ 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
713
+ 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).
714
+
715
+ The code won't compile if any of these conditions isn't met.
716
+
717
+ Here's one example:
718
+
719
+ ```
720
+ using ::testing::SafeMatcherCast;
721
+
722
+ // A base class and a child class.
723
+ class Base { ... };
724
+ class Derived : public Base { ... };
725
+
726
+ class MockFoo : public Foo {
727
+ public:
728
+ MOCK_METHOD1(DoThis, void(Derived* derived));
729
+ };
730
+ ...
731
+
732
+ MockFoo foo;
733
+ // m is a Matcher<Base*> we got from somewhere.
734
+ EXPECT_CALL(foo, DoThis(SafeMatcherCast<Derived*>(m)));
735
+ ```
736
+
737
+ If you find `SafeMatcherCast<T>(m)` too limiting, you can use a similar
738
+ function `MatcherCast<T>(m)`. The difference is that `MatcherCast` works
739
+ as long as you can `static_cast` type `T` to type `U`.
740
+
741
+ `MatcherCast` essentially lets you bypass C++'s type system
742
+ (`static_cast` isn't always safe as it could throw away information,
743
+ for example), so be careful not to misuse/abuse it.
744
+
745
+ ## Selecting Between Overloaded Functions ##
746
+
747
+ If you expect an overloaded function to be called, the compiler may
748
+ need some help on which overloaded version it is.
749
+
750
+ To disambiguate functions overloaded on the const-ness of this object,
751
+ use the `Const()` argument wrapper.
752
+
753
+ ```
754
+ using ::testing::ReturnRef;
755
+
756
+ class MockFoo : public Foo {
757
+ ...
758
+ MOCK_METHOD0(GetBar, Bar&());
759
+ MOCK_CONST_METHOD0(GetBar, const Bar&());
760
+ };
761
+ ...
762
+
763
+ MockFoo foo;
764
+ Bar bar1, bar2;
765
+ EXPECT_CALL(foo, GetBar()) // The non-const GetBar().
766
+ .WillOnce(ReturnRef(bar1));
767
+ EXPECT_CALL(Const(foo), GetBar()) // The const GetBar().
768
+ .WillOnce(ReturnRef(bar2));
769
+ ```
770
+
771
+ (`Const()` is defined by Google Mock and returns a `const` reference
772
+ to its argument.)
773
+
774
+ To disambiguate overloaded functions with the same number of arguments
775
+ but different argument types, you may need to specify the exact type
776
+ of a matcher, either by wrapping your matcher in `Matcher<type>()`, or
777
+ using a matcher whose type is fixed (`TypedEq<type>`, `An<type>()`,
778
+ etc):
779
+
780
+ ```
781
+ using ::testing::An;
782
+ using ::testing::Lt;
783
+ using ::testing::Matcher;
784
+ using ::testing::TypedEq;
785
+
786
+ class MockPrinter : public Printer {
787
+ public:
788
+ MOCK_METHOD1(Print, void(int n));
789
+ MOCK_METHOD1(Print, void(char c));
790
+ };
791
+
792
+ TEST(PrinterTest, Print) {
793
+ MockPrinter printer;
794
+
795
+ EXPECT_CALL(printer, Print(An<int>())); // void Print(int);
796
+ EXPECT_CALL(printer, Print(Matcher<int>(Lt(5)))); // void Print(int);
797
+ EXPECT_CALL(printer, Print(TypedEq<char>('a'))); // void Print(char);
798
+
799
+ printer.Print(3);
800
+ printer.Print(6);
801
+ printer.Print('a');
802
+ }
803
+ ```
804
+
805
+ ## Performing Different Actions Based on the Arguments ##
806
+
807
+ When a mock method is called, the _last_ matching expectation that's
808
+ still active will be selected (think "newer overrides older"). So, you
809
+ can make a method do different things depending on its argument values
810
+ like this:
811
+
812
+ ```
813
+ using ::testing::_;
814
+ using ::testing::Lt;
815
+ using ::testing::Return;
816
+ ...
817
+ // The default case.
818
+ EXPECT_CALL(foo, DoThis(_))
819
+ .WillRepeatedly(Return('b'));
820
+
821
+ // The more specific case.
822
+ EXPECT_CALL(foo, DoThis(Lt(5)))
823
+ .WillRepeatedly(Return('a'));
824
+ ```
825
+
826
+ Now, if `foo.DoThis()` is called with a value less than 5, `'a'` will
827
+ be returned; otherwise `'b'` will be returned.
828
+
829
+ ## Matching Multiple Arguments as a Whole ##
830
+
831
+ Sometimes it's not enough to match the arguments individually. For
832
+ example, we may want to say that the first argument must be less than
833
+ the second argument. The `With()` clause allows us to match
834
+ all arguments of a mock function as a whole. For example,
835
+
836
+ ```
837
+ using ::testing::_;
838
+ using ::testing::Lt;
839
+ using ::testing::Ne;
840
+ ...
841
+ EXPECT_CALL(foo, InRange(Ne(0), _))
842
+ .With(Lt());
843
+ ```
844
+
845
+ says that the first argument of `InRange()` must not be 0, and must be
846
+ less than the second argument.
847
+
848
+ The expression inside `With()` must be a matcher of type
849
+ `Matcher<tr1::tuple<A1, ..., An> >`, where `A1`, ..., `An` are the
850
+ types of the function arguments.
851
+
852
+ You can also write `AllArgs(m)` instead of `m` inside `.With()`. The
853
+ two forms are equivalent, but `.With(AllArgs(Lt()))` is more readable
854
+ than `.With(Lt())`.
855
+
856
+ You can use `Args<k1, ..., kn>(m)` to match the `n` selected arguments
857
+ against `m`. For example,
858
+
859
+ ```
860
+ using ::testing::_;
861
+ using ::testing::AllOf;
862
+ using ::testing::Args;
863
+ using ::testing::Lt;
864
+ ...
865
+ EXPECT_CALL(foo, Blah(_, _, _))
866
+ .With(AllOf(Args<0, 1>(Lt()), Args<1, 2>(Lt())));
867
+ ```
868
+
869
+ says that `Blah()` will be called with arguments `x`, `y`, and `z` where
870
+ `x < y < z`.
871
+
872
+ As a convenience and example, Google Mock provides some matchers for
873
+ 2-tuples, including the `Lt()` matcher above. See the [CheatSheet](V1_5_CheatSheet.md) for
874
+ the complete list.
875
+
876
+ ## Using Matchers as Predicates ##
877
+
878
+ Have you noticed that a matcher is just a fancy predicate that also
879
+ knows how to describe itself? Many existing algorithms take predicates
880
+ as arguments (e.g. those defined in STL's `<algorithm>` header), and
881
+ it would be a shame if Google Mock matchers are not allowed to
882
+ participate.
883
+
884
+ Luckily, you can use a matcher where a unary predicate functor is
885
+ expected by wrapping it inside the `Matches()` function. For example,
886
+
887
+ ```
888
+ #include <algorithm>
889
+ #include <vector>
890
+
891
+ std::vector<int> v;
892
+ ...
893
+ // How many elements in v are >= 10?
894
+ const int count = count_if(v.begin(), v.end(), Matches(Ge(10)));
895
+ ```
896
+
897
+ Since you can build complex matchers from simpler ones easily using
898
+ Google Mock, this gives you a way to conveniently construct composite
899
+ predicates (doing the same using STL's `<functional>` header is just
900
+ painful). For example, here's a predicate that's satisfied by any
901
+ number that is >= 0, <= 100, and != 50:
902
+
903
+ ```
904
+ Matches(AllOf(Ge(0), Le(100), Ne(50)))
905
+ ```
906
+
907
+ ## Using Matchers in Google Test Assertions ##
908
+
909
+ Since matchers are basically predicates that also know how to describe
910
+ themselves, there is a way to take advantage of them in
911
+ [Google Test](http://code.google.com/p/googletest/) assertions. It's
912
+ called `ASSERT_THAT` and `EXPECT_THAT`:
913
+
914
+ ```
915
+ ASSERT_THAT(value, matcher); // Asserts that value matches matcher.
916
+ EXPECT_THAT(value, matcher); // The non-fatal version.
917
+ ```
918
+
919
+ For example, in a Google Test test you can write:
920
+
921
+ ```
922
+ #include <gmock/gmock.h>
923
+
924
+ using ::testing::AllOf;
925
+ using ::testing::Ge;
926
+ using ::testing::Le;
927
+ using ::testing::MatchesRegex;
928
+ using ::testing::StartsWith;
929
+ ...
930
+
931
+ EXPECT_THAT(Foo(), StartsWith("Hello"));
932
+ EXPECT_THAT(Bar(), MatchesRegex("Line \\d+"));
933
+ ASSERT_THAT(Baz(), AllOf(Ge(5), Le(10)));
934
+ ```
935
+
936
+ which (as you can probably guess) executes `Foo()`, `Bar()`, and
937
+ `Baz()`, and verifies that:
938
+
939
+ * `Foo()` returns a string that starts with `"Hello"`.
940
+ * `Bar()` returns a string that matches regular expression `"Line \\d+"`.
941
+ * `Baz()` returns a number in the range [5, 10].
942
+
943
+ The nice thing about these macros is that _they read like
944
+ English_. They generate informative messages too. For example, if the
945
+ first `EXPECT_THAT()` above fails, the message will be something like:
946
+
947
+ ```
948
+ Value of: Foo()
949
+ Actual: "Hi, world!"
950
+ Expected: starts with "Hello"
951
+ ```
952
+
953
+ **Credit:** The idea of `(ASSERT|EXPECT)_THAT` was stolen from the
954
+ [Hamcrest](http://code.google.com/p/hamcrest/) project, which adds
955
+ `assertThat()` to JUnit.
956
+
957
+ ## Using Predicates as Matchers ##
958
+
959
+ Google Mock provides a built-in set of matchers. In case you find them
960
+ lacking, you can use an arbitray unary predicate function or functor
961
+ as a matcher - as long as the predicate accepts a value of the type
962
+ you want. You do this by wrapping the predicate inside the `Truly()`
963
+ function, for example:
964
+
965
+ ```
966
+ using ::testing::Truly;
967
+
968
+ int IsEven(int n) { return (n % 2) == 0 ? 1 : 0; }
969
+ ...
970
+
971
+ // Bar() must be called with an even number.
972
+ EXPECT_CALL(foo, Bar(Truly(IsEven)));
973
+ ```
974
+
975
+ Note that the predicate function / functor doesn't have to return
976
+ `bool`. It works as long as the return value can be used as the
977
+ condition in statement `if (condition) ...`.
978
+
979
+ ## Matching Arguments that Are Not Copyable ##
980
+
981
+ When you do an `EXPECT_CALL(mock_obj, Foo(bar))`, Google Mock saves
982
+ away a copy of `bar`. When `Foo()` is called later, Google Mock
983
+ compares the argument to `Foo()` with the saved copy of `bar`. This
984
+ way, you don't need to worry about `bar` being modified or destroyed
985
+ after the `EXPECT_CALL()` is executed. The same is true when you use
986
+ matchers like `Eq(bar)`, `Le(bar)`, and so on.
987
+
988
+ But what if `bar` cannot be copied (i.e. has no copy constructor)? You
989
+ could define your own matcher function and use it with `Truly()`, as
990
+ the previous couple of recipes have shown. Or, you may be able to get
991
+ away from it if you can guarantee that `bar` won't be changed after
992
+ the `EXPECT_CALL()` is executed. Just tell Google Mock that it should
993
+ save a reference to `bar`, instead of a copy of it. Here's how:
994
+
995
+ ```
996
+ using ::testing::Eq;
997
+ using ::testing::ByRef;
998
+ using ::testing::Lt;
999
+ ...
1000
+ // Expects that Foo()'s argument == bar.
1001
+ EXPECT_CALL(mock_obj, Foo(Eq(ByRef(bar))));
1002
+
1003
+ // Expects that Foo()'s argument < bar.
1004
+ EXPECT_CALL(mock_obj, Foo(Lt(ByRef(bar))));
1005
+ ```
1006
+
1007
+ Remember: if you do this, don't change `bar` after the
1008
+ `EXPECT_CALL()`, or the result is undefined.
1009
+
1010
+ ## Validating a Member of an Object ##
1011
+
1012
+ Often a mock function takes a reference to object as an argument. When
1013
+ matching the argument, you may not want to compare the entire object
1014
+ against a fixed object, as that may be over-specification. Instead,
1015
+ you may need to validate a certain member variable or the result of a
1016
+ certain getter method of the object. You can do this with `Field()`
1017
+ and `Property()`. More specifically,
1018
+
1019
+ ```
1020
+ Field(&Foo::bar, m)
1021
+ ```
1022
+
1023
+ is a matcher that matches a `Foo` object whose `bar` member variable
1024
+ satisfies matcher `m`.
1025
+
1026
+ ```
1027
+ Property(&Foo::baz, m)
1028
+ ```
1029
+
1030
+ is a matcher that matches a `Foo` object whose `baz()` method returns
1031
+ a value that satisfies matcher `m`.
1032
+
1033
+ For example:
1034
+
1035
+ > | `Field(&Foo::number, Ge(3))` | Matches `x` where `x.number >= 3`. |
1036
+ |:-----------------------------|:-----------------------------------|
1037
+ > | `Property(&Foo::name, StartsWith("John "))` | Matches `x` where `x.name()` starts with `"John "`. |
1038
+
1039
+ Note that in `Property(&Foo::baz, ...)`, method `baz()` must take no
1040
+ argument and be declared as `const`.
1041
+
1042
+ BTW, `Field()` and `Property()` can also match plain pointers to
1043
+ objects. For instance,
1044
+
1045
+ ```
1046
+ Field(&Foo::number, Ge(3))
1047
+ ```
1048
+
1049
+ matches a plain pointer `p` where `p->number >= 3`. If `p` is `NULL`,
1050
+ the match will always fail regardless of the inner matcher.
1051
+
1052
+ What if you want to validate more than one members at the same time?
1053
+ Remember that there is `AllOf()`.
1054
+
1055
+ ## Validating the Value Pointed to by a Pointer Argument ##
1056
+
1057
+ C++ functions often take pointers as arguments. You can use matchers
1058
+ like `NULL`, `NotNull()`, and other comparison matchers to match a
1059
+ pointer, but what if you want to make sure the value _pointed to_ by
1060
+ the pointer, instead of the pointer itself, has a certain property?
1061
+ Well, you can use the `Pointee(m)` matcher.
1062
+
1063
+ `Pointee(m)` matches a pointer iff `m` matches the value the pointer
1064
+ points to. For example:
1065
+
1066
+ ```
1067
+ using ::testing::Ge;
1068
+ using ::testing::Pointee;
1069
+ ...
1070
+ EXPECT_CALL(foo, Bar(Pointee(Ge(3))));
1071
+ ```
1072
+
1073
+ expects `foo.Bar()` to be called with a pointer that points to a value
1074
+ greater than or equal to 3.
1075
+
1076
+ One nice thing about `Pointee()` is that it treats a `NULL` pointer as
1077
+ a match failure, so you can write `Pointee(m)` instead of
1078
+
1079
+ ```
1080
+ AllOf(NotNull(), Pointee(m))
1081
+ ```
1082
+
1083
+ without worrying that a `NULL` pointer will crash your test.
1084
+
1085
+ Also, did we tell you that `Pointee()` works with both raw pointers
1086
+ **and** smart pointers (`linked_ptr`, `shared_ptr`, `scoped_ptr`, and
1087
+ etc)?
1088
+
1089
+ What if you have a pointer to pointer? You guessed it - you can use
1090
+ nested `Pointee()` to probe deeper inside the value. For example,
1091
+ `Pointee(Pointee(Lt(3)))` matches a pointer that points to a pointer
1092
+ that points to a number less than 3 (what a mouthful...).
1093
+
1094
+ ## Testing a Certain Property of an Object ##
1095
+
1096
+ Sometimes you want to specify that an object argument has a certain
1097
+ property, but there is no existing matcher that does this. If you want
1098
+ good error messages, you should define a matcher. If you want to do it
1099
+ quick and dirty, you could get away with writing an ordinary function.
1100
+
1101
+ Let's say you have a mock function that takes an object of type `Foo`,
1102
+ which has an `int bar()` method and an `int baz()` method, and you
1103
+ want to constrain that the argument's `bar()` value plus its `baz()`
1104
+ value is a given number. Here's how you can define a matcher to do it:
1105
+
1106
+ ```
1107
+ using ::testing::MatcherInterface;
1108
+ using ::testing::MatchResultListener;
1109
+
1110
+ class BarPlusBazEqMatcher : public MatcherInterface<const Foo&> {
1111
+ public:
1112
+ explicit BarPlusBazEqMatcher(int expected_sum)
1113
+ : expected_sum_(expected_sum) {}
1114
+
1115
+ virtual bool MatchAndExplain(const Foo& foo,
1116
+ MatchResultListener* listener) const {
1117
+ return (foo.bar() + foo.baz()) == expected_sum_;
1118
+ }
1119
+
1120
+ virtual void DescribeTo(::std::ostream* os) const {
1121
+ *os << "bar() + baz() equals " << expected_sum_;
1122
+ }
1123
+
1124
+ virtual void DescribeNegationTo(::std::ostream* os) const {
1125
+ *os << "bar() + baz() does not equal " << expected_sum_;
1126
+ }
1127
+ private:
1128
+ const int expected_sum_;
1129
+ };
1130
+
1131
+ inline Matcher<const Foo&> BarPlusBazEq(int expected_sum) {
1132
+ return MakeMatcher(new BarPlusBazEqMatcher(expected_sum));
1133
+ }
1134
+
1135
+ ...
1136
+
1137
+ EXPECT_CALL(..., DoThis(BarPlusBazEq(5)))...;
1138
+ ```
1139
+
1140
+ ## Matching Containers ##
1141
+
1142
+ Sometimes an STL container (e.g. list, vector, map, ...) is passed to
1143
+ a mock function and you may want to validate it. Since most STL
1144
+ containers support the `==` operator, you can write
1145
+ `Eq(expected_container)` or simply `expected_container` to match a
1146
+ container exactly.
1147
+
1148
+ Sometimes, though, you may want to be more flexible (for example, the
1149
+ first element must be an exact match, but the second element can be
1150
+ any positive number, and so on). Also, containers used in tests often
1151
+ have a small number of elements, and having to define the expected
1152
+ container out-of-line is a bit of a hassle.
1153
+
1154
+ You can use the `ElementsAre()` matcher in such cases:
1155
+
1156
+ ```
1157
+ using ::testing::_;
1158
+ using ::testing::ElementsAre;
1159
+ using ::testing::Gt;
1160
+ ...
1161
+
1162
+ MOCK_METHOD1(Foo, void(const vector<int>& numbers));
1163
+ ...
1164
+
1165
+ EXPECT_CALL(mock, Foo(ElementsAre(1, Gt(0), _, 5)));
1166
+ ```
1167
+
1168
+ The above matcher says that the container must have 4 elements, which
1169
+ must be 1, greater than 0, anything, and 5 respectively.
1170
+
1171
+ `ElementsAre()` is overloaded to take 0 to 10 arguments. If more are
1172
+ needed, you can place them in a C-style array and use
1173
+ `ElementsAreArray()` instead:
1174
+
1175
+ ```
1176
+ using ::testing::ElementsAreArray;
1177
+ ...
1178
+
1179
+ // ElementsAreArray accepts an array of element values.
1180
+ const int expected_vector1[] = { 1, 5, 2, 4, ... };
1181
+ EXPECT_CALL(mock, Foo(ElementsAreArray(expected_vector1)));
1182
+
1183
+ // Or, an array of element matchers.
1184
+ Matcher<int> expected_vector2 = { 1, Gt(2), _, 3, ... };
1185
+ EXPECT_CALL(mock, Foo(ElementsAreArray(expected_vector2)));
1186
+ ```
1187
+
1188
+ In case the array needs to be dynamically created (and therefore the
1189
+ array size cannot be inferred by the compiler), you can give
1190
+ `ElementsAreArray()` an additional argument to specify the array size:
1191
+
1192
+ ```
1193
+ using ::testing::ElementsAreArray;
1194
+ ...
1195
+ int* const expected_vector3 = new int[count];
1196
+ ... fill expected_vector3 with values ...
1197
+ EXPECT_CALL(mock, Foo(ElementsAreArray(expected_vector3, count)));
1198
+ ```
1199
+
1200
+ **Tips:**
1201
+
1202
+ * `ElementAre*()` works with _any_ container that implements the STL iterator concept (i.e. it has a `const_iterator` type and supports `begin()/end()`) and supports `size()`, 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.
1203
+ * You can use nested `ElementAre*()` to match nested (multi-dimensional) containers.
1204
+ * If the container is passed by pointer instead of by reference, just write `Pointee(ElementsAre*(...))`.
1205
+ * The order of elements _matters_ for `ElementsAre*()`. Therefore don't use it with containers whose element order is undefined (e.g. `hash_map`).
1206
+
1207
+ ## Sharing Matchers ##
1208
+
1209
+ Under the hood, a Google Mock matcher object consists of a pointer to
1210
+ a ref-counted implementation object. Copying matchers is allowed and
1211
+ very efficient, as only the pointer is copied. When the last matcher
1212
+ that references the implementation object dies, the implementation
1213
+ object will be deleted.
1214
+
1215
+ Therefore, if you have some complex matcher that you want to use again
1216
+ and again, there is no need to build it everytime. Just assign it to a
1217
+ matcher variable and use that variable repeatedly! For example,
1218
+
1219
+ ```
1220
+ Matcher<int> in_range = AllOf(Gt(5), Le(10));
1221
+ ... use in_range as a matcher in multiple EXPECT_CALLs ...
1222
+ ```
1223
+
1224
+ # Setting Expectations #
1225
+
1226
+ ## Ignoring Uninteresting Calls ##
1227
+
1228
+ If you are not interested in how a mock method is called, just don't
1229
+ say anything about it. In this case, if the method is ever called,
1230
+ Google Mock will perform its default action to allow the test program
1231
+ to continue. If you are not happy with the default action taken by
1232
+ Google Mock, you can override it using `DefaultValue<T>::Set()`
1233
+ (described later in this document) or `ON_CALL()`.
1234
+
1235
+ Please note that once you expressed interest in a particular mock
1236
+ method (via `EXPECT_CALL()`), all invocations to it must match some
1237
+ expectation. If this function is called but the arguments don't match
1238
+ any `EXPECT_CALL()` statement, it will be an error.
1239
+
1240
+ ## Disallowing Unexpected Calls ##
1241
+
1242
+ If a mock method shouldn't be called at all, explicitly say so:
1243
+
1244
+ ```
1245
+ using ::testing::_;
1246
+ ...
1247
+ EXPECT_CALL(foo, Bar(_))
1248
+ .Times(0);
1249
+ ```
1250
+
1251
+ If some calls to the method are allowed, but the rest are not, just
1252
+ list all the expected calls:
1253
+
1254
+ ```
1255
+ using ::testing::AnyNumber;
1256
+ using ::testing::Gt;
1257
+ ...
1258
+ EXPECT_CALL(foo, Bar(5));
1259
+ EXPECT_CALL(foo, Bar(Gt(10)))
1260
+ .Times(AnyNumber());
1261
+ ```
1262
+
1263
+ A call to `foo.Bar()` that doesn't match any of the `EXPECT_CALL()`
1264
+ statements will be an error.
1265
+
1266
+ ## Expecting Ordered Calls ##
1267
+
1268
+ Although an `EXPECT_CALL()` statement defined earlier takes precedence
1269
+ when Google Mock tries to match a function call with an expectation,
1270
+ by default calls don't have to happen in the order `EXPECT_CALL()`
1271
+ statements are written. For example, if the arguments match the
1272
+ matchers in the third `EXPECT_CALL()`, but not those in the first two,
1273
+ then the third expectation will be used.
1274
+
1275
+ If you would rather have all calls occur in the order of the
1276
+ expectations, put the `EXPECT_CALL()` statements in a block where you
1277
+ define a variable of type `InSequence`:
1278
+
1279
+ ```
1280
+ using ::testing::_;
1281
+ using ::testing::InSequence;
1282
+
1283
+ {
1284
+ InSequence s;
1285
+
1286
+ EXPECT_CALL(foo, DoThis(5));
1287
+ EXPECT_CALL(bar, DoThat(_))
1288
+ .Times(2);
1289
+ EXPECT_CALL(foo, DoThis(6));
1290
+ }
1291
+ ```
1292
+
1293
+ In this example, we expect a call to `foo.DoThis(5)`, followed by two
1294
+ calls to `bar.DoThat()` where the argument can be anything, which are
1295
+ in turn followed by a call to `foo.DoThis(6)`. If a call occurred
1296
+ out-of-order, Google Mock will report an error.
1297
+
1298
+ ## Expecting Partially Ordered Calls ##
1299
+
1300
+ Sometimes requiring everything to occur in a predetermined order can
1301
+ lead to brittle tests. For example, we may care about `A` occurring
1302
+ before both `B` and `C`, but aren't interested in the relative order
1303
+ of `B` and `C`. In this case, the test should reflect our real intent,
1304
+ instead of being overly constraining.
1305
+
1306
+ Google Mock allows you to impose an arbitrary DAG (directed acyclic
1307
+ graph) on the calls. One way to express the DAG is to use the
1308
+ [After](V1_5_CheatSheet#The_After_Clause.md) clause of `EXPECT_CALL`.
1309
+
1310
+ Another way is via the `InSequence()` clause (not the same as the
1311
+ `InSequence` class), which we borrowed from jMock 2. It's less
1312
+ flexible than `After()`, but more convenient when you have long chains
1313
+ of sequential calls, as it doesn't require you to come up with
1314
+ different names for the expectations in the chains. Here's how it
1315
+ works:
1316
+
1317
+ If we view `EXPECT_CALL()` statements as nodes in a graph, and add an
1318
+ edge from node A to node B wherever A must occur before B, we can get
1319
+ a DAG. We use the term "sequence" to mean a directed path in this
1320
+ DAG. Now, if we decompose the DAG into sequences, we just need to know
1321
+ which sequences each `EXPECT_CALL()` belongs to in order to be able to
1322
+ reconstruct the orginal DAG.
1323
+
1324
+ So, to specify the partial order on the expectations we need to do two
1325
+ things: first to define some `Sequence` objects, and then for each
1326
+ `EXPECT_CALL()` say which `Sequence` objects it is part
1327
+ of. Expectations in the same sequence must occur in the order they are
1328
+ written. For example,
1329
+
1330
+ ```
1331
+ using ::testing::Sequence;
1332
+
1333
+ Sequence s1, s2;
1334
+
1335
+ EXPECT_CALL(foo, A())
1336
+ .InSequence(s1, s2);
1337
+ EXPECT_CALL(bar, B())
1338
+ .InSequence(s1);
1339
+ EXPECT_CALL(bar, C())
1340
+ .InSequence(s2);
1341
+ EXPECT_CALL(foo, D())
1342
+ .InSequence(s2);
1343
+ ```
1344
+
1345
+ specifies the following DAG (where `s1` is `A -> B`, and `s2` is `A ->
1346
+ C -> D`):
1347
+
1348
+ ```
1349
+ +---> B
1350
+ |
1351
+ A ---|
1352
+ |
1353
+ +---> C ---> D
1354
+ ```
1355
+
1356
+ This means that A must occur before B and C, and C must occur before
1357
+ D. There's no restriction about the order other than these.
1358
+
1359
+ ## Controlling When an Expectation Retires ##
1360
+
1361
+ When a mock method is called, Google Mock only consider expectations
1362
+ that are still active. An expectation is active when created, and
1363
+ becomes inactive (aka _retires_) when a call that has to occur later
1364
+ has occurred. For example, in
1365
+
1366
+ ```
1367
+ using ::testing::_;
1368
+ using ::testing::Sequence;
1369
+
1370
+ Sequence s1, s2;
1371
+
1372
+ EXPECT_CALL(log, Log(WARNING, _, "File too large.")) // #1
1373
+ .Times(AnyNumber())
1374
+ .InSequence(s1, s2);
1375
+ EXPECT_CALL(log, Log(WARNING, _, "Data set is empty.")) // #2
1376
+ .InSequence(s1);
1377
+ EXPECT_CALL(log, Log(WARNING, _, "User not found.")) // #3
1378
+ .InSequence(s2);
1379
+ ```
1380
+
1381
+ as soon as either #2 or #3 is matched, #1 will retire. If a warning
1382
+ `"File too large."` is logged after this, it will be an error.
1383
+
1384
+ Note that an expectation doesn't retire automatically when it's
1385
+ saturated. For example,
1386
+
1387
+ ```
1388
+ using ::testing::_;
1389
+ ...
1390
+ EXPECT_CALL(log, Log(WARNING, _, _)); // #1
1391
+ EXPECT_CALL(log, Log(WARNING, _, "File too large.")); // #2
1392
+ ```
1393
+
1394
+ says that there will be exactly one warning with the message `"File
1395
+ too large."`. If the second warning contains this message too, #2 will
1396
+ match again and result in an upper-bound-violated error.
1397
+
1398
+ If this is not what you want, you can ask an expectation to retire as
1399
+ soon as it becomes saturated:
1400
+
1401
+ ```
1402
+ using ::testing::_;
1403
+ ...
1404
+ EXPECT_CALL(log, Log(WARNING, _, _)); // #1
1405
+ EXPECT_CALL(log, Log(WARNING, _, "File too large.")) // #2
1406
+ .RetiresOnSaturation();
1407
+ ```
1408
+
1409
+ Here #2 can be used only once, so if you have two warnings with the
1410
+ message `"File too large."`, the first will match #2 and the second
1411
+ will match #1 - there will be no error.
1412
+
1413
+ # Using Actions #
1414
+
1415
+ ## Returning References from Mock Methods ##
1416
+
1417
+ If a mock function's return type is a reference, you need to use
1418
+ `ReturnRef()` instead of `Return()` to return a result:
1419
+
1420
+ ```
1421
+ using ::testing::ReturnRef;
1422
+
1423
+ class MockFoo : public Foo {
1424
+ public:
1425
+ MOCK_METHOD0(GetBar, Bar&());
1426
+ };
1427
+ ...
1428
+
1429
+ MockFoo foo;
1430
+ Bar bar;
1431
+ EXPECT_CALL(foo, GetBar())
1432
+ .WillOnce(ReturnRef(bar));
1433
+ ```
1434
+
1435
+ ## Combining Actions ##
1436
+
1437
+ Want to do more than one thing when a function is called? That's
1438
+ fine. `DoAll()` allow you to do sequence of actions every time. Only
1439
+ the return value of the last action in the sequence will be used.
1440
+
1441
+ ```
1442
+ using ::testing::DoAll;
1443
+
1444
+ class MockFoo : public Foo {
1445
+ public:
1446
+ MOCK_METHOD1(Bar, bool(int n));
1447
+ };
1448
+ ...
1449
+
1450
+ EXPECT_CALL(foo, Bar(_))
1451
+ .WillOnce(DoAll(action_1,
1452
+ action_2,
1453
+ ...
1454
+ action_n));
1455
+ ```
1456
+
1457
+ ## Mocking Side Effects ##
1458
+
1459
+ Sometimes a method exhibits its effect not via returning a value but
1460
+ via side effects. For example, it may change some global state or
1461
+ modify an output argument. To mock side effects, in general you can
1462
+ define your own action by implementing `::testing::ActionInterface`.
1463
+
1464
+ If all you need to do is to change an output argument, the built-in
1465
+ `SetArgumentPointee()` action is convenient:
1466
+
1467
+ ```
1468
+ using ::testing::SetArgumentPointee;
1469
+
1470
+ class MockMutator : public Mutator {
1471
+ public:
1472
+ MOCK_METHOD2(Mutate, void(bool mutate, int* value));
1473
+ ...
1474
+ };
1475
+ ...
1476
+
1477
+ MockMutator mutator;
1478
+ EXPECT_CALL(mutator, Mutate(true, _))
1479
+ .WillOnce(SetArgumentPointee<1>(5));
1480
+ ```
1481
+
1482
+ In this example, when `mutator.Mutate()` is called, we will assign 5
1483
+ to the `int` variable pointed to by argument #1
1484
+ (0-based).
1485
+
1486
+ `SetArgumentPointee()` conveniently makes an internal copy of the
1487
+ value you pass to it, removing the need to keep the value in scope and
1488
+ alive. The implication however is that the value must have a copy
1489
+ constructor and assignment operator.
1490
+
1491
+ If the mock method also needs to return a value as well, you can chain
1492
+ `SetArgumentPointee()` with `Return()` using `DoAll()`:
1493
+
1494
+ ```
1495
+ using ::testing::_;
1496
+ using ::testing::Return;
1497
+ using ::testing::SetArgumentPointee;
1498
+
1499
+ class MockMutator : public Mutator {
1500
+ public:
1501
+ ...
1502
+ MOCK_METHOD1(MutateInt, bool(int* value));
1503
+ };
1504
+ ...
1505
+
1506
+ MockMutator mutator;
1507
+ EXPECT_CALL(mutator, MutateInt(_))
1508
+ .WillOnce(DoAll(SetArgumentPointee<0>(5),
1509
+ Return(true)));
1510
+ ```
1511
+
1512
+ If the output argument is an array, use the
1513
+ `SetArrayArgument<N>(first, last)` action instead. It copies the
1514
+ elements in source range `[first, last)` to the array pointed to by
1515
+ the `N`-th (0-based) argument:
1516
+
1517
+ ```
1518
+ using ::testing::NotNull;
1519
+ using ::testing::SetArrayArgument;
1520
+
1521
+ class MockArrayMutator : public ArrayMutator {
1522
+ public:
1523
+ MOCK_METHOD2(Mutate, void(int* values, int num_values));
1524
+ ...
1525
+ };
1526
+ ...
1527
+
1528
+ MockArrayMutator mutator;
1529
+ int values[5] = { 1, 2, 3, 4, 5 };
1530
+ EXPECT_CALL(mutator, Mutate(NotNull(), 5))
1531
+ .WillOnce(SetArrayArgument<0>(values, values + 5));
1532
+ ```
1533
+
1534
+ This also works when the argument is an output iterator:
1535
+
1536
+ ```
1537
+ using ::testing::_;
1538
+ using ::testing::SeArrayArgument;
1539
+
1540
+ class MockRolodex : public Rolodex {
1541
+ public:
1542
+ MOCK_METHOD1(GetNames, void(std::back_insert_iterator<vector<string> >));
1543
+ ...
1544
+ };
1545
+ ...
1546
+
1547
+ MockRolodex rolodex;
1548
+ vector<string> names;
1549
+ names.push_back("George");
1550
+ names.push_back("John");
1551
+ names.push_back("Thomas");
1552
+ EXPECT_CALL(rolodex, GetNames(_))
1553
+ .WillOnce(SetArrayArgument<0>(names.begin(), names.end()));
1554
+ ```
1555
+
1556
+ ## Changing a Mock Object's Behavior Based on the State ##
1557
+
1558
+ 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:
1559
+
1560
+ ```
1561
+ using ::testing::InSequence;
1562
+ using ::testing::Return;
1563
+
1564
+ ...
1565
+ {
1566
+ InSequence seq;
1567
+ EXPECT_CALL(my_mock, IsDirty())
1568
+ .WillRepeatedly(Return(true));
1569
+ EXPECT_CALL(my_mock, Flush());
1570
+ EXPECT_CALL(my_mock, IsDirty())
1571
+ .WillRepeatedly(Return(false));
1572
+ }
1573
+ my_mock.FlushIfDirty();
1574
+ ```
1575
+
1576
+ This makes `my_mock.IsDirty()` return `true` before `my_mock.Flush()` is called and return `false` afterwards.
1577
+
1578
+ 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:
1579
+
1580
+ ```
1581
+ using ::testing::_;
1582
+ using ::testing::SaveArg;
1583
+ using ::testing::Return;
1584
+
1585
+ ACTION_P(ReturnPointee, p) { return *p; }
1586
+ ...
1587
+ int previous_value = 0;
1588
+ EXPECT_CALL(my_mock, GetPrevValue())
1589
+ .WillRepeatedly(ReturnPointee(&previous_value));
1590
+ EXPECT_CALL(my_mock, UpdateValue(_))
1591
+ .WillRepeatedly(SaveArg<0>(&previous_value));
1592
+ my_mock.DoSomethingToUpdateValue();
1593
+ ```
1594
+
1595
+ Here `my_mock.GetPrevValue()` will always return the argument of the last `UpdateValue()` call.
1596
+
1597
+ ## Setting the Default Value for a Return Type ##
1598
+
1599
+ If a mock method's return type is a built-in C++ type or pointer, by
1600
+ default it will return 0 when invoked. You only need to specify an
1601
+ action if this default value doesn't work for you.
1602
+
1603
+ Sometimes, you may want to change this default value, or you may want
1604
+ to specify a default value for types Google Mock doesn't know
1605
+ about. You can do this using the `::testing::DefaultValue` class
1606
+ template:
1607
+
1608
+ ```
1609
+ class MockFoo : public Foo {
1610
+ public:
1611
+ MOCK_METHOD0(CalculateBar, Bar());
1612
+ };
1613
+ ...
1614
+
1615
+ Bar default_bar;
1616
+ // Sets the default return value for type Bar.
1617
+ DefaultValue<Bar>::Set(default_bar);
1618
+
1619
+ MockFoo foo;
1620
+
1621
+ // We don't need to specify an action here, as the default
1622
+ // return value works for us.
1623
+ EXPECT_CALL(foo, CalculateBar());
1624
+
1625
+ foo.CalculateBar(); // This should return default_bar.
1626
+
1627
+ // Unsets the default return value.
1628
+ DefaultValue<Bar>::Clear();
1629
+ ```
1630
+
1631
+ Please note that changing the default value for a type can make you
1632
+ tests hard to understand. We recommend you to use this feature
1633
+ judiciously. For example, you may want to make sure the `Set()` and
1634
+ `Clear()` calls are right next to the code that uses your mock.
1635
+
1636
+ ## Setting the Default Actions for a Mock Method ##
1637
+
1638
+ You've learned how to change the default value of a given
1639
+ type. However, this may be too coarse for your purpose: perhaps you
1640
+ have two mock methods with the same return type and you want them to
1641
+ have different behaviors. The `ON_CALL()` macro allows you to
1642
+ customize your mock's behavior at the method level:
1643
+
1644
+ ```
1645
+ using ::testing::_;
1646
+ using ::testing::AnyNumber;
1647
+ using ::testing::Gt;
1648
+ using ::testing::Return;
1649
+ ...
1650
+ ON_CALL(foo, Sign(_))
1651
+ .WillByDefault(Return(-1));
1652
+ ON_CALL(foo, Sign(0))
1653
+ .WillByDefault(Return(0));
1654
+ ON_CALL(foo, Sign(Gt(0)))
1655
+ .WillByDefault(Return(1));
1656
+
1657
+ EXPECT_CALL(foo, Sign(_))
1658
+ .Times(AnyNumber());
1659
+
1660
+ foo.Sign(5); // This should return 1.
1661
+ foo.Sign(-9); // This should return -1.
1662
+ foo.Sign(0); // This should return 0.
1663
+ ```
1664
+
1665
+ As you may have guessed, when there are more than one `ON_CALL()`
1666
+ statements, the news order take precedence over the older ones. In
1667
+ other words, the **last** one that matches the function arguments will
1668
+ be used. This matching order allows you to set up the common behavior
1669
+ in a mock object's constructor or the test fixture's set-up phase and
1670
+ specialize the mock's behavior later.
1671
+
1672
+ ## Using Functions/Methods/Functors as Actions ##
1673
+
1674
+ If the built-in actions don't suit you, you can easily use an existing
1675
+ function, method, or functor as an action:
1676
+
1677
+ ```
1678
+ using ::testing::_;
1679
+ using ::testing::Invoke;
1680
+
1681
+ class MockFoo : public Foo {
1682
+ public:
1683
+ MOCK_METHOD2(Sum, int(int x, int y));
1684
+ MOCK_METHOD1(ComplexJob, bool(int x));
1685
+ };
1686
+
1687
+ int CalculateSum(int x, int y) { return x + y; }
1688
+
1689
+ class Helper {
1690
+ public:
1691
+ bool ComplexJob(int x);
1692
+ };
1693
+ ...
1694
+
1695
+ MockFoo foo;
1696
+ Helper helper;
1697
+ EXPECT_CALL(foo, Sum(_, _))
1698
+ .WillOnce(Invoke(CalculateSum));
1699
+ EXPECT_CALL(foo, ComplexJob(_))
1700
+ .WillOnce(Invoke(&helper, &Helper::ComplexJob));
1701
+
1702
+ foo.Sum(5, 6); // Invokes CalculateSum(5, 6).
1703
+ foo.ComplexJob(10); // Invokes helper.ComplexJob(10);
1704
+ ```
1705
+
1706
+ The only requirement is that the type of the function, etc must be
1707
+ _compatible_ with the signature of the mock function, meaning that the
1708
+ latter's arguments can be implicitly converted to the corresponding
1709
+ arguments of the former, and the former's return type can be
1710
+ implicitly converted to that of the latter. So, you can invoke
1711
+ something whose type is _not_ exactly the same as the mock function,
1712
+ as long as it's safe to do so - nice, huh?
1713
+
1714
+ ## Invoking a Function/Method/Functor Without Arguments ##
1715
+
1716
+ `Invoke()` is very useful for doing actions that are more complex. It
1717
+ passes the mock function's arguments to the function or functor being
1718
+ invoked such that the callee has the full context of the call to work
1719
+ with. If the invoked function is not interested in some or all of the
1720
+ arguments, it can simply ignore them.
1721
+
1722
+ Yet, a common pattern is that a test author wants to invoke a function
1723
+ without the arguments of the mock function. `Invoke()` allows her to
1724
+ do that using a wrapper function that throws away the arguments before
1725
+ invoking an underlining nullary function. Needless to say, this can be
1726
+ tedious and obscures the intent of the test.
1727
+
1728
+ `InvokeWithoutArgs()` solves this problem. It's like `Invoke()` except
1729
+ that it doesn't pass the mock function's arguments to the
1730
+ callee. Here's an example:
1731
+
1732
+ ```
1733
+ using ::testing::_;
1734
+ using ::testing::InvokeWithoutArgs;
1735
+
1736
+ class MockFoo : public Foo {
1737
+ public:
1738
+ MOCK_METHOD1(ComplexJob, bool(int n));
1739
+ };
1740
+
1741
+ bool Job1() { ... }
1742
+ ...
1743
+
1744
+ MockFoo foo;
1745
+ EXPECT_CALL(foo, ComplexJob(_))
1746
+ .WillOnce(InvokeWithoutArgs(Job1));
1747
+
1748
+ foo.ComplexJob(10); // Invokes Job1().
1749
+ ```
1750
+
1751
+ ## Invoking an Argument of the Mock Function ##
1752
+
1753
+ Sometimes a mock function will receive a function pointer or a functor
1754
+ (in other words, a "callable") as an argument, e.g.
1755
+
1756
+ ```
1757
+ class MockFoo : public Foo {
1758
+ public:
1759
+ MOCK_METHOD2(DoThis, bool(int n, bool (*fp)(int)));
1760
+ };
1761
+ ```
1762
+
1763
+ and you may want to invoke this callable argument:
1764
+
1765
+ ```
1766
+ using ::testing::_;
1767
+ ...
1768
+ MockFoo foo;
1769
+ EXPECT_CALL(foo, DoThis(_, _))
1770
+ .WillOnce(...);
1771
+ // Will execute (*fp)(5), where fp is the
1772
+ // second argument DoThis() receives.
1773
+ ```
1774
+
1775
+ Arghh, you need to refer to a mock function argument but C++ has no
1776
+ lambda (yet), so you have to define your own action. :-( Or do you
1777
+ really?
1778
+
1779
+ Well, Google Mock has an action to solve _exactly_ this problem:
1780
+
1781
+ ```
1782
+ InvokeArgument<N>(arg_1, arg_2, ..., arg_m)
1783
+ ```
1784
+
1785
+ will invoke the `N`-th (0-based) argument the mock function receives,
1786
+ with `arg_1`, `arg_2`, ..., and `arg_m`. No matter if the argument is
1787
+ a function pointer or a functor, Google Mock handles them both.
1788
+
1789
+ With that, you could write:
1790
+
1791
+ ```
1792
+ using ::testing::_;
1793
+ using ::testing::InvokeArgument;
1794
+ ...
1795
+ EXPECT_CALL(foo, DoThis(_, _))
1796
+ .WillOnce(InvokeArgument<1>(5));
1797
+ // Will execute (*fp)(5), where fp is the
1798
+ // second argument DoThis() receives.
1799
+ ```
1800
+
1801
+ What if the callable takes an argument by reference? No problem - just
1802
+ wrap it inside `ByRef()`:
1803
+
1804
+ ```
1805
+ ...
1806
+ MOCK_METHOD1(Bar, bool(bool (*fp)(int, const Helper&)));
1807
+ ...
1808
+ using ::testing::_;
1809
+ using ::testing::ByRef;
1810
+ using ::testing::InvokeArgument;
1811
+ ...
1812
+
1813
+ MockFoo foo;
1814
+ Helper helper;
1815
+ ...
1816
+ EXPECT_CALL(foo, Bar(_))
1817
+ .WillOnce(InvokeArgument<0>(5, ByRef(helper)));
1818
+ // ByRef(helper) guarantees that a reference to helper, not a copy of it,
1819
+ // will be passed to the callable.
1820
+ ```
1821
+
1822
+ What if the callable takes an argument by reference and we do **not**
1823
+ wrap the argument in `ByRef()`? Then `InvokeArgument()` will _make a
1824
+ copy_ of the argument, and pass a _reference to the copy_, instead of
1825
+ a reference to the original value, to the callable. This is especially
1826
+ handy when the argument is a temporary value:
1827
+
1828
+ ```
1829
+ ...
1830
+ MOCK_METHOD1(DoThat, bool(bool (*f)(const double& x, const string& s)));
1831
+ ...
1832
+ using ::testing::_;
1833
+ using ::testing::InvokeArgument;
1834
+ ...
1835
+
1836
+ MockFoo foo;
1837
+ ...
1838
+ EXPECT_CALL(foo, DoThat(_))
1839
+ .WillOnce(InvokeArgument<0>(5.0, string("Hi")));
1840
+ // Will execute (*f)(5.0, string("Hi")), where f is the function pointer
1841
+ // DoThat() receives. Note that the values 5.0 and string("Hi") are
1842
+ // temporary and dead once the EXPECT_CALL() statement finishes. Yet
1843
+ // it's fine to perform this action later, since a copy of the values
1844
+ // are kept inside the InvokeArgument action.
1845
+ ```
1846
+
1847
+ ## Ignoring an Action's Result ##
1848
+
1849
+ Sometimes you have an action that returns _something_, but you need an
1850
+ action that returns `void` (perhaps you want to use it in a mock
1851
+ function that returns `void`, or perhaps it needs to be used in
1852
+ `DoAll()` and it's not the last in the list). `IgnoreResult()` lets
1853
+ you do that. For example:
1854
+
1855
+ ```
1856
+ using ::testing::_;
1857
+ using ::testing::Invoke;
1858
+ using ::testing::Return;
1859
+
1860
+ int Process(const MyData& data);
1861
+ string DoSomething();
1862
+
1863
+ class MockFoo : public Foo {
1864
+ public:
1865
+ MOCK_METHOD1(Abc, void(const MyData& data));
1866
+ MOCK_METHOD0(Xyz, bool());
1867
+ };
1868
+ ...
1869
+
1870
+ MockFoo foo;
1871
+ EXPECT_CALL(foo, Abc(_))
1872
+ // .WillOnce(Invoke(Process));
1873
+ // The above line won't compile as Process() returns int but Abc() needs
1874
+ // to return void.
1875
+ .WillOnce(IgnoreResult(Invoke(Process)));
1876
+
1877
+ EXPECT_CALL(foo, Xyz())
1878
+ .WillOnce(DoAll(IgnoreResult(Invoke(DoSomething)),
1879
+ // Ignores the string DoSomething() returns.
1880
+ Return(true)));
1881
+ ```
1882
+
1883
+ Note that you **cannot** use `IgnoreResult()` on an action that already
1884
+ returns `void`. Doing so will lead to ugly compiler errors.
1885
+
1886
+ ## Selecting an Action's Arguments ##
1887
+
1888
+ Say you have a mock function `Foo()` that takes seven arguments, and
1889
+ you have a custom action that you want to invoke when `Foo()` is
1890
+ called. Trouble is, the custom action only wants three arguments:
1891
+
1892
+ ```
1893
+ using ::testing::_;
1894
+ using ::testing::Invoke;
1895
+ ...
1896
+ MOCK_METHOD7(Foo, bool(bool visible, const string& name, int x, int y,
1897
+ const map<pair<int, int>, double>& weight,
1898
+ double min_weight, double max_wight));
1899
+ ...
1900
+
1901
+ bool IsVisibleInQuadrant1(bool visible, int x, int y) {
1902
+ return visible && x >= 0 && y >= 0;
1903
+ }
1904
+ ...
1905
+
1906
+ EXPECT_CALL(mock, Foo(_, _, _, _, _, _, _))
1907
+ .WillOnce(Invoke(IsVisibleInQuadrant1)); // Uh, won't compile. :-(
1908
+ ```
1909
+
1910
+ To please the compiler God, you can to define an "adaptor" that has
1911
+ the same signature as `Foo()` and calls the custom action with the
1912
+ right arguments:
1913
+
1914
+ ```
1915
+ using ::testing::_;
1916
+ using ::testing::Invoke;
1917
+
1918
+ bool MyIsVisibleInQuadrant1(bool visible, const string& name, int x, int y,
1919
+ const map<pair<int, int>, double>& weight,
1920
+ double min_weight, double max_wight) {
1921
+ return IsVisibleInQuadrant1(visible, x, y);
1922
+ }
1923
+ ...
1924
+
1925
+ EXPECT_CALL(mock, Foo(_, _, _, _, _, _, _))
1926
+ .WillOnce(Invoke(MyIsVisibleInQuadrant1)); // Now it works.
1927
+ ```
1928
+
1929
+ But isn't this awkward?
1930
+
1931
+ Google Mock provides a generic _action adaptor_, so you can spend your
1932
+ time minding more important business than writing your own
1933
+ adaptors. Here's the syntax:
1934
+
1935
+ ```
1936
+ WithArgs<N1, N2, ..., Nk>(action)
1937
+ ```
1938
+
1939
+ creates an action that passes the arguments of the mock function at
1940
+ the given indices (0-based) to the inner `action` and performs
1941
+ it. Using `WithArgs`, our original example can be written as:
1942
+
1943
+ ```
1944
+ using ::testing::_;
1945
+ using ::testing::Invoke;
1946
+ using ::testing::WithArgs;
1947
+ ...
1948
+ EXPECT_CALL(mock, Foo(_, _, _, _, _, _, _))
1949
+ .WillOnce(WithArgs<0, 2, 3>(Invoke(IsVisibleInQuadrant1)));
1950
+ // No need to define your own adaptor.
1951
+ ```
1952
+
1953
+ For better readability, Google Mock also gives you:
1954
+
1955
+ * `WithoutArgs(action)` when the inner `action` takes _no_ argument, and
1956
+ * `WithArg<N>(action)` (no `s` after `Arg`) when the inner `action` takes _one_ argument.
1957
+
1958
+ As you may have realized, `InvokeWithoutArgs(...)` is just syntactic
1959
+ sugar for `WithoutArgs(Inovke(...))`.
1960
+
1961
+ Here are more tips:
1962
+
1963
+ * The inner action used in `WithArgs` and friends does not have to be `Invoke()` -- it can be anything.
1964
+ * You can repeat an argument in the argument list if necessary, e.g. `WithArgs<2, 3, 3, 5>(...)`.
1965
+ * You can change the order of the arguments, e.g. `WithArgs<3, 2, 1>(...)`.
1966
+ * 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.
1967
+
1968
+ ## Ignoring Arguments in Action Functions ##
1969
+
1970
+ The selecting-an-action's-arguments recipe showed us one way to make a
1971
+ mock function and an action with incompatible argument lists fit
1972
+ together. The downside is that wrapping the action in
1973
+ `WithArgs<...>()` can get tedious for people writing the tests.
1974
+
1975
+ If you are defining a function, method, or functor to be used with
1976
+ `Invoke*()`, and you are not interested in some of its arguments, an
1977
+ alternative to `WithArgs` is to declare the uninteresting arguments as
1978
+ `Unused`. This makes the definition less cluttered and less fragile in
1979
+ case the types of the uninteresting arguments change. It could also
1980
+ increase the chance the action function can be reused. For example,
1981
+ given
1982
+
1983
+ ```
1984
+ MOCK_METHOD3(Foo, double(const string& label, double x, double y));
1985
+ MOCK_METHOD3(Bar, double(int index, double x, double y));
1986
+ ```
1987
+
1988
+ instead of
1989
+
1990
+ ```
1991
+ using ::testing::_;
1992
+ using ::testing::Invoke;
1993
+
1994
+ double DistanceToOriginWithLabel(const string& label, double x, double y) {
1995
+ return sqrt(x*x + y*y);
1996
+ }
1997
+
1998
+ double DistanceToOriginWithIndex(int index, double x, double y) {
1999
+ return sqrt(x*x + y*y);
2000
+ }
2001
+ ...
2002
+
2003
+ EXEPCT_CALL(mock, Foo("abc", _, _))
2004
+ .WillOnce(Invoke(DistanceToOriginWithLabel));
2005
+ EXEPCT_CALL(mock, Bar(5, _, _))
2006
+ .WillOnce(Invoke(DistanceToOriginWithIndex));
2007
+ ```
2008
+
2009
+ you could write
2010
+
2011
+ ```
2012
+ using ::testing::_;
2013
+ using ::testing::Invoke;
2014
+ using ::testing::Unused;
2015
+
2016
+ double DistanceToOrigin(Unused, double x, double y) {
2017
+ return sqrt(x*x + y*y);
2018
+ }
2019
+ ...
2020
+
2021
+ EXEPCT_CALL(mock, Foo("abc", _, _))
2022
+ .WillOnce(Invoke(DistanceToOrigin));
2023
+ EXEPCT_CALL(mock, Bar(5, _, _))
2024
+ .WillOnce(Invoke(DistanceToOrigin));
2025
+ ```
2026
+
2027
+ ## Sharing Actions ##
2028
+
2029
+ Just like matchers, a Google Mock action object consists of a pointer
2030
+ to a ref-counted implementation object. Therefore copying actions is
2031
+ also allowed and very efficient. When the last action that references
2032
+ the implementation object dies, the implementation object will be
2033
+ deleted.
2034
+
2035
+ If you have some complex action that you want to use again and again,
2036
+ you may not have to build it from scratch everytime. If the action
2037
+ doesn't have an internal state (i.e. if it always does the same thing
2038
+ no matter how many times it has been called), you can assign it to an
2039
+ action variable and use that variable repeatedly. For example:
2040
+
2041
+ ```
2042
+ Action<bool(int*)> set_flag = DoAll(SetArgumentPointee<0>(5),
2043
+ Return(true));
2044
+ ... use set_flag in .WillOnce() and .WillRepeatedly() ...
2045
+ ```
2046
+
2047
+ However, if the action has its own state, you may be surprised if you
2048
+ share the action object. Suppose you have an action factory
2049
+ `IncrementCounter(init)` which creates an action that increments and
2050
+ returns a counter whose initial value is `init`, using two actions
2051
+ created from the same expression and using a shared action will
2052
+ exihibit different behaviors. Example:
2053
+
2054
+ ```
2055
+ EXPECT_CALL(foo, DoThis())
2056
+ .WillRepeatedly(IncrementCounter(0));
2057
+ EXPECT_CALL(foo, DoThat())
2058
+ .WillRepeatedly(IncrementCounter(0));
2059
+ foo.DoThis(); // Returns 1.
2060
+ foo.DoThis(); // Returns 2.
2061
+ foo.DoThat(); // Returns 1 - Blah() uses a different
2062
+ // counter than Bar()'s.
2063
+ ```
2064
+
2065
+ versus
2066
+
2067
+ ```
2068
+ Action<int()> increment = IncrementCounter(0);
2069
+
2070
+ EXPECT_CALL(foo, DoThis())
2071
+ .WillRepeatedly(increment);
2072
+ EXPECT_CALL(foo, DoThat())
2073
+ .WillRepeatedly(increment);
2074
+ foo.DoThis(); // Returns 1.
2075
+ foo.DoThis(); // Returns 2.
2076
+ foo.DoThat(); // Returns 3 - the counter is shared.
2077
+ ```
2078
+
2079
+ # Misc Recipes on Using Google Mock #
2080
+
2081
+ ## Forcing a Verification ##
2082
+
2083
+ When it's being destoyed, your friendly mock object will automatically
2084
+ verify that all expectations on it have been satisfied, and will
2085
+ generate [Google Test](http://code.google.com/p/googletest/) failures
2086
+ if not. This is convenient as it leaves you with one less thing to
2087
+ worry about. That is, unless you are not sure if your mock object will
2088
+ be destoyed.
2089
+
2090
+ How could it be that your mock object won't eventually be destroyed?
2091
+ Well, it might be created on the heap and owned by the code you are
2092
+ testing. Suppose there's a bug in that code and it doesn't delete the
2093
+ mock object properly - you could end up with a passing test when
2094
+ there's actually a bug.
2095
+
2096
+ Using a heap checker is a good idea and can alleviate the concern, but
2097
+ its implementation may not be 100% reliable. So, sometimes you do want
2098
+ to _force_ Google Mock to verify a mock object before it is
2099
+ (hopefully) destructed. You can do this with
2100
+ `Mock::VerifyAndClearExpectations(&mock_object)`:
2101
+
2102
+ ```
2103
+ TEST(MyServerTest, ProcessesRequest) {
2104
+ using ::testing::Mock;
2105
+
2106
+ MockFoo* const foo = new MockFoo;
2107
+ EXPECT_CALL(*foo, ...)...;
2108
+ // ... other expectations ...
2109
+
2110
+ // server now owns foo.
2111
+ MyServer server(foo);
2112
+ server.ProcessRequest(...);
2113
+
2114
+ // In case that server's destructor will forget to delete foo,
2115
+ // this will verify the expectations anyway.
2116
+ Mock::VerifyAndClearExpectations(foo);
2117
+ } // server is destroyed when it goes out of scope here.
2118
+ ```
2119
+
2120
+ **Tip:** The `Mock::VerifyAndClearExpectations()` function returns a
2121
+ `bool` to indicate whether the verification was successful (`true` for
2122
+ yes), so you can wrap that function call inside a `ASSERT_TRUE()` if
2123
+ there is no point going further when the verification has failed.
2124
+
2125
+ ## Using Check Points ##
2126
+
2127
+ Sometimes you may want to "reset" a mock object at various check
2128
+ points in your test: at each check point, you verify that all existing
2129
+ expectations on the mock object have been satisfied, and then you set
2130
+ some new expectations on it as if it's newly created. This allows you
2131
+ to work with a mock object in "phases" whose sizes are each
2132
+ manageable.
2133
+
2134
+ One such scenario is that in your test's `SetUp()` function, you may
2135
+ want to put the object you are testing into a certain state, with the
2136
+ help from a mock object. Once in the desired state, you want to clear
2137
+ all expectations on the mock, such that in the `TEST_F` body you can
2138
+ set fresh expectations on it.
2139
+
2140
+ As you may have figured out, the `Mock::VerifyAndClearExpectations()`
2141
+ function we saw in the previous recipe can help you here. Or, if you
2142
+ are using `ON_CALL()` to set default actions on the mock object and
2143
+ want to clear the default actions as well, use
2144
+ `Mock::VerifyAndClear(&mock_object)` instead. This function does what
2145
+ `Mock::VerifyAndClearExpectations(&mock_object)` does and returns the
2146
+ same `bool`, **plus** it clears the `ON_CALL()` statements on
2147
+ `mock_object` too.
2148
+
2149
+ Another trick you can use to achieve the same effect is to put the
2150
+ expectations in sequences and insert calls to a dummy "check-point"
2151
+ function at specific places. Then you can verify that the mock
2152
+ function calls do happen at the right time. For example, if you are
2153
+ exercising code:
2154
+
2155
+ ```
2156
+ Foo(1);
2157
+ Foo(2);
2158
+ Foo(3);
2159
+ ```
2160
+
2161
+ and want to verify that `Foo(1)` and `Foo(3)` both invoke
2162
+ `mock.Bar("a")`, but `Foo(2)` doesn't invoke anything. You can write:
2163
+
2164
+ ```
2165
+ using ::testing::MockFunction;
2166
+
2167
+ TEST(FooTest, InvokesBarCorrectly) {
2168
+ MyMock mock;
2169
+ // Class MockFunction<F> has exactly one mock method. It is named
2170
+ // Call() and has type F.
2171
+ MockFunction<void(string check_point_name)> check;
2172
+ {
2173
+ InSequence s;
2174
+
2175
+ EXPECT_CALL(mock, Bar("a"));
2176
+ EXPECT_CALL(check, Call("1"));
2177
+ EXPECT_CALL(check, Call("2"));
2178
+ EXPECT_CALL(mock, Bar("a"));
2179
+ }
2180
+ Foo(1);
2181
+ check.Call("1");
2182
+ Foo(2);
2183
+ check.Call("2");
2184
+ Foo(3);
2185
+ }
2186
+ ```
2187
+
2188
+ The expectation spec says that the first `Bar("a")` must happen before
2189
+ check point "1", the second `Bar("a")` must happen after check point "2",
2190
+ and nothing should happen between the two check points. The explicit
2191
+ check points make it easy to tell which `Bar("a")` is called by which
2192
+ call to `Foo()`.
2193
+
2194
+ ## Mocking Destructors ##
2195
+
2196
+ Sometimes you want to make sure a mock object is destructed at the
2197
+ right time, e.g. after `bar->A()` is called but before `bar->B()` is
2198
+ called. We already know that you can specify constraints on the order
2199
+ of mock function calls, so all we need to do is to mock the destructor
2200
+ of the mock function.
2201
+
2202
+ This sounds simple, except for one problem: a destructor is a special
2203
+ function with special syntax and special semantics, and the
2204
+ `MOCK_METHOD0` macro doesn't work for it:
2205
+
2206
+ ```
2207
+ MOCK_METHOD0(~MockFoo, void()); // Won't compile!
2208
+ ```
2209
+
2210
+ The good news is that you can use a simple pattern to achieve the same
2211
+ effect. First, add a mock function `Die()` to your mock class and call
2212
+ it in the destructor, like this:
2213
+
2214
+ ```
2215
+ class MockFoo : public Foo {
2216
+ ...
2217
+ // Add the following two lines to the mock class.
2218
+ MOCK_METHOD0(Die, void());
2219
+ virtual ~MockFoo() { Die(); }
2220
+ };
2221
+ ```
2222
+
2223
+ (If the name `Die()` clashes with an existing symbol, choose another
2224
+ name.) Now, we have translated the problem of testing when a `MockFoo`
2225
+ object dies to testing when its `Die()` method is called:
2226
+
2227
+ ```
2228
+ MockFoo* foo = new MockFoo;
2229
+ MockBar* bar = new MockBar;
2230
+ ...
2231
+ {
2232
+ InSequence s;
2233
+
2234
+ // Expects *foo to die after bar->A() and before bar->B().
2235
+ EXPECT_CALL(*bar, A());
2236
+ EXPECT_CALL(*foo, Die());
2237
+ EXPECT_CALL(*bar, B());
2238
+ }
2239
+ ```
2240
+
2241
+ And that's that.
2242
+
2243
+ ## Using Google Mock and Threads ##
2244
+
2245
+ **IMPORTANT NOTE:** What we describe in this recipe is **NOT** true yet,
2246
+ as Google Mock is not currently thread-safe. However, all we need to
2247
+ make it thread-safe is to implement some synchronization operations in
2248
+ `<gtest/internal/gtest-port.h>` - and then the information below will
2249
+ become true.
2250
+
2251
+ In a **unit** test, it's best if you could isolate and test a piece of
2252
+ code in a single-threaded context. That avoids race conditions and
2253
+ dead locks, and makes debugging your test much easier.
2254
+
2255
+ Yet many programs are multi-threaded, and sometimes to test something
2256
+ we need to pound on it from more than one thread. Google Mock works
2257
+ for this purpose too.
2258
+
2259
+ Remember the steps for using a mock:
2260
+
2261
+ 1. Create a mock object `foo`.
2262
+ 1. Set its default actions and expectations using `ON_CALL()` and `EXPECT_CALL()`.
2263
+ 1. The code under test calls methods of `foo`.
2264
+ 1. Optionally, verify and reset the mock.
2265
+ 1. Destroy the mock yourself, or let the code under test destroy it. The destructor will automatically verify it.
2266
+
2267
+ If you follow the following simple rules, your mocks and threads can
2268
+ live happily togeter:
2269
+
2270
+ * Execute your _test code_ (as opposed to the code being tested) in _one_ thread. This makes your test easy to follow.
2271
+ * Obviously, you can do step #1 without locking.
2272
+ * When doing step #2 and #5, make sure no other thread is accessing `foo`. Obvious too, huh?
2273
+ * #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.
2274
+
2275
+ If you violate the rules (for example, if you set expectations on a
2276
+ mock while another thread is calling its methods), you get undefined
2277
+ behavior. That's not fun, so don't do it.
2278
+
2279
+ Google Mock guarantees that the action for a mock function is done in
2280
+ the same thread that called the mock function. For example, in
2281
+
2282
+ ```
2283
+ EXPECT_CALL(mock, Foo(1))
2284
+ .WillOnce(action1);
2285
+ EXPECT_CALL(mock, Foo(2))
2286
+ .WillOnce(action2);
2287
+ ```
2288
+
2289
+ if `Foo(1)` is called in thread 1 and `Foo(2)` is called in thread 2,
2290
+ Google Mock will execute `action1` in thread 1 and `action2` in thread
2291
+ 2.
2292
+
2293
+ Google Mock does _not_ impose a sequence on actions performed in
2294
+ different threads (doing so may create deadlocks as the actions may
2295
+ need to cooperate). This means that the execution of `action1` and
2296
+ `action2` in the above example _may_ interleave. If this is a problem,
2297
+ you should add proper synchronization logic to `action1` and `action2`
2298
+ to make the test thread-safe.
2299
+
2300
+
2301
+ Also, remember that `DefaultValue<T>` is a global resource that
2302
+ potentially affects _all_ living mock objects in your
2303
+ program. Naturally, you won't want to mess with it from multiple
2304
+ threads or when there still are mocks in action.
2305
+
2306
+ ## Controlling How Much Information Google Mock Prints ##
2307
+
2308
+ When Google Mock sees something that has the potential of being an
2309
+ error (e.g. a mock function with no expectation is called, a.k.a. an
2310
+ uninteresting call, which is allowed but perhaps you forgot to
2311
+ explicitly ban the call), it prints some warning messages, including
2312
+ the arguments of the function and the return value. Hopefully this
2313
+ will remind you to take a look and see if there is indeed a problem.
2314
+
2315
+ Sometimes you are confident that your tests are correct and may not
2316
+ appreciate such friendly messages. Some other times, you are debugging
2317
+ your tests or learning about the behavior of the code you are testing,
2318
+ and wish you could observe every mock call that happens (including
2319
+ argument values and the return value). Clearly, one size doesn't fit
2320
+ all.
2321
+
2322
+ You can control how much Google Mock tells you using the
2323
+ `--gmock_verbose=LEVEL` command-line flag, where `LEVEL` is a string
2324
+ with three possible values:
2325
+
2326
+ * `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.
2327
+ * `warning`: Google Mock will print both warnings and errors (less verbose). This is the default.
2328
+ * `error`: Google Mock will print errors only (least verbose).
2329
+
2330
+ Alternatively, you can adjust the value of that flag from within your
2331
+ tests like so:
2332
+
2333
+ ```
2334
+ ::testing::FLAGS_gmock_verbose = "error";
2335
+ ```
2336
+
2337
+ Now, judiciously use the right flag to enable Google Mock serve you better!
2338
+
2339
+ ## Running Tests in Emacs ##
2340
+
2341
+ If you build and run your tests in Emacs, the source file locations of
2342
+ Google Mock and [Google Test](http://code.google.com/p/googletest/)
2343
+ errors will be highlighted. Just press `<Enter>` on one of them and
2344
+ you'll be taken to the offending line. Or, you can just type `C-x ``
2345
+ to jump to the next error.
2346
+
2347
+ To make it even easier, you can add the following lines to your
2348
+ `~/.emacs` file:
2349
+
2350
+ ```
2351
+ (global-set-key "\M-m" 'compile) ; m is for make
2352
+ (global-set-key [M-down] 'next-error)
2353
+ (global-set-key [M-up] '(lambda () (interactive) (next-error -1)))
2354
+ ```
2355
+
2356
+ Then you can type `M-m` to start a build, or `M-up`/`M-down` to move
2357
+ back and forth between errors.
2358
+
2359
+ ## Fusing Google Mock Source Files ##
2360
+
2361
+ Google Mock's implementation consists of dozens of files (excluding
2362
+ its own tests). Sometimes you may want them to be packaged up in
2363
+ fewer files instead, such that you can easily copy them to a new
2364
+ machine and start hacking there. For this we provide an experimental
2365
+ Python script `fuse_gmock_files.py` in the `scripts/` directory
2366
+ (starting with release 1.2.0). Assuming you have Python 2.4 or above
2367
+ installed on your machine, just go to that directory and run
2368
+ ```
2369
+ python fuse_gmock_files.py OUTPUT_DIR
2370
+ ```
2371
+
2372
+ and you should see an `OUTPUT_DIR` directory being created with files
2373
+ `gtest/gtest.h`, `gmock/gmock.h`, and `gmock-gtest-all.cc` in it.
2374
+ These three files contain everything you need to use Google Mock (and
2375
+ Google Test). Just copy them to anywhere you want and you are ready
2376
+ to write tests and use mocks. You can use the
2377
+ [scrpts/test/Makefile](http://code.google.com/p/googlemock/source/browse/trunk/scripts/test/Makefile) file as an example on how to compile your tests
2378
+ against them.
2379
+
2380
+ # Extending Google Mock #
2381
+
2382
+ ## Writing New Matchers Quickly ##
2383
+
2384
+ The `MATCHER*` family of macros can be used to define custom matchers
2385
+ easily. The syntax:
2386
+
2387
+ ```
2388
+ MATCHER(name, "description string") { statements; }
2389
+ ```
2390
+
2391
+ will define a matcher with the given name that executes the
2392
+ statements, which must return a `bool` to indicate if the match
2393
+ succeeds. Inside the statements, you can refer to the value being
2394
+ matched by `arg`, and refer to its type by `arg_type`.
2395
+
2396
+ The description string documents what the matcher does, and is used to
2397
+ generate the failure message when the match fails. Since a
2398
+ `MATCHER()` is usually defined in a header file shared by multiple C++
2399
+ source files, we require the description to be a C-string _literal_ to
2400
+ avoid possible side effects. It can be empty (`""`), in which case
2401
+ Google Mock will use the sequence of words in the matcher name as the
2402
+ description.
2403
+
2404
+ For example:
2405
+ ```
2406
+ MATCHER(IsDivisibleBy7, "") { return (arg % 7) == 0; }
2407
+ ```
2408
+ allows you to write
2409
+ ```
2410
+ // Expects mock_foo.Bar(n) to be called where n is divisible by 7.
2411
+ EXPECT_CALL(mock_foo, Bar(IsDivisibleBy7()));
2412
+ ```
2413
+ or,
2414
+ ```
2415
+ // Verifies that the value of some_expression is divisible by 7.
2416
+ EXPECT_THAT(some_expression, IsDivisibleBy7());
2417
+ ```
2418
+ If the above assertion fails, it will print something like:
2419
+ ```
2420
+ Value of: some_expression
2421
+ Expected: is divisible by 7
2422
+ Actual: 27
2423
+ ```
2424
+ where the description `"is divisible by 7"` is automatically calculated from the
2425
+ matcher name `IsDivisibleBy7`.
2426
+
2427
+ Optionally, you can stream additional information to a hidden argument
2428
+ named `result_listener` to explain the match result. For example, a
2429
+ better definition of `IsDivisibleBy7` is:
2430
+ ```
2431
+ MATCHER(IsDivisibleBy7, "") {
2432
+ if ((arg % 7) == 0)
2433
+ return true;
2434
+
2435
+ *result_listener << "the remainder is " << (arg % 7);
2436
+ return false;
2437
+ }
2438
+ ```
2439
+
2440
+ With this definition, the above assertion will give a better message:
2441
+ ```
2442
+ Value of: some_expression
2443
+ Expected: is divisible by 7
2444
+ Actual: 27 (the remainder is 6)
2445
+ ```
2446
+
2447
+ You should let `MatchAndExplain()` print _any additional information_
2448
+ that can help a user understand the match result. Note that it should
2449
+ explain why the match succeeds in case of a success (unless it's
2450
+ obvious) - this is useful when the matcher is used inside
2451
+ `Not()`. There is no need to print the argument value itself, as
2452
+ Google Mock already prints it for you.
2453
+
2454
+ **Notes:**
2455
+
2456
+ 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.
2457
+ 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.
2458
+
2459
+ ## Writing New Parameterized Matchers Quickly ##
2460
+
2461
+ Sometimes you'll want to define a matcher that has parameters. For that you
2462
+ can use the macro:
2463
+ ```
2464
+ MATCHER_P(name, param_name, "description string") { statements; }
2465
+ ```
2466
+
2467
+ For example:
2468
+ ```
2469
+ MATCHER_P(HasAbsoluteValue, value, "") { return abs(arg) == value; }
2470
+ ```
2471
+ will allow you to write:
2472
+ ```
2473
+ EXPECT_THAT(Blah("a"), HasAbsoluteValue(n));
2474
+ ```
2475
+ which may lead to this message (assuming `n` is 10):
2476
+ ```
2477
+ Value of: Blah("a")
2478
+ Expected: has absolute value 10
2479
+ Actual: -9
2480
+ ```
2481
+
2482
+ Note that both the matcher description and its parameter are
2483
+ printed, making the message human-friendly.
2484
+
2485
+ In the matcher definition body, you can write `foo_type` to
2486
+ reference the type of a parameter named `foo`. For example, in the
2487
+ body of `MATCHER_P(HasAbsoluteValue, value)` above, you can write
2488
+ `value_type` to refer to the type of `value`.
2489
+
2490
+ Google Mock also provides `MATCHER_P2`, `MATCHER_P3`, ..., up to
2491
+ `MATCHER_P10` to support multi-parameter matchers:
2492
+ ```
2493
+ MATCHER_Pk(name, param_1, ..., param_k, "description string") { statements; }
2494
+ ```
2495
+
2496
+ Please note that the custom description string is for a particular
2497
+ **instance** of the matcher, where the parameters have been bound to
2498
+ actual values. Therefore usually you'll want the parameter values to
2499
+ be part of the description. Google Mock lets you do that using
2500
+ Python-style interpolations. The following syntaxes are supported
2501
+ currently:
2502
+
2503
+ | `%%` | a single `%` character |
2504
+ |:-----|:-----------------------|
2505
+ | `%(*)s` | all parameters of the matcher printed as a tuple |
2506
+ | `%(foo)s` | value of the matcher parameter named `foo` |
2507
+
2508
+ For example,
2509
+ ```
2510
+ MATCHER_P2(InClosedRange, low, hi, "is in range [%(low)s, %(hi)s]") {
2511
+ return low <= arg && arg <= hi;
2512
+ }
2513
+ ...
2514
+ EXPECT_THAT(3, InClosedRange(4, 6));
2515
+ ```
2516
+ would generate a failure that contains the message:
2517
+ ```
2518
+ Expected: is in range [4, 6]
2519
+ ```
2520
+
2521
+ If you specify `""` as the description, the failure message will
2522
+ contain the sequence of words in the matcher name followed by the
2523
+ parameter values printed as a tuple. For example,
2524
+ ```
2525
+ MATCHER_P2(InClosedRange, low, hi, "") { ... }
2526
+ ...
2527
+ EXPECT_THAT(3, InClosedRange(4, 6));
2528
+ ```
2529
+ would generate a failure that contains the text:
2530
+ ```
2531
+ Expected: in closed range (4, 6)
2532
+ ```
2533
+
2534
+ For the purpose of typing, you can view
2535
+ ```
2536
+ MATCHER_Pk(Foo, p1, ..., pk, "description string") { ... }
2537
+ ```
2538
+ as shorthand for
2539
+ ```
2540
+ template <typename p1_type, ..., typename pk_type>
2541
+ FooMatcherPk<p1_type, ..., pk_type>
2542
+ Foo(p1_type p1, ..., pk_type pk) { ... }
2543
+ ```
2544
+
2545
+ When you write `Foo(v1, ..., vk)`, the compiler infers the types of
2546
+ the parameters `v1`, ..., and `vk` for you. If you are not happy with
2547
+ the result of the type inference, you can specify the types by
2548
+ explicitly instantiating the template, as in `Foo<long, bool>(5, false)`.
2549
+ As said earlier, you don't get to (or need to) specify
2550
+ `arg_type` as that's determined by the context in which the matcher
2551
+ is used.
2552
+
2553
+ You can assign the result of expression `Foo(p1, ..., pk)` to a
2554
+ variable of type `FooMatcherPk<p1_type, ..., pk_type>`. This can be
2555
+ useful when composing matchers. Matchers that don't have a parameter
2556
+ or have only one parameter have special types: you can assign `Foo()`
2557
+ to a `FooMatcher`-typed variable, and assign `Foo(p)` to a
2558
+ `FooMatcherP<p_type>`-typed variable.
2559
+
2560
+ While you can instantiate a matcher template with reference types,
2561
+ passing the parameters by pointer usually makes your code more
2562
+ readable. If, however, you still want to pass a parameter by
2563
+ reference, be aware that in the failure message generated by the
2564
+ matcher you will see the value of the referenced object but not its
2565
+ address.
2566
+
2567
+ You can overload matchers with different numbers of parameters:
2568
+ ```
2569
+ MATCHER_P(Blah, a, "description string 1") { ... }
2570
+ MATCHER_P2(Blah, a, b, "description string 2") { ... }
2571
+ ```
2572
+
2573
+ While it's tempting to always use the `MATCHER*` macros when defining
2574
+ a new matcher, you should also consider implementing
2575
+ `MatcherInterface` or using `MakePolymorphicMatcher()` instead (see
2576
+ the recipes that follow), especially if you need to use the matcher a
2577
+ lot. While these approaches require more work, they give you more
2578
+ control on the types of the value being matched and the matcher
2579
+ parameters, which in general leads to better compiler error messages
2580
+ that pay off in the long run. They also allow overloading matchers
2581
+ based on parameter types (as opposed to just based on the number of
2582
+ parameters).
2583
+
2584
+ ## Writing New Monomorphic Matchers ##
2585
+
2586
+ A matcher of argument type `T` implements
2587
+ `::testing::MatcherInterface<T>` and does two things: it tests whether a
2588
+ value of type `T` matches the matcher, and can describe what kind of
2589
+ values it matches. The latter ability is used for generating readable
2590
+ error messages when expectations are violated.
2591
+
2592
+ The interface looks like this:
2593
+
2594
+ ```
2595
+ class MatchResultListener {
2596
+ public:
2597
+ ...
2598
+ // Streams x to the underlying ostream; does nothing if the ostream
2599
+ // is NULL.
2600
+ template <typename T>
2601
+ MatchResultListener& operator<<(const T& x);
2602
+
2603
+ // Returns the underlying ostream.
2604
+ ::std::ostream* stream();
2605
+ };
2606
+
2607
+ template <typename T>
2608
+ class MatcherInterface {
2609
+ public:
2610
+ virtual ~MatcherInterface();
2611
+
2612
+ // Returns true iff the matcher matches x; also explains the match
2613
+ // result to 'listener'.
2614
+ virtual bool MatchAndExplain(T x, MatchResultListener* listener) const = 0;
2615
+
2616
+ // Describes this matcher to an ostream.
2617
+ virtual void DescribeTo(::std::ostream* os) const = 0;
2618
+
2619
+ // Describes the negation of this matcher to an ostream.
2620
+ virtual void DescribeNegationTo(::std::ostream* os) const;
2621
+ };
2622
+ ```
2623
+
2624
+ If you need a custom matcher but `Truly()` is not a good option (for
2625
+ example, you may not be happy with the way `Truly(predicate)`
2626
+ describes itself, or you may want your matcher to be polymorphic as
2627
+ `Eq(value)` is), you can define a matcher to do whatever you want in
2628
+ two steps: first implement the matcher interface, and then define a
2629
+ factory function to create a matcher instance. The second step is not
2630
+ strictly needed but it makes the syntax of using the matcher nicer.
2631
+
2632
+ For example, you can define a matcher to test whether an `int` is
2633
+ divisible by 7 and then use it like this:
2634
+ ```
2635
+ using ::testing::MakeMatcher;
2636
+ using ::testing::Matcher;
2637
+ using ::testing::MatcherInterface;
2638
+ using ::testing::MatchResultListener;
2639
+
2640
+ class DivisibleBy7Matcher : public MatcherInterface<int> {
2641
+ public:
2642
+ virtual bool MatchAndExplain(int n, MatchResultListener* listener) const {
2643
+ return (n % 7) == 0;
2644
+ }
2645
+
2646
+ virtual void DescribeTo(::std::ostream* os) const {
2647
+ *os << "is divisible by 7";
2648
+ }
2649
+
2650
+ virtual void DescribeNegationTo(::std::ostream* os) const {
2651
+ *os << "is not divisible by 7";
2652
+ }
2653
+ };
2654
+
2655
+ inline Matcher<int> DivisibleBy7() {
2656
+ return MakeMatcher(new DivisibleBy7Matcher);
2657
+ }
2658
+ ...
2659
+
2660
+ EXPECT_CALL(foo, Bar(DivisibleBy7()));
2661
+ ```
2662
+
2663
+ You may improve the matcher message by streaming additional
2664
+ information to the `listener` argument in `MatchAndExplain()`:
2665
+
2666
+ ```
2667
+ class DivisibleBy7Matcher : public MatcherInterface<int> {
2668
+ public:
2669
+ virtual bool MatchAndExplain(int n,
2670
+ MatchResultListener* listener) const {
2671
+ const int remainder = n % 7;
2672
+ if (remainder != 0) {
2673
+ *listener << "the remainder is " << remainder;
2674
+ }
2675
+ return remainder == 0;
2676
+ }
2677
+ ...
2678
+ };
2679
+ ```
2680
+
2681
+ Then, `EXPECT_THAT(x, DivisibleBy7());` may general a message like this:
2682
+ ```
2683
+ Value of: x
2684
+ Expected: is divisible by 7
2685
+ Actual: 23 (the remainder is 2)
2686
+ ```
2687
+
2688
+ ## Writing New Polymorphic Matchers ##
2689
+
2690
+ You've learned how to write your own matchers in the previous
2691
+ recipe. Just one problem: a matcher created using `MakeMatcher()` only
2692
+ works for one particular type of arguments. If you want a
2693
+ _polymorphic_ matcher that works with arguments of several types (for
2694
+ instance, `Eq(x)` can be used to match a `value` as long as `value` ==
2695
+ `x` compiles -- `value` and `x` don't have to share the same type),
2696
+ you can learn the trick from `<gmock/gmock-matchers.h>` but it's a bit
2697
+ involved.
2698
+
2699
+ Fortunately, most of the time you can define a polymorphic matcher
2700
+ easily with the help of `MakePolymorphicMatcher()`. Here's how you can
2701
+ define `NotNull()` as an example:
2702
+
2703
+ ```
2704
+ using ::testing::MakePolymorphicMatcher;
2705
+ using ::testing::MatchResultListener;
2706
+ using ::testing::NotNull;
2707
+ using ::testing::PolymorphicMatcher;
2708
+
2709
+ class NotNullMatcher {
2710
+ public:
2711
+ // To implement a polymorphic matcher, first define a COPYABLE class
2712
+ // that has three members MatchAndExplain(), DescribeTo(), and
2713
+ // DescribeNegationTo(), like the following.
2714
+
2715
+ // In this example, we want to use NotNull() with any pointer, so
2716
+ // MatchAndExplain() accepts a pointer of any type as its first argument.
2717
+ // In general, you can define MatchAndExplain() as an ordinary method or
2718
+ // a method template, or even overload it.
2719
+ template <typename T>
2720
+ bool MatchAndExplain(T* p,
2721
+ MatchResultListener* /* listener */) const {
2722
+ return p != NULL;
2723
+ }
2724
+
2725
+ // Describes the property of a value matching this matcher.
2726
+ void DescribeTo(::std::ostream* os) const { *os << "is not NULL"; }
2727
+
2728
+ // Describes the property of a value NOT matching this matcher.
2729
+ void DescribeNegationTo(::std::ostream* os) const { *os << "is NULL"; }
2730
+ };
2731
+
2732
+ // To construct a polymorphic matcher, pass an instance of the class
2733
+ // to MakePolymorphicMatcher(). Note the return type.
2734
+ inline PolymorphicMatcher<NotNullMatcher> NotNull() {
2735
+ return MakePolymorphicMatcher(NotNullMatcher());
2736
+ }
2737
+ ...
2738
+
2739
+ EXPECT_CALL(foo, Bar(NotNull())); // The argument must be a non-NULL pointer.
2740
+ ```
2741
+
2742
+ **Note:** Your polymorphic matcher class does **not** need to inherit from
2743
+ `MatcherInterface` or any other class, and its methods do **not** need
2744
+ to be virtual.
2745
+
2746
+ Like in a monomorphic matcher, you may explain the match result by
2747
+ streaming additional information to the `listener` argument in
2748
+ `MatchAndExplain()`.
2749
+
2750
+ ## Writing New Cardinalities ##
2751
+
2752
+ A cardinality is used in `Times()` to tell Google Mock how many times
2753
+ you expect a call to occur. It doesn't have to be exact. For example,
2754
+ you can say `AtLeast(5)` or `Between(2, 4)`.
2755
+
2756
+ If the built-in set of cardinalities doesn't suit you, you are free to
2757
+ define your own by implementing the following interface (in namespace
2758
+ `testing`):
2759
+
2760
+ ```
2761
+ class CardinalityInterface {
2762
+ public:
2763
+ virtual ~CardinalityInterface();
2764
+
2765
+ // Returns true iff call_count calls will satisfy this cardinality.
2766
+ virtual bool IsSatisfiedByCallCount(int call_count) const = 0;
2767
+
2768
+ // Returns true iff call_count calls will saturate this cardinality.
2769
+ virtual bool IsSaturatedByCallCount(int call_count) const = 0;
2770
+
2771
+ // Describes self to an ostream.
2772
+ virtual void DescribeTo(::std::ostream* os) const = 0;
2773
+ };
2774
+ ```
2775
+
2776
+ For example, to specify that a call must occur even number of times,
2777
+ you can write
2778
+
2779
+ ```
2780
+ using ::testing::Cardinality;
2781
+ using ::testing::CardinalityInterface;
2782
+ using ::testing::MakeCardinality;
2783
+
2784
+ class EvenNumberCardinality : public CardinalityInterface {
2785
+ public:
2786
+ virtual bool IsSatisfiedByCallCount(int call_count) const {
2787
+ return (call_count % 2) == 0;
2788
+ }
2789
+
2790
+ virtual bool IsSaturatedByCallCount(int call_count) const {
2791
+ return false;
2792
+ }
2793
+
2794
+ virtual void DescribeTo(::std::ostream* os) const {
2795
+ *os << "called even number of times";
2796
+ }
2797
+ };
2798
+
2799
+ Cardinality EvenNumber() {
2800
+ return MakeCardinality(new EvenNumberCardinality);
2801
+ }
2802
+ ...
2803
+
2804
+ EXPECT_CALL(foo, Bar(3))
2805
+ .Times(EvenNumber());
2806
+ ```
2807
+
2808
+ ## Writing New Actions Quickly ##
2809
+
2810
+ If the built-in actions don't work for you, and you find it
2811
+ inconvenient to use `Invoke()`, you can use a macro from the `ACTION*`
2812
+ family to quickly define a new action that can be used in your code as
2813
+ if it's a built-in action.
2814
+
2815
+ By writing
2816
+ ```
2817
+ ACTION(name) { statements; }
2818
+ ```
2819
+ in a namespace scope (i.e. not inside a class or function), you will
2820
+ define an action with the given name that executes the statements.
2821
+ The value returned by `statements` will be used as the return value of
2822
+ the action. Inside the statements, you can refer to the K-th
2823
+ (0-based) argument of the mock function as `argK`. For example:
2824
+ ```
2825
+ ACTION(IncrementArg1) { return ++(*arg1); }
2826
+ ```
2827
+ allows you to write
2828
+ ```
2829
+ ... WillOnce(IncrementArg1());
2830
+ ```
2831
+
2832
+ Note that you don't need to specify the types of the mock function
2833
+ arguments. Rest assured that your code is type-safe though:
2834
+ you'll get a compiler error if `*arg1` doesn't support the `++`
2835
+ operator, or if the type of `++(*arg1)` isn't compatible with the mock
2836
+ function's return type.
2837
+
2838
+ Another example:
2839
+ ```
2840
+ ACTION(Foo) {
2841
+ (*arg2)(5);
2842
+ Blah();
2843
+ *arg1 = 0;
2844
+ return arg0;
2845
+ }
2846
+ ```
2847
+ defines an action `Foo()` that invokes argument #2 (a function pointer)
2848
+ with 5, calls function `Blah()`, sets the value pointed to by argument
2849
+ #1 to 0, and returns argument #0.
2850
+
2851
+ For more convenience and flexibility, you can also use the following
2852
+ pre-defined symbols in the body of `ACTION`:
2853
+
2854
+ | `argK_type` | The type of the K-th (0-based) argument of the mock function |
2855
+ |:------------|:-------------------------------------------------------------|
2856
+ | `args` | All arguments of the mock function as a tuple |
2857
+ | `args_type` | The type of all arguments of the mock function as a tuple |
2858
+ | `return_type` | The return type of the mock function |
2859
+ | `function_type` | The type of the mock function |
2860
+
2861
+ For example, when using an `ACTION` as a stub action for mock function:
2862
+ ```
2863
+ int DoSomething(bool flag, int* ptr);
2864
+ ```
2865
+ we have:
2866
+ | **Pre-defined Symbol** | **Is Bound To** |
2867
+ |:-----------------------|:----------------|
2868
+ | `arg0` | the value of `flag` |
2869
+ | `arg0_type` | the type `bool` |
2870
+ | `arg1` | the value of `ptr` |
2871
+ | `arg1_type` | the type `int*` |
2872
+ | `args` | the tuple `(flag, ptr)` |
2873
+ | `args_type` | the type `std::tr1::tuple<bool, int*>` |
2874
+ | `return_type` | the type `int` |
2875
+ | `function_type` | the type `int(bool, int*)` |
2876
+
2877
+ ## Writing New Parameterized Actions Quickly ##
2878
+
2879
+ Sometimes you'll want to parameterize an action you define. For that
2880
+ we have another macro
2881
+ ```
2882
+ ACTION_P(name, param) { statements; }
2883
+ ```
2884
+
2885
+ For example,
2886
+ ```
2887
+ ACTION_P(Add, n) { return arg0 + n; }
2888
+ ```
2889
+ will allow you to write
2890
+ ```
2891
+ // Returns argument #0 + 5.
2892
+ ... WillOnce(Add(5));
2893
+ ```
2894
+
2895
+ For convenience, we use the term _arguments_ for the values used to
2896
+ invoke the mock function, and the term _parameters_ for the values
2897
+ used to instantiate an action.
2898
+
2899
+ Note that you don't need to provide the type of the parameter either.
2900
+ Suppose the parameter is named `param`, you can also use the
2901
+ Google-Mock-defined symbol `param_type` to refer to the type of the
2902
+ parameter as inferred by the compiler. For example, in the body of
2903
+ `ACTION_P(Add, n)` above, you can write `n_type` for the type of `n`.
2904
+
2905
+ Google Mock also provides `ACTION_P2`, `ACTION_P3`, and etc to support
2906
+ multi-parameter actions. For example,
2907
+ ```
2908
+ ACTION_P2(ReturnDistanceTo, x, y) {
2909
+ double dx = arg0 - x;
2910
+ double dy = arg1 - y;
2911
+ return sqrt(dx*dx + dy*dy);
2912
+ }
2913
+ ```
2914
+ lets you write
2915
+ ```
2916
+ ... WillOnce(ReturnDistanceTo(5.0, 26.5));
2917
+ ```
2918
+
2919
+ You can view `ACTION` as a degenerated parameterized action where the
2920
+ number of parameters is 0.
2921
+
2922
+ You can also easily define actions overloaded on the number of parameters:
2923
+ ```
2924
+ ACTION_P(Plus, a) { ... }
2925
+ ACTION_P2(Plus, a, b) { ... }
2926
+ ```
2927
+
2928
+ ## Restricting the Type of an Argument or Parameter in an ACTION ##
2929
+
2930
+ For maximum brevity and reusability, the `ACTION*` macros don't ask
2931
+ you to provide the types of the mock function arguments and the action
2932
+ parameters. Instead, we let the compiler infer the types for us.
2933
+
2934
+ Sometimes, however, we may want to be more explicit about the types.
2935
+ There are several tricks to do that. For example:
2936
+ ```
2937
+ ACTION(Foo) {
2938
+ // Makes sure arg0 can be converted to int.
2939
+ int n = arg0;
2940
+ ... use n instead of arg0 here ...
2941
+ }
2942
+
2943
+ ACTION_P(Bar, param) {
2944
+ // Makes sure the type of arg1 is const char*.
2945
+ ::testing::StaticAssertTypeEq<const char*, arg1_type>();
2946
+
2947
+ // Makes sure param can be converted to bool.
2948
+ bool flag = param;
2949
+ }
2950
+ ```
2951
+ where `StaticAssertTypeEq` is a compile-time assertion in Google Test
2952
+ that verifies two types are the same.
2953
+
2954
+ ## Writing New Action Templates Quickly ##
2955
+
2956
+ Sometimes you want to give an action explicit template parameters that
2957
+ cannot be inferred from its value parameters. `ACTION_TEMPLATE()`
2958
+ supports that and can be viewed as an extension to `ACTION()` and
2959
+ `ACTION_P*()`.
2960
+
2961
+ The syntax:
2962
+ ```
2963
+ ACTION_TEMPLATE(ActionName,
2964
+ HAS_m_TEMPLATE_PARAMS(kind1, name1, ..., kind_m, name_m),
2965
+ AND_n_VALUE_PARAMS(p1, ..., p_n)) { statements; }
2966
+ ```
2967
+
2968
+ defines an action template that takes _m_ explicit template parameters
2969
+ and _n_ value parameters, where _m_ is between 1 and 10, and _n_ is
2970
+ between 0 and 10. `name_i` is the name of the i-th template
2971
+ parameter, and `kind_i` specifies whether it's a `typename`, an
2972
+ integral constant, or a template. `p_i` is the name of the i-th value
2973
+ parameter.
2974
+
2975
+ Example:
2976
+ ```
2977
+ // DuplicateArg<k, T>(output) converts the k-th argument of the mock
2978
+ // function to type T and copies it to *output.
2979
+ ACTION_TEMPLATE(DuplicateArg,
2980
+ // Note the comma between int and k:
2981
+ HAS_2_TEMPLATE_PARAMS(int, k, typename, T),
2982
+ AND_1_VALUE_PARAMS(output)) {
2983
+ *output = T(std::tr1::get<k>(args));
2984
+ }
2985
+ ```
2986
+
2987
+ To create an instance of an action template, write:
2988
+ ```
2989
+ ActionName<t1, ..., t_m>(v1, ..., v_n)
2990
+ ```
2991
+ where the `t`s are the template arguments and the
2992
+ `v`s are the value arguments. The value argument
2993
+ types are inferred by the compiler. For example:
2994
+ ```
2995
+ using ::testing::_;
2996
+ ...
2997
+ int n;
2998
+ EXPECT_CALL(mock, Foo(_, _))
2999
+ .WillOnce(DuplicateArg<1, unsigned char>(&n));
3000
+ ```
3001
+
3002
+ If you want to explicitly specify the value argument types, you can
3003
+ provide additional template arguments:
3004
+ ```
3005
+ ActionName<t1, ..., t_m, u1, ..., u_k>(v1, ..., v_n)
3006
+ ```
3007
+ where `u_i` is the desired type of `v_i`.
3008
+
3009
+ `ACTION_TEMPLATE` and `ACTION`/`ACTION_P*` can be overloaded on the
3010
+ number of value parameters, but not on the number of template
3011
+ parameters. Without the restriction, the meaning of the following is
3012
+ unclear:
3013
+
3014
+ ```
3015
+ OverloadedAction<int, bool>(x);
3016
+ ```
3017
+
3018
+ Are we using a single-template-parameter action where `bool` refers to
3019
+ the type of `x`, or a two-template-parameter action where the compiler
3020
+ is asked to infer the type of `x`?
3021
+
3022
+ ## Using the ACTION Object's Type ##
3023
+
3024
+ If you are writing a function that returns an `ACTION` object, you'll
3025
+ need to know its type. The type depends on the macro used to define
3026
+ the action and the parameter types. The rule is relatively simple:
3027
+ | **Given Definition** | **Expression** | **Has Type** |
3028
+ |:---------------------|:---------------|:-------------|
3029
+ | `ACTION(Foo)` | `Foo()` | `FooAction` |
3030
+ | `ACTION_TEMPLATE(Foo, HAS_m_TEMPLATE_PARAMS(...), AND_0_VALUE_PARAMS())` | `Foo<t1, ..., t_m>()` | `FooAction<t1, ..., t_m>` |
3031
+ | `ACTION_P(Bar, param)` | `Bar(int_value)` | `BarActionP<int>` |
3032
+ | `ACTION_TEMPLATE(Bar, HAS_m_TEMPLATE_PARAMS(...), AND_1_VALUE_PARAMS(p1))` | `Bar<t1, ..., t_m>(int_value)` | `FooActionP<t1, ..., t_m, int>` |
3033
+ | `ACTION_P2(Baz, p1, p2)` | `Baz(bool_value, int_value)` | `BazActionP2<bool, int>` |
3034
+ | `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>` |
3035
+ | ... | ... | ... |
3036
+
3037
+ Note that we have to pick different suffixes (`Action`, `ActionP`,
3038
+ `ActionP2`, and etc) for actions with different numbers of value
3039
+ parameters, or the action definitions cannot be overloaded on the
3040
+ number of them.
3041
+
3042
+ ## Writing New Monomorphic Actions ##
3043
+
3044
+ While the `ACTION*` macros are very convenient, sometimes they are
3045
+ inappropriate. For example, despite the tricks shown in the previous
3046
+ recipes, they don't let you directly specify the types of the mock
3047
+ function arguments and the action parameters, which in general leads
3048
+ to unoptimized compiler error messages that can baffle unfamiliar
3049
+ users. They also don't allow overloading actions based on parameter
3050
+ types without jumping through some hoops.
3051
+
3052
+ An alternative to the `ACTION*` macros is to implement
3053
+ `::testing::ActionInterface<F>`, where `F` is the type of the mock
3054
+ function in which the action will be used. For example:
3055
+
3056
+ ```
3057
+ template <typename F>class ActionInterface {
3058
+ public:
3059
+ virtual ~ActionInterface();
3060
+
3061
+ // Performs the action. Result is the return type of function type
3062
+ // F, and ArgumentTuple is the tuple of arguments of F.
3063
+ //
3064
+ // For example, if F is int(bool, const string&), then Result would
3065
+ // be int, and ArgumentTuple would be tr1::tuple<bool, const string&>.
3066
+ virtual Result Perform(const ArgumentTuple& args) = 0;
3067
+ };
3068
+
3069
+ using ::testing::_;
3070
+ using ::testing::Action;
3071
+ using ::testing::ActionInterface;
3072
+ using ::testing::MakeAction;
3073
+
3074
+ typedef int IncrementMethod(int*);
3075
+
3076
+ class IncrementArgumentAction : public ActionInterface<IncrementMethod> {
3077
+ public:
3078
+ virtual int Perform(const tr1::tuple<int*>& args) {
3079
+ int* p = tr1::get<0>(args); // Grabs the first argument.
3080
+ return *p++;
3081
+ }
3082
+ };
3083
+
3084
+ Action<IncrementMethod> IncrementArgument() {
3085
+ return MakeAction(new IncrementArgumentAction);
3086
+ }
3087
+ ...
3088
+
3089
+ EXPECT_CALL(foo, Baz(_))
3090
+ .WillOnce(IncrementArgument());
3091
+
3092
+ int n = 5;
3093
+ foo.Baz(&n); // Should return 5 and change n to 6.
3094
+ ```
3095
+
3096
+ ## Writing New Polymorphic Actions ##
3097
+
3098
+ The previous recipe showed you how to define your own action. This is
3099
+ all good, except that you need to know the type of the function in
3100
+ which the action will be used. Sometimes that can be a problem. For
3101
+ example, if you want to use the action in functions with _different_
3102
+ types (e.g. like `Return()` and `SetArgumentPointee()`).
3103
+
3104
+ If an action can be used in several types of mock functions, we say
3105
+ it's _polymorphic_. The `MakePolymorphicAction()` function template
3106
+ makes it easy to define such an action:
3107
+
3108
+ ```
3109
+ namespace testing {
3110
+
3111
+ template <typename Impl>
3112
+ PolymorphicAction<Impl> MakePolymorphicAction(const Impl& impl);
3113
+
3114
+ } // namespace testing
3115
+ ```
3116
+
3117
+ As an example, let's define an action that returns the second argument
3118
+ in the mock function's argument list. The first step is to define an
3119
+ implementation class:
3120
+
3121
+ ```
3122
+ class ReturnSecondArgumentAction {
3123
+ public:
3124
+ template <typename Result, typename ArgumentTuple>
3125
+ Result Perform(const ArgumentTuple& args) const {
3126
+ // To get the i-th (0-based) argument, use tr1::get<i>(args).
3127
+ return tr1::get<1>(args);
3128
+ }
3129
+ };
3130
+ ```
3131
+
3132
+ This implementation class does _not_ need to inherit from any
3133
+ particular class. What matters is that it must have a `Perform()`
3134
+ method template. This method template takes the mock function's
3135
+ arguments as a tuple in a **single** argument, and returns the result of
3136
+ the action. It can be either `const` or not, but must be invokable
3137
+ with exactly one template argument, which is the result type. In other
3138
+ words, you must be able to call `Perform<R>(args)` where `R` is the
3139
+ mock function's return type and `args` is its arguments in a tuple.
3140
+
3141
+ Next, we use `MakePolymorphicAction()` to turn an instance of the
3142
+ implementation class into the polymorphic action we need. It will be
3143
+ convenient to have a wrapper for this:
3144
+
3145
+ ```
3146
+ using ::testing::MakePolymorphicAction;
3147
+ using ::testing::PolymorphicAction;
3148
+
3149
+ PolymorphicAction<ReturnSecondArgumentAction> ReturnSecondArgument() {
3150
+ return MakePolymorphicAction(ReturnSecondArgumentAction());
3151
+ }
3152
+ ```
3153
+
3154
+ Now, you can use this polymorphic action the same way you use the
3155
+ built-in ones:
3156
+
3157
+ ```
3158
+ using ::testing::_;
3159
+
3160
+ class MockFoo : public Foo {
3161
+ public:
3162
+ MOCK_METHOD2(DoThis, int(bool flag, int n));
3163
+ MOCK_METHOD3(DoThat, string(int x, const char* str1, const char* str2));
3164
+ };
3165
+ ...
3166
+
3167
+ MockFoo foo;
3168
+ EXPECT_CALL(foo, DoThis(_, _))
3169
+ .WillOnce(ReturnSecondArgument());
3170
+ EXPECT_CALL(foo, DoThat(_, _, _))
3171
+ .WillOnce(ReturnSecondArgument());
3172
+ ...
3173
+ foo.DoThis(true, 5); // Will return 5.
3174
+ foo.DoThat(1, "Hi", "Bye"); // Will return "Hi".
3175
+ ```
3176
+
3177
+ ## Teaching Google Mock How to Print Your Values ##
3178
+
3179
+ When an uninteresting or unexpected call occurs, Google Mock prints
3180
+ the argument values to help you debug. The `EXPECT_THAT` and
3181
+ `ASSERT_THAT` assertions also print the value being validated when the
3182
+ test fails. Google Mock does this using the user-extensible value
3183
+ printer defined in `<gmock/gmock-printers.h>`.
3184
+
3185
+ This printer knows how to print the built-in C++ types, native arrays,
3186
+ STL containers, and any type that supports the `<<` operator. For
3187
+ other types, it prints the raw bytes in the value and hope you the
3188
+ user can figure it out.
3189
+
3190
+ Did I say that the printer is `extensible`? That means you can teach
3191
+ it to do a better job at printing your particular type than to dump
3192
+ the bytes. To do that, you just need to define `<<` for your type:
3193
+
3194
+ ```
3195
+ #include <iostream>
3196
+
3197
+ namespace foo {
3198
+
3199
+ class Foo { ... };
3200
+
3201
+ // It's important that the << operator is defined in the SAME
3202
+ // namespace that defines Foo. C++'s look-up rules rely on that.
3203
+ ::std::ostream& operator<<(::std::ostream& os, const Foo& foo) {
3204
+ return os << foo.DebugString(); // Whatever needed to print foo to os.
3205
+ }
3206
+
3207
+ } // namespace foo
3208
+ ```
3209
+
3210
+ Sometimes, this might not be an option. For example, your team may
3211
+ consider it dangerous or bad style to have a `<<` operator for `Foo`,
3212
+ or `Foo` may already have a `<<` operator that doesn't do what you
3213
+ want (and you cannot change it). Don't despair though - Google Mock
3214
+ gives you a second chance to get it right. Namely, you can define a
3215
+ `PrintTo()` function like this:
3216
+
3217
+ ```
3218
+ #include <iostream>
3219
+
3220
+ namespace foo {
3221
+
3222
+ class Foo { ... };
3223
+
3224
+ // It's important that PrintTo() is defined in the SAME
3225
+ // namespace that defines Foo. C++'s look-up rules rely on that.
3226
+ void PrintTo(const Foo& foo, ::std::ostream* os) {
3227
+ *os << foo.DebugString(); // Whatever needed to print foo to os.
3228
+ }
3229
+
3230
+ } // namespace foo
3231
+ ```
3232
+
3233
+ What if you have both `<<` and `PrintTo()`? In this case, the latter
3234
+ will override the former when Google Mock is concerned. This allows
3235
+ you to customize how the value should appear in Google Mock's output
3236
+ without affecting code that relies on the behavior of its `<<`
3237
+ operator.
3238
+
3239
+ **Note:** When printing a pointer of type `T*`, Google Mock calls
3240
+ `PrintTo(T*, std::ostream* os)` instead of `operator<<(std::ostream&, T*)`.
3241
+ Therefore the only way to affect how a pointer is printed by Google
3242
+ Mock is to define `PrintTo()` for it. Also note that `T*` and `const T*`
3243
+ are different types, so you may need to define `PrintTo()` for both.
3244
+
3245
+ Why does Google Mock treat pointers specially? There are several reasons:
3246
+
3247
+ * We cannot use `operator<<` to print a `signed char*` or `unsigned char*`, since it will print the pointer as a NUL-terminated C string, which likely will cause an access violation.
3248
+ * We want `NULL` pointers to be printed as `"NULL"`, but `operator<<` prints it as `"0"`, `"nullptr"`, or something else, depending on the compiler.
3249
+ * With some compilers, printing a `NULL` `char*` using `operator<<` will segfault.
3250
+ * `operator<<` prints a function pointer as a `bool` (hence it always prints `"1"`), which is not very useful.