simdjson 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitmodules +1 -1
- data/.travis.yml +10 -3
- data/README.md +2 -0
- data/Rakefile +1 -1
- data/benchmark/run_benchmark.rb +4 -0
- data/ext/simdjson/extconf.rb +1 -1
- data/ext/simdjson/simdjson.cpp +34 -41
- data/lib/simdjson/version.rb +1 -1
- data/simdjson.gemspec +2 -1
- data/vendor/simdjson/AUTHORS +2 -1
- data/vendor/simdjson/CMakeFiles/3.16.3/CompilerIdC/a.out +0 -0
- data/vendor/simdjson/CMakeFiles/3.16.3/CompilerIdCXX/a.out +0 -0
- data/vendor/simdjson/CMakeLists.txt +68 -39
- data/vendor/simdjson/CONTRIBUTING.md +92 -0
- data/vendor/simdjson/CONTRIBUTORS +12 -0
- data/vendor/simdjson/Dockerfile +88 -10
- data/vendor/simdjson/Doxyfile +2578 -0
- data/vendor/simdjson/HACKING.md +652 -0
- data/vendor/simdjson/README.md +156 -547
- data/vendor/simdjson/RELEASES.md +50 -0
- data/vendor/simdjson/benchmark/CMakeLists.txt +37 -8
- data/vendor/simdjson/benchmark/Dockerfile +19 -0
- data/vendor/simdjson/benchmark/bench_dom_api.cpp +552 -0
- data/vendor/simdjson/benchmark/bench_parse_call.cpp +162 -0
- data/vendor/simdjson/benchmark/benchfeatures.cpp +466 -0
- data/vendor/simdjson/benchmark/benchmark.h +62 -179
- data/vendor/simdjson/benchmark/benchmarker.h +522 -0
- data/vendor/simdjson/benchmark/checkperf.cmake +101 -0
- data/vendor/simdjson/benchmark/distinctuseridcompetition.cpp +108 -49
- data/vendor/simdjson/benchmark/event_counter.h +152 -0
- data/vendor/simdjson/benchmark/get_corpus_benchmark.cpp +57 -0
- data/vendor/simdjson/benchmark/linux/linux-perf-events.h +24 -16
- data/vendor/simdjson/benchmark/minifiercompetition.cpp +47 -44
- data/vendor/simdjson/benchmark/parse.cpp +174 -345
- data/vendor/simdjson/benchmark/parse_stream.cpp +191 -0
- data/vendor/simdjson/benchmark/parseandstatcompetition.cpp +260 -77
- data/vendor/simdjson/benchmark/parsingcompetition.cpp +138 -75
- data/vendor/simdjson/benchmark/perfdiff.cpp +114 -0
- data/vendor/simdjson/benchmark/statisticalmodel.cpp +75 -76
- data/vendor/simdjson/cmake/add_cpp_test.cmake +49 -0
- data/vendor/simdjson/cmake/simdjson-flags.cmake +155 -0
- data/vendor/simdjson/cmake/simdjson-user-cmakecache.cmake +24 -0
- data/vendor/simdjson/dependencies/CMakeLists.txt +89 -0
- data/vendor/simdjson/dependencies/benchmark/AUTHORS +56 -0
- data/vendor/simdjson/dependencies/benchmark/BUILD.bazel +44 -0
- data/vendor/simdjson/dependencies/benchmark/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- data/vendor/simdjson/dependencies/benchmark/CMakeFiles/progress.marks +1 -0
- data/vendor/simdjson/dependencies/benchmark/CMakeLists.txt +279 -0
- data/vendor/simdjson/dependencies/benchmark/CONTRIBUTING.md +58 -0
- data/vendor/simdjson/dependencies/benchmark/CONTRIBUTORS +78 -0
- data/vendor/simdjson/dependencies/benchmark/CTestTestfile.cmake +7 -0
- data/vendor/simdjson/dependencies/benchmark/LICENSE +202 -0
- data/vendor/simdjson/dependencies/benchmark/Makefile +220 -0
- data/vendor/simdjson/dependencies/benchmark/README.md +1290 -0
- data/vendor/simdjson/dependencies/benchmark/WORKSPACE +15 -0
- data/vendor/simdjson/dependencies/benchmark/_config.yml +1 -0
- data/vendor/simdjson/dependencies/benchmark/appveyor.yml +50 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/AddCXXCompilerFlag.cmake +74 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/CXXFeatureCheck.cmake +64 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/Config.cmake.in +1 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/GetGitVersion.cmake +54 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/GoogleTest.cmake +41 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/GoogleTest.cmake.in +58 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/Modules/FindLLVMAr.cmake +16 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/Modules/FindLLVMNm.cmake +16 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/Modules/FindLLVMRanLib.cmake +15 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/benchmark.pc.in +12 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/gnu_posix_regex.cpp +12 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/llvm-toolchain.cmake +8 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/posix_regex.cpp +14 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/split_list.cmake +3 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/std_regex.cpp +10 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/steady_clock.cpp +7 -0
- data/vendor/simdjson/dependencies/benchmark/cmake/thread_safety_attributes.cpp +4 -0
- data/vendor/simdjson/dependencies/benchmark/cmake_install.cmake +45 -0
- data/vendor/simdjson/dependencies/benchmark/conan/CMakeLists.txt +7 -0
- data/vendor/simdjson/dependencies/benchmark/conan/test_package/CMakeLists.txt +10 -0
- data/vendor/simdjson/dependencies/benchmark/conan/test_package/conanfile.py +19 -0
- data/vendor/simdjson/dependencies/benchmark/conan/test_package/test_package.cpp +18 -0
- data/vendor/simdjson/dependencies/benchmark/conanfile.py +79 -0
- data/vendor/simdjson/dependencies/benchmark/dependencies.md +18 -0
- data/vendor/simdjson/dependencies/benchmark/docs/AssemblyTests.md +147 -0
- data/vendor/simdjson/dependencies/benchmark/docs/_config.yml +1 -0
- data/vendor/simdjson/dependencies/benchmark/docs/tools.md +199 -0
- data/vendor/simdjson/dependencies/benchmark/include/benchmark/benchmark.h +1586 -0
- data/vendor/simdjson/dependencies/benchmark/mingw.py +320 -0
- data/vendor/simdjson/dependencies/benchmark/releasing.md +16 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/CXX.includecache +738 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/DependInfo.cmake +47 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/build.make +354 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/cmake_clean.cmake +27 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/cmake_clean_target.cmake +3 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/depend.internal +157 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/depend.make +157 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/flags.make +10 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/link.txt +2 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark.dir/progress.make +20 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/CXX.includecache +40 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/DependInfo.cmake +31 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/build.make +99 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/cmake_clean.cmake +10 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/cmake_clean_target.cmake +3 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/depend.internal +6 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/depend.make +6 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/flags.make +10 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/link.txt +2 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/benchmark_main.dir/progress.make +3 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeFiles/progress.marks +1 -0
- data/vendor/simdjson/dependencies/benchmark/src/CMakeLists.txt +116 -0
- data/vendor/simdjson/dependencies/benchmark/src/CTestTestfile.cmake +6 -0
- data/vendor/simdjson/dependencies/benchmark/src/Makefile +822 -0
- data/vendor/simdjson/dependencies/benchmark/src/arraysize.h +33 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark.cc +499 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark_api_internal.cc +15 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark_api_internal.h +53 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark_main.cc +17 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark_name.cc +58 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark_register.cc +506 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark_register.h +107 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark_runner.cc +361 -0
- data/vendor/simdjson/dependencies/benchmark/src/benchmark_runner.h +51 -0
- data/vendor/simdjson/dependencies/benchmark/src/check.h +82 -0
- data/vendor/simdjson/dependencies/benchmark/src/cmake_install.cmake +39 -0
- data/vendor/simdjson/dependencies/benchmark/src/colorprint.cc +188 -0
- data/vendor/simdjson/dependencies/benchmark/src/colorprint.h +33 -0
- data/vendor/simdjson/dependencies/benchmark/src/commandlineflags.cc +228 -0
- data/vendor/simdjson/dependencies/benchmark/src/commandlineflags.h +103 -0
- data/vendor/simdjson/dependencies/benchmark/src/complexity.cc +238 -0
- data/vendor/simdjson/dependencies/benchmark/src/complexity.h +55 -0
- data/vendor/simdjson/dependencies/benchmark/src/console_reporter.cc +177 -0
- data/vendor/simdjson/dependencies/benchmark/src/counter.cc +80 -0
- data/vendor/simdjson/dependencies/benchmark/src/counter.h +32 -0
- data/vendor/simdjson/dependencies/benchmark/src/csv_reporter.cc +154 -0
- data/vendor/simdjson/dependencies/benchmark/src/cycleclock.h +192 -0
- data/vendor/simdjson/dependencies/benchmark/src/internal_macros.h +94 -0
- data/vendor/simdjson/dependencies/benchmark/src/json_reporter.cc +253 -0
- data/vendor/simdjson/dependencies/benchmark/src/log.h +74 -0
- data/vendor/simdjson/dependencies/benchmark/src/mutex.h +155 -0
- data/vendor/simdjson/dependencies/benchmark/src/re.h +158 -0
- data/vendor/simdjson/dependencies/benchmark/src/reporter.cc +105 -0
- data/vendor/simdjson/dependencies/benchmark/src/sleep.cc +51 -0
- data/vendor/simdjson/dependencies/benchmark/src/sleep.h +15 -0
- data/vendor/simdjson/dependencies/benchmark/src/statistics.cc +193 -0
- data/vendor/simdjson/dependencies/benchmark/src/statistics.h +37 -0
- data/vendor/simdjson/dependencies/benchmark/src/string_util.cc +252 -0
- data/vendor/simdjson/dependencies/benchmark/src/string_util.h +59 -0
- data/vendor/simdjson/dependencies/benchmark/src/sysinfo.cc +708 -0
- data/vendor/simdjson/dependencies/benchmark/src/thread_manager.h +64 -0
- data/vendor/simdjson/dependencies/benchmark/src/thread_timer.h +86 -0
- data/vendor/simdjson/dependencies/benchmark/src/timers.cc +217 -0
- data/vendor/simdjson/dependencies/benchmark/src/timers.h +48 -0
- data/vendor/simdjson/dependencies/benchmark/test/AssemblyTests.cmake +46 -0
- data/vendor/simdjson/dependencies/benchmark/test/BUILD +73 -0
- data/vendor/simdjson/dependencies/benchmark/test/CMakeLists.txt +260 -0
- data/vendor/simdjson/dependencies/benchmark/test/basic_test.cc +136 -0
- data/vendor/simdjson/dependencies/benchmark/test/benchmark_gtest.cc +128 -0
- data/vendor/simdjson/dependencies/benchmark/test/benchmark_name_gtest.cc +74 -0
- data/vendor/simdjson/dependencies/benchmark/test/benchmark_test.cc +245 -0
- data/vendor/simdjson/dependencies/benchmark/test/clobber_memory_assembly_test.cc +64 -0
- data/vendor/simdjson/dependencies/benchmark/test/commandlineflags_gtest.cc +201 -0
- data/vendor/simdjson/dependencies/benchmark/test/complexity_test.cc +213 -0
- data/vendor/simdjson/dependencies/benchmark/test/cxx03_test.cc +63 -0
- data/vendor/simdjson/dependencies/benchmark/test/diagnostics_test.cc +80 -0
- data/vendor/simdjson/dependencies/benchmark/test/display_aggregates_only_test.cc +43 -0
- data/vendor/simdjson/dependencies/benchmark/test/donotoptimize_assembly_test.cc +163 -0
- data/vendor/simdjson/dependencies/benchmark/test/donotoptimize_test.cc +52 -0
- data/vendor/simdjson/dependencies/benchmark/test/filter_test.cc +104 -0
- data/vendor/simdjson/dependencies/benchmark/test/fixture_test.cc +49 -0
- data/vendor/simdjson/dependencies/benchmark/test/internal_threading_test.cc +184 -0
- data/vendor/simdjson/dependencies/benchmark/test/link_main_test.cc +8 -0
- data/vendor/simdjson/dependencies/benchmark/test/map_test.cc +57 -0
- data/vendor/simdjson/dependencies/benchmark/test/memory_manager_test.cc +44 -0
- data/vendor/simdjson/dependencies/benchmark/test/multiple_ranges_test.cc +96 -0
- data/vendor/simdjson/dependencies/benchmark/test/options_test.cc +75 -0
- data/vendor/simdjson/dependencies/benchmark/test/output_test.h +213 -0
- data/vendor/simdjson/dependencies/benchmark/test/output_test_helper.cc +515 -0
- data/vendor/simdjson/dependencies/benchmark/test/register_benchmark_test.cc +184 -0
- data/vendor/simdjson/dependencies/benchmark/test/report_aggregates_only_test.cc +39 -0
- data/vendor/simdjson/dependencies/benchmark/test/reporter_output_test.cc +748 -0
- data/vendor/simdjson/dependencies/benchmark/test/skip_with_error_test.cc +189 -0
- data/vendor/simdjson/dependencies/benchmark/test/state_assembly_test.cc +68 -0
- data/vendor/simdjson/dependencies/benchmark/test/statistics_gtest.cc +28 -0
- data/vendor/simdjson/dependencies/benchmark/test/string_util_gtest.cc +153 -0
- data/vendor/simdjson/dependencies/benchmark/test/templated_fixture_test.cc +28 -0
- data/vendor/simdjson/dependencies/benchmark/test/user_counters_tabular_test.cc +285 -0
- data/vendor/simdjson/dependencies/benchmark/test/user_counters_test.cc +531 -0
- data/vendor/simdjson/dependencies/benchmark/test/user_counters_thousands_test.cc +173 -0
- data/vendor/simdjson/dependencies/benchmark/tools/compare.py +408 -0
- data/vendor/simdjson/dependencies/benchmark/tools/gbench/__init__.py +8 -0
- data/vendor/simdjson/dependencies/benchmark/tools/gbench/report.py +541 -0
- data/vendor/simdjson/dependencies/benchmark/tools/gbench/util.py +164 -0
- data/vendor/simdjson/dependencies/benchmark/tools/strip_asm.py +151 -0
- data/vendor/simdjson/dependencies/cJSON/CHANGELOG.md +375 -0
- data/vendor/simdjson/dependencies/cJSON/CMakeLists.txt +251 -0
- data/vendor/simdjson/dependencies/cJSON/CONTRIBUTORS.md +51 -0
- data/vendor/simdjson/dependencies/cJSON/LICENSE +20 -0
- data/vendor/simdjson/dependencies/cJSON/Makefile +157 -0
- data/vendor/simdjson/dependencies/cJSON/README.md +533 -0
- data/vendor/simdjson/dependencies/cJSON/appveyor.yml +86 -0
- data/vendor/simdjson/dependencies/cJSON/cJSON.c +2936 -0
- data/vendor/simdjson/dependencies/cJSON/cJSON.h +285 -0
- data/vendor/simdjson/dependencies/cJSON/cJSON_Utils.c +1450 -0
- data/vendor/simdjson/dependencies/cJSON/cJSON_Utils.h +88 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/CMakeLists.txt +28 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/afl-prepare-linux.sh +5 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/afl.c +176 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/afl.sh +9 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test1 +22 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test10 +1 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test11 +8 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test2 +11 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test3 +26 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test3.bu +26 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test3.uf +26 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test3.uu +26 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test4 +88 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test5 +27 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test6 +16 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test7 +22 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test8 +13 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/inputs/test9 +5 -0
- data/vendor/simdjson/dependencies/cJSON/fuzzing/json.dict +47 -0
- data/vendor/simdjson/dependencies/cJSON/library_config/cJSONConfig.cmake.in +29 -0
- data/vendor/simdjson/dependencies/cJSON/library_config/cJSONConfigVersion.cmake.in +11 -0
- data/vendor/simdjson/dependencies/cJSON/library_config/libcjson.pc.in +10 -0
- data/vendor/simdjson/dependencies/cJSON/library_config/libcjson_utils.pc.in +10 -0
- data/vendor/simdjson/dependencies/cJSON/test.c +268 -0
- data/vendor/simdjson/dependencies/cJSON/tests/CMakeLists.txt +115 -0
- data/vendor/simdjson/dependencies/cJSON/tests/cjson_add.c +422 -0
- data/vendor/simdjson/dependencies/cJSON/tests/common.h +122 -0
- data/vendor/simdjson/dependencies/cJSON/tests/compare_tests.c +205 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test1 +22 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test1.expected +22 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test10 +1 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test10.expected +1 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test11 +8 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test11.expected +10 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test2 +11 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test2.expected +18 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test3 +26 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test3.expected +28 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test4 +88 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test4.expected +94 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test5 +27 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test5.expected +54 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test6 +16 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test7 +22 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test7.expected +19 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test8 +13 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test8.expected +13 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test9 +5 -0
- data/vendor/simdjson/dependencies/cJSON/tests/inputs/test9.expected +1 -0
- data/vendor/simdjson/dependencies/cJSON/tests/json-patch-tests/README.md +75 -0
- data/vendor/simdjson/dependencies/cJSON/tests/json_patch_tests.c +243 -0
- data/vendor/simdjson/dependencies/cJSON/tests/misc_tests.c +579 -0
- data/vendor/simdjson/dependencies/cJSON/tests/misc_utils_tests.c +80 -0
- data/vendor/simdjson/dependencies/cJSON/tests/old_utils_tests.c +205 -0
- data/vendor/simdjson/dependencies/cJSON/tests/parse_array.c +166 -0
- data/vendor/simdjson/dependencies/cJSON/tests/parse_examples.c +214 -0
- data/vendor/simdjson/dependencies/cJSON/tests/parse_hex4.c +73 -0
- data/vendor/simdjson/dependencies/cJSON/tests/parse_number.c +110 -0
- data/vendor/simdjson/dependencies/cJSON/tests/parse_object.c +176 -0
- data/vendor/simdjson/dependencies/cJSON/tests/parse_string.c +135 -0
- data/vendor/simdjson/dependencies/cJSON/tests/parse_value.c +112 -0
- data/vendor/simdjson/dependencies/cJSON/tests/parse_with_opts.c +112 -0
- data/vendor/simdjson/dependencies/cJSON/tests/print_array.c +100 -0
- data/vendor/simdjson/dependencies/cJSON/tests/print_number.c +105 -0
- data/vendor/simdjson/dependencies/cJSON/tests/print_object.c +101 -0
- data/vendor/simdjson/dependencies/cJSON/tests/print_string.c +78 -0
- data/vendor/simdjson/dependencies/cJSON/tests/print_value.c +107 -0
- data/vendor/simdjson/dependencies/cJSON/tests/readme_examples.c +258 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/README.md +231 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/colour_prompt.rb +118 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/colour_reporter.rb +39 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/generate_config.yml +36 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/generate_module.rb +308 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/generate_test_runner.rb +454 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/parse_output.rb +220 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/stylize_as_junit.rb +252 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/test_file_filter.rb +25 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/type_sanitizer.rb +6 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/unity_test_summary.py +139 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/unity_test_summary.rb +136 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/auto/unity_to_junit.py +146 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/ThrowTheSwitchCodingStandard.md +207 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf +0 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityAssertionsReference.md +770 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityConfigurationGuide.md +435 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityGettingStartedGuide.md +191 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/UnityHelperScriptsGuide.md +254 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/docs/license.txt +21 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/makefile +71 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/readme.txt +5 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/src/ProductionCode.c +24 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/src/ProductionCode.h +3 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/src/ProductionCode2.c +11 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/src/ProductionCode2.h +2 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/test/TestProductionCode.c +62 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/test/TestProductionCode2.c +31 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +53 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +57 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/makefile +70 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/readme.txt +5 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/src/ProductionCode.c +24 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/src/ProductionCode.h +3 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/src/ProductionCode2.c +11 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/src/ProductionCode2.h +2 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/TestProductionCode.c +64 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/TestProductionCode2.c +33 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +9 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +11 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_2/test/test_runners/all_tests.c +12 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/helper/UnityHelper.c +10 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/helper/UnityHelper.h +12 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/rakefile.rb +43 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/rakefile_helper.rb +249 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/readme.txt +13 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/src/ProductionCode.c +24 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/src/ProductionCode.h +3 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/src/ProductionCode2.c +11 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/src/ProductionCode2.h +2 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/target_gcc_32.yml +46 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/test/TestProductionCode.c +62 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/example_3/test/TestProductionCode2.c +31 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/examples/unity_config.h +239 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/eclipse/error_parsers.txt +26 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/rakefile.rb +48 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/rakefile_helper.rb +178 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/readme.txt +9 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/src/unity_fixture.c +432 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/src/unity_fixture.h +83 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/src/unity_fixture_internals.h +51 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +47 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/Makefile +75 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/main/AllTests.c +22 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/template_fixture_tests.c +39 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/unity_fixture_Test.c +543 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/unity_fixture_TestRunner.c +57 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/unity_output_Spy.c +57 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/extras/fixture/test/unity_output_Spy.h +17 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/release/build.info +2 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/release/version.info +2 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/src/unity.c +1570 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/src/unity.h +503 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/src/unity_internals.h +870 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/Makefile +66 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_cmd.c +61 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_def.c +57 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_head1.c +55 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_head1.h +15 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_cmd.c +80 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_def.c +76 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_head1.c +75 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_head1.h +13 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_new1.c +89 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_new2.c +89 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_param.c +77 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_run1.c +89 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_run2.c +89 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_mock_yaml.c +90 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_new1.c +67 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_new2.c +70 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_param.c +58 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_run1.c +67 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_run2.c +70 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/expectdata/testsample_yaml.c +71 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/rakefile +125 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/rakefile_helper.rb +260 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/spec/generate_module_existing_file_spec.rb +158 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/clang_file.yml +78 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/clang_strict.yml +78 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_32.yml +49 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_64.yml +50 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_auto_limits.yml +47 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_auto_stdint.yml +59 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/gcc_manual_math.yml +47 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/hitech_picc18.yml +101 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_arm_v4.yml +90 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_arm_v5.yml +80 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_arm_v5_3.yml +80 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +94 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_cortexm3_v5.yml +84 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_msp430.yml +95 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/targets/iar_sh2a_v6.yml +86 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/CException.h +11 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/Defs.h +8 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/cmock.h +14 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/mockMock.h +13 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/testRunnerGenerator.c +183 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/testRunnerGeneratorSmall.c +67 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/testdata/testRunnerGeneratorWithMocks.c +192 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/tests/test_generate_test_runner.rb +1252 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/tests/testparameterized.c +110 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity/test/tests/testunity.c +5337 -0
- data/vendor/simdjson/dependencies/cJSON/tests/unity_setup.c +3 -0
- data/vendor/simdjson/dependencies/cJSON/valgrind.supp +6 -0
- data/vendor/simdjson/dependencies/cxxopts/CHANGELOG.md +97 -0
- data/vendor/simdjson/dependencies/cxxopts/CMakeLists.txt +108 -0
- data/vendor/simdjson/dependencies/cxxopts/INSTALL +23 -0
- data/vendor/simdjson/dependencies/cxxopts/LICENSE +19 -0
- data/vendor/simdjson/dependencies/cxxopts/README.md +208 -0
- data/vendor/simdjson/dependencies/cxxopts/cxxopts-config.cmake.in +4 -0
- data/vendor/simdjson/dependencies/cxxopts/include/cxxopts.hpp +2193 -0
- data/vendor/simdjson/dependencies/cxxopts/src/CMakeLists.txt +24 -0
- data/vendor/simdjson/dependencies/cxxopts/src/example.cpp +167 -0
- data/vendor/simdjson/dependencies/cxxopts/test/CMakeLists.txt +35 -0
- data/vendor/simdjson/dependencies/cxxopts/test/add-subdirectory-test/CMakeLists.txt +11 -0
- data/vendor/simdjson/dependencies/cxxopts/test/catch.hpp +10460 -0
- data/vendor/simdjson/dependencies/cxxopts/test/find-package-test/CMakeLists.txt +11 -0
- data/vendor/simdjson/dependencies/cxxopts/test/link_a.cpp +6 -0
- data/vendor/simdjson/dependencies/cxxopts/test/link_b.cpp +1 -0
- data/vendor/simdjson/dependencies/cxxopts/test/main.cpp +2 -0
- data/vendor/simdjson/dependencies/cxxopts/test/options.cpp +776 -0
- data/vendor/simdjson/dependencies/fastjson/LICENSE.txt +24 -0
- data/vendor/simdjson/dependencies/fastjson/Makefile +5 -0
- data/vendor/simdjson/dependencies/fastjson/README.md +68 -0
- data/vendor/simdjson/dependencies/fastjson/SConstruct +44 -0
- data/vendor/simdjson/dependencies/fastjson/examples/address_book/Makefile +2 -0
- data/vendor/simdjson/dependencies/fastjson/examples/address_book/README.markdown +5 -0
- data/vendor/simdjson/dependencies/fastjson/examples/address_book/address_book.cpp +166 -0
- data/vendor/simdjson/dependencies/fastjson/include/fastjson/core.h +146 -0
- data/vendor/simdjson/dependencies/fastjson/include/fastjson/dom.h +799 -0
- data/vendor/simdjson/dependencies/fastjson/include/fastjson/error.h +64 -0
- data/vendor/simdjson/dependencies/fastjson/include/fastjson/fastjson.h +161 -0
- data/vendor/simdjson/dependencies/fastjson/include/fastjson/utils.h +62 -0
- data/vendor/simdjson/dependencies/fastjson/src/fastjson.cpp +1016 -0
- data/vendor/simdjson/dependencies/fastjson/src/fastjson2.cpp +440 -0
- data/vendor/simdjson/dependencies/fastjson/src/fastjson_dom.cpp +165 -0
- data/vendor/simdjson/dependencies/fastjson/tests/00-bug-00-bad-parse.cpp +59 -0
- data/vendor/simdjson/dependencies/fastjson/tests/00-bug-01-string-roundtrip.cpp +88 -0
- data/vendor/simdjson/dependencies/fastjson/tests/00-bug-02-unicode-escape.cpp +66 -0
- data/vendor/simdjson/dependencies/fastjson/tests/01-dom-00-dict-const-get.cpp +35 -0
- data/vendor/simdjson/dependencies/fastjson/tests/01-dom-01-vector-from-json.cpp +36 -0
- data/vendor/simdjson/dependencies/fastjson/tests/Makefile +4 -0
- data/vendor/simdjson/dependencies/fastjson/tests/clone_token.cpp +49 -0
- data/vendor/simdjson/dependencies/fastjson/tests/dom_from_string.cpp +77 -0
- data/vendor/simdjson/dependencies/fastjson/tests/misc/dynamic_test.cpp +49 -0
- data/vendor/simdjson/dependencies/fastjson/tests/misc/from_file.cpp +57 -0
- data/vendor/simdjson/dependencies/fastjson/tests/misc/speed_test.cpp +127 -0
- data/vendor/simdjson/dependencies/fastjson/tests/misc/speed_test_boost.cpp +115 -0
- data/vendor/simdjson/dependencies/fastjson/tests/saruconf +3 -0
- data/vendor/simdjson/dependencies/fastjson/tests/test0.cpp +385 -0
- data/vendor/simdjson/dependencies/fastjson/tests/test1.cpp +237 -0
- data/vendor/simdjson/dependencies/fastjson/tests/test2.cpp +301 -0
- data/vendor/simdjson/dependencies/fastjson/tests/test_permissive_count.cpp +100 -0
- data/vendor/simdjson/dependencies/fastjson/tests/test_permissive_parse.cpp +83 -0
- data/vendor/simdjson/dependencies/fastjson/tests/test_permissive_roundtrip.cpp +64 -0
- data/vendor/simdjson/dependencies/fastjson/tests/test_utils.cpp +176 -0
- data/vendor/simdjson/dependencies/gason/CMakeLists.txt +16 -0
- data/vendor/simdjson/dependencies/gason/LICENSE +20 -0
- data/vendor/simdjson/dependencies/gason/README.md +167 -0
- data/vendor/simdjson/dependencies/gason/data/download.sh +5 -0
- data/vendor/simdjson/dependencies/gason/ruberoid/AndroidManifest.xml +32 -0
- data/vendor/simdjson/dependencies/gason/ruberoid/res/values/strings.xml +4 -0
- data/vendor/simdjson/dependencies/gason/src/benchmark.cpp +257 -0
- data/vendor/simdjson/dependencies/gason/src/gason.cpp +334 -0
- data/vendor/simdjson/dependencies/gason/src/gason.h +135 -0
- data/vendor/simdjson/dependencies/gason/src/pretty-print.cpp +192 -0
- data/vendor/simdjson/dependencies/gason/src/test-suite.cpp +146 -0
- data/vendor/simdjson/dependencies/jsmn/LICENSE +20 -0
- data/vendor/simdjson/dependencies/jsmn/Makefile +41 -0
- data/vendor/simdjson/dependencies/jsmn/README.md +168 -0
- data/vendor/simdjson/dependencies/jsmn/example/jsondump.c +126 -0
- data/vendor/simdjson/dependencies/jsmn/example/simple.c +76 -0
- data/vendor/simdjson/dependencies/jsmn/jsmn.c +314 -0
- data/vendor/simdjson/dependencies/jsmn/jsmn.h +76 -0
- data/vendor/simdjson/dependencies/jsmn/test/test.h +27 -0
- data/vendor/simdjson/dependencies/jsmn/test/tests.c +407 -0
- data/vendor/simdjson/dependencies/jsmn/test/testutil.h +94 -0
- data/vendor/simdjson/dependencies/json/CMakeLists.txt +131 -0
- data/vendor/simdjson/dependencies/json/CODE_OF_CONDUCT.md +46 -0
- data/vendor/simdjson/dependencies/json/ChangeLog.md +1670 -0
- data/vendor/simdjson/dependencies/json/LICENSE.MIT +21 -0
- data/vendor/simdjson/dependencies/json/Makefile +629 -0
- data/vendor/simdjson/dependencies/json/README.md +1370 -0
- data/vendor/simdjson/dependencies/json/appveyor.yml +111 -0
- data/vendor/simdjson/dependencies/json/benchmarks/CMakeLists.txt +28 -0
- data/vendor/simdjson/dependencies/json/benchmarks/src/benchmarks.cpp +109 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/AUTHORS +46 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/BUILD.bazel +42 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/CMakeLists.txt +251 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/CONTRIBUTING.md +58 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/CONTRIBUTORS +65 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/LICENSE +202 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/README.md +950 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/WORKSPACE +7 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/appveyor.yml +56 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/AddCXXCompilerFlag.cmake +74 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/CXXFeatureCheck.cmake +64 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/Config.cmake.in +1 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/GetGitVersion.cmake +54 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/HandleGTest.cmake +113 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/Modules/FindLLVMAr.cmake +16 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/Modules/FindLLVMNm.cmake +16 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/Modules/FindLLVMRanLib.cmake +15 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/benchmark.pc.in +11 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/gnu_posix_regex.cpp +12 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/llvm-toolchain.cmake +8 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/posix_regex.cpp +14 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/split_list.cmake +3 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/std_regex.cpp +10 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/steady_clock.cpp +7 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/cmake/thread_safety_attributes.cpp +4 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/docs/AssemblyTests.md +147 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/docs/tools.md +242 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/include/benchmark/benchmark.h +1456 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/mingw.py +320 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/releasing.md +16 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/CMakeLists.txt +105 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/arraysize.h +33 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark.cc +630 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark_api_internal.h +47 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark_main.cc +17 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark_register.cc +461 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/benchmark_register.h +33 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/check.h +79 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/colorprint.cc +188 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/colorprint.h +33 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/commandlineflags.cc +218 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/commandlineflags.h +79 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/complexity.cc +220 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/complexity.h +55 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/console_reporter.cc +182 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/counter.cc +68 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/counter.h +26 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/csv_reporter.cc +149 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/cycleclock.h +177 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/internal_macros.h +89 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/json_reporter.cc +205 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/log.h +73 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/mutex.h +155 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/re.h +152 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/reporter.cc +87 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/sleep.cc +51 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/sleep.h +15 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/statistics.cc +178 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/statistics.h +37 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/string_util.cc +172 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/string_util.h +40 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/sysinfo.cc +587 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/thread_manager.h +66 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/thread_timer.h +69 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/timers.cc +217 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/src/timers.h +48 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/compare.py +316 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/compare_bench.py +67 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/gbench/__init__.py +8 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/gbench/report.py +208 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/gbench/util.py +159 -0
- data/vendor/simdjson/dependencies/json/benchmarks/thirdparty/benchmark/tools/strip_asm.py +151 -0
- data/vendor/simdjson/dependencies/json/cmake/config.cmake.in +15 -0
- data/vendor/simdjson/dependencies/json/doc/Doxyfile +335 -0
- data/vendor/simdjson/dependencies/json/doc/Makefile +90 -0
- data/vendor/simdjson/dependencies/json/doc/avatars.png +0 -0
- data/vendor/simdjson/dependencies/json/doc/binary_formats.md +171 -0
- data/vendor/simdjson/dependencies/json/doc/css/mylayout.css +26 -0
- data/vendor/simdjson/dependencies/json/doc/css/mylayout_docset.css +27 -0
- data/vendor/simdjson/dependencies/json/doc/examples/README.cpp +39 -0
- data/vendor/simdjson/dependencies/json/doc/examples/README.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/README.output +27 -0
- data/vendor/simdjson/dependencies/json/doc/examples/array.cpp +19 -0
- data/vendor/simdjson/dependencies/json/doc/examples/array.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/array.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type.cpp +48 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type_const.cpp +42 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type_const.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__object_t_key_type_const.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__size_type.cpp +43 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__size_type.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__size_type.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__size_type_const.cpp +37 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__size_type_const.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at__size_type_const.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer.cpp +103 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer.output +12 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer_const.cpp +79 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer_const.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/at_json_pointer_const.output +9 -0
- data/vendor/simdjson/dependencies/json/doc/examples/back.cpp +38 -0
- data/vendor/simdjson/dependencies/json/doc/examples/back.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/back.output +7 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__CompatibleType.cpp +218 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__CompatibleType.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__CompatibleType.output +39 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__InputIt_InputIt.cpp +32 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__InputIt_InputIt.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__InputIt_InputIt.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__basic_json.cpp +17 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__basic_json.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__basic_json.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__copyassignment.cpp +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__copyassignment.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__copyassignment.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__list_init_t.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__list_init_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__list_init_t.output +5 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__moveconstructor.cpp +17 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__moveconstructor.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__moveconstructor.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__nullptr_t.cpp +16 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__nullptr_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__nullptr_t.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__size_type_basic_json.cpp +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__size_type_basic_json.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__size_type_basic_json.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value.cpp +30 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_ptr.cpp +30 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_ptr.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_ptr.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_t.cpp +25 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/basic_json__value_t.output +7 -0
- data/vendor/simdjson/dependencies/json/doc/examples/begin.cpp +16 -0
- data/vendor/simdjson/dependencies/json/doc/examples/begin.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/begin.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/cbegin.cpp +16 -0
- data/vendor/simdjson/dependencies/json/doc/examples/cbegin.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/cbegin.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/cend.cpp +19 -0
- data/vendor/simdjson/dependencies/json/doc/examples/cend.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/cend.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/clear.cpp +34 -0
- data/vendor/simdjson/dependencies/json/doc/examples/clear.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/clear.output +7 -0
- data/vendor/simdjson/dependencies/json/doc/examples/contains.cpp +17 -0
- data/vendor/simdjson/dependencies/json/doc/examples/contains.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/contains.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/contains_json_pointer.cpp +45 -0
- data/vendor/simdjson/dependencies/json/doc/examples/contains_json_pointer.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/contains_json_pointer.output +10 -0
- data/vendor/simdjson/dependencies/json/doc/examples/count.cpp +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/count.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/count.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/crbegin.cpp +16 -0
- data/vendor/simdjson/dependencies/json/doc/examples/crbegin.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/crbegin.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/crend.cpp +19 -0
- data/vendor/simdjson/dependencies/json/doc/examples/crend.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/crend.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/diff.cpp +36 -0
- data/vendor/simdjson/dependencies/json/doc/examples/diff.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/diff.output +25 -0
- data/vendor/simdjson/dependencies/json/doc/examples/dump.cpp +48 -0
- data/vendor/simdjson/dependencies/json/doc/examples/dump.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/dump.output +55 -0
- data/vendor/simdjson/dependencies/json/doc/examples/emplace.cpp +31 -0
- data/vendor/simdjson/dependencies/json/doc/examples/emplace.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/emplace.output +6 -0
- data/vendor/simdjson/dependencies/json/doc/examples/emplace_back.cpp +24 -0
- data/vendor/simdjson/dependencies/json/doc/examples/emplace_back.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/emplace_back.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/empty.cpp +30 -0
- data/vendor/simdjson/dependencies/json/doc/examples/empty.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/empty.output +9 -0
- data/vendor/simdjson/dependencies/json/doc/examples/end.cpp +19 -0
- data/vendor/simdjson/dependencies/json/doc/examples/end.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/end.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType.cpp +31 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType.output +6 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType_IteratorType.cpp +31 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType_IteratorType.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__IteratorType_IteratorType.output +6 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__key_type.cpp +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__key_type.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__key_type.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__size_type.cpp +16 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__size_type.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/erase__size_type.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/exception.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/exception.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/exception.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/find__key_type.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/find__key_type.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/find__key_type.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/flatten.cpp +32 -0
- data/vendor/simdjson/dependencies/json/doc/examples/flatten.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/flatten.output +12 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_bson.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_bson.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_bson.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_cbor.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_cbor.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_cbor.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_msgpack.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_msgpack.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_msgpack.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_ubjson.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_ubjson.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/from_ubjson.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/front.cpp +29 -0
- data/vendor/simdjson/dependencies/json/doc/examples/front.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/front.output +6 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get__PointerType.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get__PointerType.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get__PointerType.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get__ValueType_const.cpp +50 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get__ValueType_const.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get__ValueType_const.output +11 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_ptr.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_ptr.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_ptr.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_ref.cpp +27 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_ref.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_ref.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_to.cpp +60 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_to.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/get_to.output +11 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert.cpp +17 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__count.cpp +17 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__count.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__count.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__ilist.cpp +17 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__ilist.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__ilist.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__range.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__range.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__range.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__range_object.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__range_object.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/insert__range_object.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/invalid_iterator.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/invalid_iterator.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/invalid_iterator.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_array.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_array.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_array.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_boolean.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_boolean.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_boolean.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_discarded.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_discarded.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_discarded.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_null.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_null.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_null.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_float.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_float.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_float.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_integer.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_integer.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_integer.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_unsigned.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_unsigned.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_number_unsigned.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_object.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_object.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_object.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_primitive.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_primitive.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_primitive.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_string.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_string.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_string.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_structured.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_structured.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/is_structured.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/items.cpp +23 -0
- data/vendor/simdjson/dependencies/json/doc/examples/items.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/items.output +7 -0
- data/vendor/simdjson/dependencies/json/doc/examples/iterator_wrapper.cpp +23 -0
- data/vendor/simdjson/dependencies/json/doc/examples/iterator_wrapper.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/iterator_wrapper.output +7 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer.cpp +47 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__back.cpp +15 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__back.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__back.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__empty.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__empty.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__empty.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add.cpp +23 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add_binary.cpp +19 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add_binary.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__operator_add_binary.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__parent_pointer.cpp +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__parent_pointer.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__parent_pointer.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__pop_back.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__pop_back.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__pop_back.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__push_back.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__push_back.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__push_back.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__to_string.cpp +35 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__to_string.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/json_pointer__to_string.output +12 -0
- data/vendor/simdjson/dependencies/json/doc/examples/max_size.cpp +25 -0
- data/vendor/simdjson/dependencies/json/doc/examples/max_size.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/max_size.output +7 -0
- data/vendor/simdjson/dependencies/json/doc/examples/merge_patch.cpp +40 -0
- data/vendor/simdjson/dependencies/json/doc/examples/merge_patch.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/merge_patch.output +11 -0
- data/vendor/simdjson/dependencies/json/doc/examples/meta.cpp +11 -0
- data/vendor/simdjson/dependencies/json/doc/examples/meta.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/meta.output +17 -0
- data/vendor/simdjson/dependencies/json/doc/examples/object.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/object.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/object.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__ValueType.cpp +60 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__ValueType.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__ValueType.output +12 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__equal.cpp +24 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__equal.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__equal.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__equal__nullptr_t.cpp +22 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__equal__nullptr_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__equal__nullptr_t.output +5 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__greater.cpp +24 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__greater.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__greater.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__greaterequal.cpp +24 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__greaterequal.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__greaterequal.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__less.cpp +24 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__less.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__less.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__lessequal.cpp +24 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__lessequal.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__lessequal.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal.cpp +24 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal__nullptr_t.cpp +22 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal__nullptr_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__notequal__nullptr_t.output +5 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__value_t.cpp +38 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__value_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator__value_t.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator_deserialize.cpp +26 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator_deserialize.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator_deserialize.output +13 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator_serialize.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator_serialize.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operator_serialize.output +22 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type.cpp +32 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type.output +19 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type_const.cpp +16 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type_const.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__key_type_const.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type.cpp +25 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type_const.cpp +13 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type_const.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorarray__size_type_const.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer.cpp +48 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer_const.cpp +24 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer_const.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/operatorjson_pointer_const.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/other_error.cpp +29 -0
- data/vendor/simdjson/dependencies/json/doc/examples/other_error.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/other_error.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/out_of_range.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/out_of_range.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/out_of_range.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__array__parser_callback_t.cpp +30 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__array__parser_callback_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__array__parser_callback_t.output +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__contiguouscontainer__parser_callback_t.cpp +15 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__contiguouscontainer__parser_callback_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__contiguouscontainer__parser_callback_t.output +6 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__istream__parser_callback_t.cpp +58 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__istream__parser_callback_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__istream__parser_callback_t.output +34 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__iteratortype__parser_callback_t.cpp +15 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__iteratortype__parser_callback_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__iteratortype__parser_callback_t.output +6 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__string__parser_callback_t.cpp +49 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__string__parser_callback_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse__string__parser_callback_t.output +34 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse_error.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse_error.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/parse_error.output +3 -0
- data/vendor/simdjson/dependencies/json/doc/examples/patch.cpp +32 -0
- data/vendor/simdjson/dependencies/json/doc/examples/patch.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/patch.output +11 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back.cpp +25 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back__initializer_list.cpp +27 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back__initializer_list.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back__initializer_list.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back__object_t__value.cpp +25 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back__object_t__value.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/push_back__object_t__value.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/rbegin.cpp +16 -0
- data/vendor/simdjson/dependencies/json/doc/examples/rbegin.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/rbegin.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/rend.cpp +19 -0
- data/vendor/simdjson/dependencies/json/doc/examples/rend.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/rend.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/sax_parse.cpp +124 -0
- data/vendor/simdjson/dependencies/json/doc/examples/sax_parse.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/sax_parse.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/size.cpp +29 -0
- data/vendor/simdjson/dependencies/json/doc/examples/size.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/size.output +9 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__array_t.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__array_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__array_t.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__object_t.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__object_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__object_t.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__reference.cpp +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__reference.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__reference.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__string_t.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__string_t.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/swap__string_t.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_bson.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_bson.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_bson.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_cbor.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_cbor.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_cbor.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_msgpack.cpp +21 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_msgpack.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_msgpack.output +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_ubjson.cpp +63 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_ubjson.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/to_ubjson.output +4 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type.cpp +28 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type_error.cpp +20 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type_error.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type_error.output +2 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type_name.cpp +27 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type_name.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/type_name.output +8 -0
- data/vendor/simdjson/dependencies/json/doc/examples/unflatten.cpp +26 -0
- data/vendor/simdjson/dependencies/json/doc/examples/unflatten.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/unflatten.output +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/update.cpp +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/update.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/update.output +5 -0
- data/vendor/simdjson/dependencies/json/doc/examples/update__range.cpp +18 -0
- data/vendor/simdjson/dependencies/json/doc/examples/update__range.link +1 -0
- data/vendor/simdjson/dependencies/json/doc/examples/update__range.output +5 -0
- data/vendor/simdjson/dependencies/json/doc/faq.md +87 -0
- data/vendor/simdjson/dependencies/json/doc/images/binary.png +0 -0
- data/vendor/simdjson/dependencies/json/doc/images/callback_events.png +0 -0
- data/vendor/simdjson/dependencies/json/doc/images/range-begin-end.svg +435 -0
- data/vendor/simdjson/dependencies/json/doc/images/range-rbegin-rend.svg +1232 -0
- data/vendor/simdjson/dependencies/json/doc/index.md +332 -0
- data/vendor/simdjson/dependencies/json/doc/json.gif +0 -0
- data/vendor/simdjson/dependencies/json/doc/scripts/git-update-ghpages +193 -0
- data/vendor/simdjson/dependencies/json/doc/scripts/send_to_wandbox.py +120 -0
- data/vendor/simdjson/dependencies/json/doc/usages/ios.png +0 -0
- data/vendor/simdjson/dependencies/json/doc/usages/macos.png +0 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/adl_serializer.hpp +49 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/conversions/from_json.hpp +389 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/conversions/to_chars.hpp +1106 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/conversions/to_json.hpp +344 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/exceptions.hpp +356 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/binary_reader.hpp +1983 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/input_adapters.hpp +442 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/json_sax.hpp +701 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/lexer.hpp +1512 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/parser.hpp +498 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/input/position_t.hpp +27 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/internal_iterator.hpp +25 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/iter_impl.hpp +638 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/iteration_proxy.hpp +170 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/iterator_traits.hpp +51 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/json_reverse_iterator.hpp +119 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/iterators/primitive_iterator.hpp +120 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/json_pointer.hpp +1011 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/json_ref.hpp +69 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/macro_scope.hpp +121 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/macro_unscope.hpp +21 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/cpp_future.hpp +63 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/detected.hpp +58 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/is_sax.hpp +142 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/type_traits.hpp +361 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/meta/void_t.hpp +13 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/output/binary_writer.hpp +1336 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/output/output_adapters.hpp +123 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/output/serializer.hpp +840 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/detail/value_t.hpp +77 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/json.hpp +8134 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/json_fwd.hpp +64 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/thirdparty/hedley/hedley.hpp +1505 -0
- data/vendor/simdjson/dependencies/json/include/nlohmann/thirdparty/hedley/hedley_undef.hpp +121 -0
- data/vendor/simdjson/dependencies/json/meson.build +23 -0
- data/vendor/simdjson/dependencies/json/nlohmann_json.natvis +32 -0
- data/vendor/simdjson/dependencies/json/single_include/nlohmann/json.hpp +22684 -0
- data/vendor/simdjson/dependencies/json/test/CMakeLists.txt +150 -0
- data/vendor/simdjson/dependencies/json/test/Makefile +110 -0
- data/vendor/simdjson/dependencies/json/test/cmake_add_subdirectory/CMakeLists.txt +15 -0
- data/vendor/simdjson/dependencies/json/test/cmake_add_subdirectory/project/CMakeLists.txt +13 -0
- data/vendor/simdjson/dependencies/json/test/cmake_add_subdirectory/project/main.cpp +8 -0
- data/vendor/simdjson/dependencies/json/test/cmake_import/CMakeLists.txt +15 -0
- data/vendor/simdjson/dependencies/json/test/cmake_import/project/CMakeLists.txt +12 -0
- data/vendor/simdjson/dependencies/json/test/cmake_import/project/main.cpp +8 -0
- data/vendor/simdjson/dependencies/json/test/cmake_import_minver/CMakeLists.txt +15 -0
- data/vendor/simdjson/dependencies/json/test/cmake_import_minver/project/CMakeLists.txt +8 -0
- data/vendor/simdjson/dependencies/json/test/cmake_import_minver/project/main.cpp +8 -0
- data/vendor/simdjson/dependencies/json/test/data/big-list-of-naughty-strings/LICENSE +22 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test01 +1 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test02 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test03 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test04 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test05 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test06 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test07 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test08 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test09 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test10 +1 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test11 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test12 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test13 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test14 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test15 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test16 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test17 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test18 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test19 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test20 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/cbor_regression/test21 +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json-patch-tests/README.md +75 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/1.json.bson +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/1.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/1.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/2.json.bson +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/2.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/2.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/3.json.bson +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/3.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/3.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/4.json.bson +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/4.json.cbor +4 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/4.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/5.json.bson +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/5.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json.org/5.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_nlohmann_tests/all_unicode.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_nlohmann_tests/all_unicode.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip01.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip01.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip02.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip02.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip03.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip03.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip04.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip04.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip05.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip05.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip06.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip06.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip07.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip07.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip08.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip08.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip09.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip09.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip10.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip10.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip11.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip11.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip12.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip12.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip13.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip13.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip14.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip14.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip15.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip15.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip16.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip16.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip17.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip17.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip18.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip18.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip19.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip19.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip20.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip20.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip21.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip21.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip22.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip22.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip23.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip23.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip24.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip24.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip25.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip25.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip26.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip26.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip27.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip27.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip28.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip28.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip29.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip29.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip30.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip30.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip31.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip31.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip32.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_roundtrip/roundtrip32.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_tests/pass1.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_tests/pass1.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_tests/pass2.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_tests/pass2.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_tests/pass3.json.bson +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_tests/pass3.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_tests/pass3.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/json_testsuite/README.md +10 -0
- data/vendor/simdjson/dependencies/json/test/data/json_testsuite/sample.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/json_testsuite/sample.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/markus_kuhn/UTF-8-test.txt +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/LICENSE +21 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_arraysWithSpaces.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_arraysWithSpaces.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_empty-string.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_empty-string.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_empty.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_empty.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_ending_with_newline.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_ending_with_newline.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_false.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_false.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_heterogeneous.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_heterogeneous.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_null.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_null.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_1_and_newline.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_1_and_newline.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_leading_space.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_leading_space.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_several_null.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_several_null.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_trailing_space.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_array_with_trailing_space.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_0e+1.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_0e+1.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_0e1.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_0e1.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_after_space.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_after_space.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_double_close_to_zero.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_double_close_to_zero.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_double_huge_neg_exp.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_double_huge_neg_exp.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_huge_exp.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_huge_exp.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_int_with_exp.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_int_with_exp.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_minus_zero.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_minus_zero.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_int.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_int.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_one.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_one.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_zero.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_negative_zero.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_neg_exp.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_neg_exp.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_pos_exp.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_capital_e_pos_exp.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_exponent.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_exponent.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_fraction_exponent.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_fraction_exponent.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_neg_exp.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_neg_exp.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_neg_overflow.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_neg_overflow.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_pos_exponent.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_pos_exponent.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_pos_overflow.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_pos_overflow.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_underflow.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_real_underflow.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_simple_int.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_simple_int.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_simple_real.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_simple_real.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_number_too_big_neg_int.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_basic.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_basic.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key_and_value.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_duplicated_key_and_value.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_empty.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_empty.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_empty_key.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_empty_key.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_escaped_null_in_key.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_escaped_null_in_key.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_extreme_numbers.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_extreme_numbers.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_long_strings.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_long_strings.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_simple.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_simple.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_string_unicode.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_string_unicode.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_with_newlines.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_object_with_newlines.json.msgpack +1 -0
- 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
- 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
- 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
- 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
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pair.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pair.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pairs.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_accepted_surrogate_pairs.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_allowed_escapes.json.cbor +2 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_allowed_escapes.json.msgpack +2 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_backslash_and_u_escaped_zero.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_backslash_and_u_escaped_zero.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_backslash_doublequotes.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_backslash_doublequotes.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_comments.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_comments.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_double_escape_a.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_double_escape_a.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_double_escape_n.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_double_escape_n.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_escaped_control_character.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_escaped_control_character.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_escaped_noncharacter.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_escaped_noncharacter.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_in_array.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_in_array.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_in_array_with_leading_space.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_in_array_with_leading_space.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_last_surrogates_1_and_2.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_last_surrogates_1_and_2.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_newline_uescaped.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_newline_uescaped.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+10FFFF.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+10FFFF.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+1FFFF.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+1FFFF.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+FFFF.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_nonCharacterInUTF-8_U+FFFF.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_null_escape.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_null_escape.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_one-byte-utf-8.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_one-byte-utf-8.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_pi.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_pi.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_simple_ascii.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_simple_ascii.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_space.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_space.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_three-byte-utf-8.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_three-byte-utf-8.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_two-byte-utf-8.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_two-byte-utf-8.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_u+2028_line_sep.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_u+2028_line_sep.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_u+2029_par_sep.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_u+2029_par_sep.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_uEscape.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_uEscape.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unescaped_char_delete.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unescaped_char_delete.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicodeEscapedBackslash.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicodeEscapedBackslash.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_2.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_2.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+200B_ZERO_WIDTH_SPACE.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+2064_invisible_plus.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_U+2064_invisible_plus.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_escaped_double_quote.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_unicode_escaped_double_quote.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_utf8.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_utf8.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_with_del_character.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_string_with_del_character.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_false.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_false.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_int.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_int.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_negative_real.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_negative_real.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_null.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_null.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_string.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_string.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_true.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_lonely_true.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_string_empty.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_string_empty.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_trailing_newline.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_trailing_newline.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_true_in_array.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_true_in_array.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_whitespace_array.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite/test_parsing/y_structure_whitespace_array.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite2/LICENSE +21 -0
- data/vendor/simdjson/dependencies/json/test/data/nst_json_testsuite2/README.md +55 -0
- data/vendor/simdjson/dependencies/json/test/data/regression/floats.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/regression/floats.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/regression/signed_ints.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/regression/signed_ints.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/regression/unsigned_ints.json.cbor +0 -0
- data/vendor/simdjson/dependencies/json/test/data/regression/unsigned_ints.json.msgpack +0 -0
- data/vendor/simdjson/dependencies/json/test/data/regression/working_file.json.cbor +1 -0
- data/vendor/simdjson/dependencies/json/test/data/regression/working_file.json.msgpack +1 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/exec_speed.png +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/fuzz.tiff +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/high_freq.png +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/index.html +10 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-08-29-fuzz/low_freq.png +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/README.md +31 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/conformance_Nlohmann (C++11).md +670 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-09-09-nativejson_benchmark/conformance_overall_Result.png +0 -0
- 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
- 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
- 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
- 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
- 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
- data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/exec_speed.png +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/fuzz.tiff +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/high_freq.png +0 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/index.html +10 -0
- data/vendor/simdjson/dependencies/json/test/reports/2016-10-02-fuzz/low_freq.png +0 -0
- data/vendor/simdjson/dependencies/json/test/src/fuzzer-driver_afl.cpp +38 -0
- data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_bson.cpp +73 -0
- data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_cbor.cpp +68 -0
- data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_json.cpp +69 -0
- data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_msgpack.cpp +68 -0
- data/vendor/simdjson/dependencies/json/test/src/fuzzer-parse_ubjson.cpp +68 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-algorithms.cpp +320 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-allocator.cpp +236 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-alt-string.cpp +264 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-bson.cpp +1254 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-capacity.cpp +563 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-cbor.cpp +2189 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-class_const_iterator.cpp +419 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-class_iterator.cpp +403 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-class_lexer.cpp +181 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-class_parser.cpp +1770 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-comparison.cpp +263 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-concepts.cpp +171 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-constructor1.cpp +1537 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-constructor2.cpp +192 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-convenience.cpp +117 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-conversions.cpp +1577 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-deserialization.cpp +1026 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-element_access1.cpp +974 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-element_access2.cpp +1109 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-inspection.cpp +442 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-items.cpp +1450 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-iterators1.cpp +1692 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-iterators2.cpp +906 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-json_patch.cpp +1295 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-json_pointer.cpp +646 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-merge_patch.cpp +262 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-meta.cpp +57 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-modifiers.cpp +941 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-msgpack.cpp +1607 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-noexcept.cpp +82 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-pointer_access.cpp +444 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-readme.cpp +327 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-reference_access.cpp +318 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-regression.cpp +1830 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-serialization.cpp +191 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-testsuites.cpp +1415 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-to_chars.cpp +537 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-ubjson.cpp +2295 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-udt.cpp +830 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-unicode.cpp +1610 -0
- data/vendor/simdjson/dependencies/json/test/src/unit-wstring.cpp +117 -0
- data/vendor/simdjson/dependencies/json/test/src/unit.cpp +31 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/CMakeLists.txt +45 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerCorpus.h +217 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerCrossOver.cpp +52 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerDefs.h +89 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerDictionary.h +124 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerDriver.cpp +545 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctions.def +50 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctions.h +35 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctionsDlsym.cpp +52 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctionsWeak.cpp +53 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerExtFunctionsWeakAlias.cpp +56 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerFlags.def +115 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerIO.cpp +117 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerIO.h +64 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerIOPosix.cpp +88 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerIOWindows.cpp +282 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerInterface.h +67 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerInternal.h +182 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerLoop.cpp +792 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMain.cpp +21 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMerge.cpp +261 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMerge.h +70 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMutate.cpp +527 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerMutate.h +145 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerOptions.h +68 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerRandom.h +36 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerSHA1.cpp +222 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerSHA1.h +33 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerTracePC.cpp +339 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerTracePC.h +158 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerTraceState.cpp +325 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtil.cpp +218 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtil.h +72 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtilDarwin.cpp +152 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtilLinux.cpp +24 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtilPosix.cpp +117 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerUtilWindows.cpp +182 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/FuzzerValueBitMap.h +87 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/README.txt +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/afl/afl_driver.cpp +295 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/build.sh +10 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/cxx.dict +122 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/standalone/StandaloneFuzzTargetMain.c +41 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/AFLDriverTest.cpp +22 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/AbsNegAndConstant64Test.cpp +23 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/AbsNegAndConstantTest.cpp +23 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/AccumulateAllocationsTest.cpp +17 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/BufferOverflowOnInput.cpp +23 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CMakeLists.txt +217 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CallerCalleeTest.cpp +59 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CounterTest.cpp +18 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CustomCrossOverTest.cpp +63 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/CustomMutatorTest.cpp +38 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DSO1.cpp +12 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DSO2.cpp +12 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DSOTestExtra.cpp +11 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DSOTestMain.cpp +31 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/DivTest.cpp +20 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/EmptyTest.cpp +11 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/FourIndependentBranchesTest.cpp +22 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/FullCoverageSetTest.cpp +24 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/FuzzerUnittest.cpp +738 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/InitializeTest.cpp +28 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/LeakTest.cpp +17 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/LeakTimeoutTest.cpp +17 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/LoadTest.cpp +22 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/MemcmpTest.cpp +31 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/NthRunCrashTest.cpp +18 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/NullDerefOnEmptyTest.cpp +19 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/NullDerefTest.cpp +26 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/OneHugeAllocTest.cpp +28 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/OutOfMemorySingleLargeMallocTest.cpp +27 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/OutOfMemoryTest.cpp +31 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/RepeatedBytesTest.cpp +29 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/RepeatedMemcmp.cpp +22 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ShrinkControlFlowTest.cpp +28 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ShrinkValueProfileTest.cpp +22 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SignedIntOverflowTest.cpp +28 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleCmpTest.cpp +46 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleDictionaryTest.cpp +29 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleHashTest.cpp +40 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleTest.cpp +27 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SimpleThreadedTest.cpp +25 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SingleMemcmpTest.cpp +17 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SingleStrcmpTest.cpp +17 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SingleStrncmpTest.cpp +17 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SpamyTest.cpp +21 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/StrcmpTest.cpp +32 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/StrncmpOOBTest.cpp +21 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/StrncmpTest.cpp +28 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/StrstrTest.cpp +28 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SwapCmpTest.cpp +34 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/Switch2Test.cpp +35 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/SwitchTest.cpp +58 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ThreadedLeakTest.cpp +18 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ThreadedTest.cpp +26 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/TimeoutEmptyTest.cpp +14 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/TimeoutTest.cpp +26 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/TraceMallocTest.cpp +27 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/UninstrumentedTest.cpp +11 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/afl-driver-extra-stats.test +28 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/afl-driver-stderr.test +10 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/caller-callee.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/coverage.test +19 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/dict1.txt +4 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/dump_coverage.test +16 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-customcrossover.test +10 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-custommutator.test +4 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-dict.test +6 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-dirs.test +15 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-fdmask.test +30 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-finalstats.test +11 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-flags.test +10 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-jobs.test +29 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-leak.test +35 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-oom-with-profile.test +6 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-oom.test +11 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-printcovpcs.test +8 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-runs.test +8 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-seed.test +3 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-segv.test +5 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-singleinputs.test +16 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-threaded.test +7 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-timeout.test +19 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-traces-hooks.test +25 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer-ubsan.test +4 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/fuzzer.test +57 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/hi.txt +1 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/lit.cfg +29 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/lit.site.cfg.in +4 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/merge.test +46 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/minimize_crash.test +6 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/no-coverage/CMakeLists.txt +29 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/repeated-bytes.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/shrink.test +7 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/simple-cmp.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/standalone.test +4 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/swap-cmp.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/trace-malloc.test +10 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ubsan/CMakeLists.txt +15 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/ulimit.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/uninstrumented/CMakeLists.txt +16 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/unit/lit.cfg +7 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/unit/lit.site.cfg.in +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-cmp.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-cmp2.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-cmp3.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-cmp4.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-div.test +3 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-load.test +3 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-mem.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-set.test +3 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-strcmp.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-strncmp.test +2 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/Fuzzer/test/value-profile-switch.test +3 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/doctest/LICENSE.txt +21 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/doctest/doctest.h +6025 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/doctest/doctest_compatibility.h +37 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/fastcov/LICENSE +21 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/fastcov/README.md +46 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/fastcov/fastcov.py +372 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/fifo_map/LICENSE.MIT +21 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/fifo_map/fifo_map.hpp +530 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/imapdl/filterbr.py +109 -0
- data/vendor/simdjson/dependencies/json/test/thirdparty/imapdl/gpl-3.0.txt +674 -0
- data/vendor/simdjson/dependencies/json/third_party/amalgamate/CHANGES.md +10 -0
- data/vendor/simdjson/dependencies/json/third_party/amalgamate/LICENSE.md +27 -0
- data/vendor/simdjson/dependencies/json/third_party/amalgamate/README.md +66 -0
- data/vendor/simdjson/dependencies/json/third_party/amalgamate/amalgamate.py +299 -0
- data/vendor/simdjson/dependencies/json/third_party/cpplint/LICENSE +27 -0
- data/vendor/simdjson/dependencies/json/third_party/cpplint/README.rst +80 -0
- data/vendor/simdjson/dependencies/json/third_party/cpplint/cpplint.py +6583 -0
- data/vendor/simdjson/dependencies/json/third_party/cpplint/update.sh +5 -0
- data/vendor/simdjson/dependencies/json11/CMakeLists.txt +57 -0
- data/vendor/simdjson/dependencies/json11/LICENSE.txt +19 -0
- data/vendor/simdjson/dependencies/json11/Makefile +15 -0
- data/vendor/simdjson/dependencies/json11/README.md +42 -0
- data/vendor/simdjson/dependencies/json11/json11.cpp +788 -0
- data/vendor/simdjson/dependencies/json11/json11.hpp +232 -0
- data/vendor/simdjson/dependencies/json11/json11.pc.in +9 -0
- data/vendor/simdjson/dependencies/json11/test.cpp +281 -0
- data/vendor/simdjson/dependencies/jsoncpp/AUTHORS +111 -0
- data/vendor/simdjson/dependencies/jsoncpp/CMakeLists.txt +186 -0
- data/vendor/simdjson/dependencies/jsoncpp/CTestConfig.cmake +15 -0
- data/vendor/simdjson/dependencies/jsoncpp/LICENSE +55 -0
- data/vendor/simdjson/dependencies/jsoncpp/README.md +144 -0
- data/vendor/simdjson/dependencies/jsoncpp/amalgamate.py +155 -0
- data/vendor/simdjson/dependencies/jsoncpp/appveyor.yml +26 -0
- data/vendor/simdjson/dependencies/jsoncpp/dev.makefile +35 -0
- data/vendor/simdjson/dependencies/jsoncpp/devtools/__init__.py +6 -0
- data/vendor/simdjson/dependencies/jsoncpp/devtools/antglob.py +205 -0
- data/vendor/simdjson/dependencies/jsoncpp/devtools/batchbuild.py +278 -0
- data/vendor/simdjson/dependencies/jsoncpp/devtools/fixeol.py +70 -0
- data/vendor/simdjson/dependencies/jsoncpp/devtools/licenseupdater.py +94 -0
- data/vendor/simdjson/dependencies/jsoncpp/devtools/tarball.py +52 -0
- data/vendor/simdjson/dependencies/jsoncpp/doc/doxyfile.in +2302 -0
- data/vendor/simdjson/dependencies/jsoncpp/doc/footer.html +21 -0
- data/vendor/simdjson/dependencies/jsoncpp/doc/header.html +64 -0
- data/vendor/simdjson/dependencies/jsoncpp/doc/jsoncpp.dox +164 -0
- data/vendor/simdjson/dependencies/jsoncpp/doc/readme.txt +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/doc/roadmap.dox +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/doc/web_doxyfile.in +2290 -0
- data/vendor/simdjson/dependencies/jsoncpp/doxybuild.py +189 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/CMakeLists.txt +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/allocator.h +89 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/assertions.h +59 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/autolink.h +25 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/config.h +198 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/features.h +61 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/forwards.h +37 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/json.h +15 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/reader.h +417 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/value.h +909 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/version.h +22 -0
- data/vendor/simdjson/dependencies/jsoncpp/include/json/writer.h +368 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/jsoncpp.sln +42 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/jsontest.vcxproj +96 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/jsontest.vcxproj.filters +13 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/lib_json.vcxproj +143 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/lib_json.vcxproj.filters +33 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/test_lib_json.vcxproj +109 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2010/test_lib_json.vcxproj.filters +24 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2017/jsoncpp.sln +64 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2017/jsontest.vcxproj +168 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2017/lib_json.vcxproj +258 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/msvc2017/test_lib_json.vcxproj +189 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/vs71/jsoncpp.sln +46 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/vs71/jsontest.vcproj +119 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/vs71/lib_json.vcproj +205 -0
- data/vendor/simdjson/dependencies/jsoncpp/makefiles/vs71/test_lib_json.vcproj +130 -0
- data/vendor/simdjson/dependencies/jsoncpp/makerelease.py +390 -0
- data/vendor/simdjson/dependencies/jsoncpp/meson.build +115 -0
- data/vendor/simdjson/dependencies/jsoncpp/pkg-config/jsoncpp.pc.in +9 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/CMakeLists.txt +5 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/jsontestrunner/CMakeLists.txt +36 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/jsontestrunner/main.cpp +300 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/CMakeLists.txt +145 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_reader.cpp +2008 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_tool.h +134 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_value.cpp +1713 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_valueiterator.inl +159 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/json_writer.cpp +1253 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/lib_json/version.h.in +20 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/test_lib_json/CMakeLists.txt +40 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/test_lib_json/jsontest.cpp +435 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/test_lib_json/jsontest.h +276 -0
- data/vendor/simdjson/dependencies/jsoncpp/src/test_lib_json/main.cpp +2597 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/cleantests.py +16 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_01.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_02.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_03.expected +6 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_04.expected +5 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_05.expected +100 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_06.expected +5 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_array_07.expected +2122 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_01.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_02.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_03.expected +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_04.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_05.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_06.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_07.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_08.expected +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_basic_09.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_comment_00.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_comment_01.expected +10 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_comment_02.expected +23 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_complex_01.expected +20 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_01.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_02.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_03.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_04.expected +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_05.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_06_64bits.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_07_64bits.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_integer_08_64bits.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_large_01.expected +2122 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_object_01.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_object_02.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_object_03.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_object_04.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_preserve_comment_01.expected +11 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_01.expected +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_02.expected +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_03.expected +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_04.expected +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_05.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_06.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_07.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_08.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_09.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_10.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_11.expected +4 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_real_12.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_01.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_02.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_03.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_04.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_05.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_01.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_02.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_03.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_04.expected +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/data/test_string_unicode_05.expected +2 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/generate_expected.py +17 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/jsonchecker/readme.txt +3 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/pyjsontestrunner.py +71 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/runjsontests.py +210 -0
- data/vendor/simdjson/dependencies/jsoncpp/test/rununittests.py +84 -0
- data/vendor/simdjson/dependencies/jsoncpp/version +1 -0
- data/vendor/simdjson/dependencies/jsoncpp/version.in +1 -0
- data/vendor/simdjson/dependencies/jsoncppdist/jsoncpp.cpp +8 -0
- data/vendor/simdjson/dependencies/rapidjson/CHANGELOG.md +158 -0
- data/vendor/simdjson/dependencies/rapidjson/CMakeLists.txt +221 -0
- data/vendor/simdjson/dependencies/rapidjson/CMakeModules/FindGTestSrc.cmake +30 -0
- data/vendor/simdjson/dependencies/rapidjson/RapidJSON.pc.in +7 -0
- data/vendor/simdjson/dependencies/rapidjson/RapidJSONConfig.cmake.in +15 -0
- data/vendor/simdjson/dependencies/rapidjson/RapidJSONConfigVersion.cmake.in +10 -0
- data/vendor/simdjson/dependencies/rapidjson/appveyor.yml +41 -0
- data/vendor/simdjson/dependencies/rapidjson/bin/data/readme.txt +1 -0
- data/vendor/simdjson/dependencies/rapidjson/bin/draft-04/schema +150 -0
- data/vendor/simdjson/dependencies/rapidjson/bin/jsonchecker/readme.txt +3 -0
- data/vendor/simdjson/dependencies/rapidjson/bin/jsonschema/LICENSE +19 -0
- data/vendor/simdjson/dependencies/rapidjson/bin/jsonschema/README.md +148 -0
- data/vendor/simdjson/dependencies/rapidjson/bin/jsonschema/bin/jsonschema_suite +283 -0
- data/vendor/simdjson/dependencies/rapidjson/bin/jsonschema/tox.ini +8 -0
- data/vendor/simdjson/dependencies/rapidjson/bin/types/readme.txt +1 -0
- data/vendor/simdjson/dependencies/rapidjson/contrib/natvis/LICENSE +45 -0
- data/vendor/simdjson/dependencies/rapidjson/contrib/natvis/README.md +7 -0
- data/vendor/simdjson/dependencies/rapidjson/contrib/natvis/rapidjson.natvis +38 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/CMakeLists.txt +27 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/Doxyfile.in +2369 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/Doxyfile.zh-cn.in +2369 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/architecture.dot +50 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/architecture.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/insituparsing.dot +65 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/insituparsing.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/iterative-parser-states-diagram.dot +62 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/iterative-parser-states-diagram.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/makefile +8 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move1.dot +47 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move1.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move2.dot +62 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move2.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move3.dot +60 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/move3.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/normalparsing.dot +56 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/normalparsing.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/simpledom.dot +54 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/simpledom.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/tutorial.dot +58 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/tutorial.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/utilityclass.dot +73 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/diagram/utilityclass.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/dom.md +280 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/dom.zh-cn.md +284 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/encoding.md +146 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/encoding.zh-cn.md +152 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/faq.md +289 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/faq.zh-cn.md +290 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/features.md +104 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/features.zh-cn.md +103 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/internals.md +368 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/internals.zh-cn.md +363 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/logo/rapidjson.png +0 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/logo/rapidjson.svg +119 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/misc/DoxygenLayout.xml +194 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/misc/doxygenextra.css +274 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/misc/footer.html +11 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/misc/header.html +24 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/npm.md +31 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/performance.md +26 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/performance.zh-cn.md +26 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/pointer.md +234 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/pointer.zh-cn.md +234 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/sax.md +509 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/sax.zh-cn.md +487 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/schema.md +505 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/schema.zh-cn.md +237 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/stream.md +429 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/stream.zh-cn.md +429 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/tutorial.md +536 -0
- data/vendor/simdjson/dependencies/rapidjson/doc/tutorial.zh-cn.md +534 -0
- data/vendor/simdjson/dependencies/rapidjson/docker/debian/Dockerfile +8 -0
- data/vendor/simdjson/dependencies/rapidjson/example/CMakeLists.txt +45 -0
- data/vendor/simdjson/dependencies/rapidjson/example/archiver/archiver.cpp +292 -0
- data/vendor/simdjson/dependencies/rapidjson/example/archiver/archiver.h +145 -0
- data/vendor/simdjson/dependencies/rapidjson/example/archiver/archivertest.cpp +287 -0
- data/vendor/simdjson/dependencies/rapidjson/example/capitalize/capitalize.cpp +67 -0
- data/vendor/simdjson/dependencies/rapidjson/example/condense/condense.cpp +32 -0
- data/vendor/simdjson/dependencies/rapidjson/example/filterkey/filterkey.cpp +135 -0
- data/vendor/simdjson/dependencies/rapidjson/example/filterkeydom/filterkeydom.cpp +170 -0
- data/vendor/simdjson/dependencies/rapidjson/example/jsonx/jsonx.cpp +207 -0
- data/vendor/simdjson/dependencies/rapidjson/example/lookaheadparser/lookaheadparser.cpp +350 -0
- data/vendor/simdjson/dependencies/rapidjson/example/messagereader/messagereader.cpp +105 -0
- data/vendor/simdjson/dependencies/rapidjson/example/parsebyparts/parsebyparts.cpp +176 -0
- data/vendor/simdjson/dependencies/rapidjson/example/pretty/pretty.cpp +30 -0
- data/vendor/simdjson/dependencies/rapidjson/example/prettyauto/prettyauto.cpp +56 -0
- data/vendor/simdjson/dependencies/rapidjson/example/schemavalidator/schemavalidator.cpp +78 -0
- data/vendor/simdjson/dependencies/rapidjson/example/serialize/serialize.cpp +173 -0
- data/vendor/simdjson/dependencies/rapidjson/example/simpledom/simpledom.cpp +29 -0
- data/vendor/simdjson/dependencies/rapidjson/example/simplepullreader/simplepullreader.cpp +53 -0
- data/vendor/simdjson/dependencies/rapidjson/example/simplereader/simplereader.cpp +42 -0
- data/vendor/simdjson/dependencies/rapidjson/example/simplewriter/simplewriter.cpp +36 -0
- data/vendor/simdjson/dependencies/rapidjson/example/tutorial/tutorial.cpp +151 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/allocators.h +284 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/cursorstreamwrapper.h +78 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/document.h +2658 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/encodedstream.h +299 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/encodings.h +716 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/error/en.h +74 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/error/error.h +161 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/filereadstream.h +99 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/filewritestream.h +104 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/fwd.h +151 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/biginteger.h +290 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/diyfp.h +258 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/dtoa.h +245 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/ieee754.h +78 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/itoa.h +309 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/meta.h +186 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/pow10.h +55 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/regex.h +732 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/stack.h +231 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/strfunc.h +69 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/strtod.h +269 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/internal/swap.h +46 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/istreamwrapper.h +113 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/memorybuffer.h +70 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/memorystream.h +71 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/msinttypes/inttypes.h +316 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/msinttypes/stdint.h +300 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/ostreamwrapper.h +81 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/pointer.h +1357 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/prettywriter.h +277 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/rapidjson.h +628 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/reader.h +2216 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/schema.h +2483 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/stream.h +223 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/stringbuffer.h +121 -0
- data/vendor/simdjson/dependencies/rapidjson/include/rapidjson/writer.h +710 -0
- data/vendor/simdjson/dependencies/rapidjson/include_dirs.js +2 -0
- data/vendor/simdjson/dependencies/rapidjson/license.txt +57 -0
- data/vendor/simdjson/dependencies/rapidjson/rapidjson.autopkg +77 -0
- data/vendor/simdjson/dependencies/rapidjson/readme.md +160 -0
- data/vendor/simdjson/dependencies/rapidjson/readme.zh-cn.md +152 -0
- data/vendor/simdjson/dependencies/rapidjson/test/CMakeLists.txt +20 -0
- data/vendor/simdjson/dependencies/rapidjson/test/perftest/CMakeLists.txt +28 -0
- data/vendor/simdjson/dependencies/rapidjson/test/perftest/misctest.cpp +974 -0
- data/vendor/simdjson/dependencies/rapidjson/test/perftest/perftest.cpp +24 -0
- data/vendor/simdjson/dependencies/rapidjson/test/perftest/perftest.h +185 -0
- data/vendor/simdjson/dependencies/rapidjson/test/perftest/platformtest.cpp +166 -0
- data/vendor/simdjson/dependencies/rapidjson/test/perftest/rapidjsontest.cpp +472 -0
- data/vendor/simdjson/dependencies/rapidjson/test/perftest/schematest.cpp +216 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/CMakeLists.txt +92 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/allocatorstest.cpp +102 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/bigintegertest.cpp +133 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/cursorstreamwrappertest.cpp +115 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/documenttest.cpp +672 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/dtoatest.cpp +98 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/encodedstreamtest.cpp +313 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/encodingstest.cpp +451 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/filestreamtest.cpp +112 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/fwdtest.cpp +230 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/istreamwrappertest.cpp +181 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/itoatest.cpp +160 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/jsoncheckertest.cpp +143 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/namespacetest.cpp +70 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/ostreamwrappertest.cpp +92 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/pointertest.cpp +1529 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/prettywritertest.cpp +344 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/readertest.cpp +1895 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/regextest.cpp +638 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/schematest.cpp +2045 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/simdtest.cpp +219 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/strfunctest.cpp +30 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/stringbuffertest.cpp +192 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/strtodtest.cpp +132 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/unittest.cpp +51 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/unittest.h +140 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/valuetest.cpp +1851 -0
- data/vendor/simdjson/dependencies/rapidjson/test/unittest/writertest.cpp +598 -0
- data/vendor/simdjson/dependencies/rapidjson/test/valgrind.supp +17 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/CMakeLists.txt +16 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/README.md +141 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/CHANGES +126 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt +202 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/CONTRIBUTORS +40 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/LICENSE +28 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/Makefile.am +224 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/README.md +333 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/configure.ac +146 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/CheatSheet.md +562 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/CookBook.md +3675 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/DesignDoc.md +280 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/DevGuide.md +132 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/Documentation.md +12 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/ForDummies.md +439 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/FrequentlyAskedQuestions.md +628 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/KnownIssues.md +19 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CheatSheet.md +525 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CookBook.md +3250 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/Documentation.md +11 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/ForDummies.md +439 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/FrequentlyAskedQuestions.md +624 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CheatSheet.md +534 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CookBook.md +3342 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/Documentation.md +12 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/ForDummies.md +439 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/FrequentlyAskedQuestions.md +628 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CheatSheet.md +556 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CookBook.md +3432 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/Documentation.md +12 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/ForDummies.md +439 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/FrequentlyAskedQuestions.md +628 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-actions.h +1205 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-cardinalities.h +147 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h +2377 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h.pump +794 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h +1095 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +291 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h +2179 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h.pump +672 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h +397 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h.pump +161 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h +4399 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-actions.h +246 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-matchers.h +58 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-spec-builders.h +1847 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock.h +94 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +8 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +10 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-matchers.h +39 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-port.h +46 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h +279 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h.pump +136 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-internal-utils.h +511 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-port.h +91 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/make/Makefile +101 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.sln +32 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.vcproj +191 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_config.vsprops +15 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_main.vcproj +187 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_test.vcproj +201 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.sln +32 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.vcxproj +82 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_config.props +19 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_main.vcxproj +88 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_test.vcxproj +101 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.sln +32 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.vcxproj +84 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_config.props +19 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_main.vcxproj +90 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_test.vcxproj +103 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/fuse_gmock_files.py +240 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/LICENSE +203 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README +35 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README.cppclean +115 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/__init__.py +0 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/ast.py +1733 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class.py +227 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class_test.py +448 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/keywords.py +59 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/tokenize.py +287 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/utils.py +41 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/generator/gmock_gen.py +31 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/gmock-config.in +303 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/gmock_doctor.py +640 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/upload.py +1387 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/scripts/upload_gmock.py +78 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-all.cc +47 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-cardinalities.cc +156 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-internal-utils.cc +174 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-matchers.cc +498 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock-spec-builders.cc +823 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock.cc +183 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/src/gmock_main.cc +54 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-actions_test.cc +1411 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-cardinalities_test.cc +428 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-actions_test.cc +1228 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-function-mockers_test.cc +622 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-internal-utils_test.cc +127 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-matchers_test.cc +1286 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-internal-utils_test.cc +699 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-matchers_test.cc +5648 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-more-actions_test.cc +708 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-nice-strict_test.cc +424 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-port_test.cc +43 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock-spec-builders_test.cc +2644 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_all_test.cc +51 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_ex_test.cc +81 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test.py +108 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test_.cc +100 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_link2_test.cc +40 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.cc +40 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.h +669 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test.py +180 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_.cc +291 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_golden.txt +310 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_stress_test.cc +322 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_test.cc +220 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googlemock/test/gmock_test_utils.py +112 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/CHANGES +157 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt +286 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/CONTRIBUTORS +37 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/LICENSE +28 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/Makefile.am +310 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/README.md +280 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/cmake/internal_utils.cmake +242 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest.cbproj +138 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest.groupproj +54 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest_all.cc +38 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest_link.cc +40 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest_main.cbproj +82 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/codegear/gtest_unittest.cbproj +88 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/configure.ac +68 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/AdvancedGuide.md +2182 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/DevGuide.md +126 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/Documentation.md +14 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/FAQ.md +1087 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/Primer.md +502 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/PumpManual.md +177 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/Samples.md +14 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_AdvancedGuide.md +2096 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Documentation.md +12 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_FAQ.md +886 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Primer.md +497 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_PumpManual.md +177 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_5_XcodeGuide.md +93 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_AdvancedGuide.md +2178 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Documentation.md +14 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_FAQ.md +1038 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Primer.md +501 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_PumpManual.md +177 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Samples.md +14 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_6_XcodeGuide.md +93 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_AdvancedGuide.md +2181 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Documentation.md +14 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_FAQ.md +1082 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Primer.md +501 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_PumpManual.md +177 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Samples.md +14 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/V1_7_XcodeGuide.md +93 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/docs/XcodeGuide.md +93 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-death-test.h +294 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-message.h +250 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h +1444 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h.pump +510 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-printers.h +993 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-spi.h +232 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-test-part.h +179 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-typed-test.h +263 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest.h +2236 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_pred_impl.h +358 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_prod.h +58 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-port.h +69 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-printers.h +42 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest.h +41 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h +319 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-filepath.h +206 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-internal.h +1238 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-linked_ptr.h +243 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h +5146 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +286 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util.h +731 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port-arch.h +93 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port.h +2554 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-string.h +167 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h +1020 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h.pump +347 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h +3331 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h.pump +297 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/m4/acx_pthread.m4 +363 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/m4/gtest.m4 +74 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/make/Makefile +82 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.sln +45 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.vcproj +126 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest.sln +45 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest.vcproj +126 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main-md.vcproj +129 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main.vcproj +129 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test-md.vcproj +164 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test.vcproj +164 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest-md.vcproj +147 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest.vcproj +147 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/prime_tables.h +123 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample1.cc +68 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample1.h +43 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample10_unittest.cc +144 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample1_unittest.cc +153 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample2.cc +56 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample2.h +85 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample2_unittest.cc +109 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample3-inl.h +172 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample3_unittest.cc +151 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample4.cc +46 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample4.h +53 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample4_unittest.cc +45 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample5_unittest.cc +199 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample6_unittest.cc +224 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample7_unittest.cc +130 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample8_unittest.cc +173 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/samples/sample9_unittest.cc +160 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/common.py +83 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/fuse_gtest_files.py +253 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/gen_gtest_pred_impl.py +730 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/gtest-config.in +274 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/pump.py +855 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/release_docs.py +158 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/test/Makefile +59 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/upload.py +1387 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/scripts/upload_gtest.py +78 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-all.cc +48 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-death-test.cc +1342 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-filepath.cc +387 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-internal-inl.h +1183 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-port.cc +1259 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-printers.cc +373 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-test-part.cc +110 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest-typed-test.cc +118 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest.cc +5388 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/src/gtest_main.cc +38 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_ex_test.cc +93 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_test.cc +1427 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-filepath_test.cc +662 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-linked_ptr_test.cc +154 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-listener_test.cc +311 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-message_test.cc +159 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-options_test.cc +215 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test2_test.cc +65 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.cc +1055 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.h +57 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-port_test.cc +1304 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-printers_test.cc +1635 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-test-part_test.cc +208 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-tuple_test.cc +320 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test2_test.cc +45 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.cc +380 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.h +66 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest-unittest-api_test.cc +341 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_all_test.cc +47 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest.py +212 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest_.cc +88 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test.py +237 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test_.cc +311 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test.py +130 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test_.cc +71 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test.py +117 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test_.cc +126 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_environment_test.cc +192 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest.py +636 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest_.cc +140 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test.py +172 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test_.cc +46 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest.py +207 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest_.cc +157 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_main_unittest.cc +45 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_no_test_unittest.cc +56 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test.py +340 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_.cc +1062 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_golden_lin.txt +743 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_pred_impl_unittest.cc +2427 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_premature_exit_test.cc +127 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_prod_test.cc +57 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_repeat_test.cc +253 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test.py +325 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test_.cc +103 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_sole_header_test.cc +57 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_stress_test.cc +256 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_test_utils.py +320 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_ex_test.cc +92 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test.py +171 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test_.cc +72 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test.py +70 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test_.cc +43 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_unittest.cc +7706 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile1_test_.cc +49 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile2_test_.cc +49 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfiles_test.py +132 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest.py +308 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest_.cc +181 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_test_utils.py +194 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/production.cc +36 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/test/production.h +55 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/DebugProject.xcconfig +30 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/FrameworkTarget.xcconfig +17 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/General.xcconfig +41 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/ReleaseProject.xcconfig +32 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/StaticLibraryTarget.xcconfig +18 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Config/TestTarget.xcconfig +8 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Resources/Info.plist +30 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/Info.plist +28 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj +457 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/runtests.sh +62 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.cc +63 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.h +59 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget_test.cc +68 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/runtests.sh +65 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/versiongenerate.py +100 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/googletest/xcode/gtest.xcodeproj/project.pbxproj +1135 -0
- data/vendor/simdjson/dependencies/rapidjson/thirdparty/gtest/travis.sh +15 -0
- data/vendor/simdjson/dependencies/rapidjson/travis-doxygen.sh +121 -0
- data/vendor/simdjson/dependencies/sajson/LICENSE.txt +7 -0
- data/vendor/simdjson/dependencies/sajson/README.md +73 -0
- data/vendor/simdjson/dependencies/sajson/SConscript +41 -0
- data/vendor/simdjson/dependencies/sajson/SConstruct +95 -0
- data/vendor/simdjson/dependencies/sajson/benchmark/benchmark.cpp +92 -0
- data/vendor/simdjson/dependencies/sajson/doc/doxygen.config +2427 -0
- data/vendor/simdjson/dependencies/sajson/example/main.cpp +127 -0
- data/vendor/simdjson/dependencies/sajson/example/zero-allocation.cpp +28 -0
- data/vendor/simdjson/dependencies/sajson/include/sajson.h +2493 -0
- data/vendor/simdjson/dependencies/sajson/include/sajson_ostream.h +20 -0
- data/vendor/simdjson/dependencies/sajson/s/bench +15 -0
- data/vendor/simdjson/dependencies/sajson/s/build +4 -0
- data/vendor/simdjson/dependencies/sajson/s/doxygen +4 -0
- data/vendor/simdjson/dependencies/sajson/s/test +21 -0
- data/vendor/simdjson/dependencies/sajson/sajson-fuzz/build.sh +4 -0
- data/vendor/simdjson/dependencies/sajson/sajson-fuzz/json.dict +44 -0
- data/vendor/simdjson/dependencies/sajson/sajson-fuzz/run-primary.sh +4 -0
- data/vendor/simdjson/dependencies/sajson/sajson-fuzz/run.sh +3 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajson.xcodeproj/project.pbxproj +665 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajson.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajson.xcodeproj/xcshareddata/xcschemes/sajson-macOS.xcscheme +100 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajson/Info.plist +24 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajson/sajson-ffi.cpp +79 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajson/sajson-swift/sajson-ffi.h +35 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajson/sajson.swift +409 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajson/sajson_swift.h +3 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajsonTests/Info.plist +22 -0
- data/vendor/simdjson/dependencies/sajson/swift/sajsonTests/sajsonTests.swift +122 -0
- data/vendor/simdjson/dependencies/sajson/tests/test.cpp +1049 -0
- data/vendor/simdjson/dependencies/sajson/tests/test_no_stl.cpp +2 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/COPYING +20 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/Makefile +96 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/README +68 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/TestUnitTest++.vsnet2003.vcproj +174 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/TestUnitTest++.vsnet2005.vcproj +256 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/UnitTest++.vsnet2003.sln +30 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/UnitTest++.vsnet2003.vcproj +226 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/UnitTest++.vsnet2005.sln +29 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/UnitTest++.vsnet2005.vcproj +318 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/docs/UnitTest++.html +260 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/AssertException.cpp +34 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/AssertException.h +28 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/CheckMacros.h +122 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Checks.cpp +50 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Checks.h +158 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Config.h +31 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/CurrentTest.cpp +18 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/CurrentTest.h +17 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/DeferredTestReporter.cpp +29 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/DeferredTestReporter.h +28 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/DeferredTestResult.cpp +25 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/DeferredTestResult.h +29 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/ExecuteTest.h +46 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/MemoryOutStream.cpp +149 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/MemoryOutStream.h +67 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Posix/SignalTranslator.cpp +46 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Posix/SignalTranslator.h +42 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Posix/TimeHelpers.cpp +33 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Posix/TimeHelpers.h +28 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/ReportAssert.cpp +10 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/ReportAssert.h +10 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Test.cpp +41 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Test.h +34 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestDetails.cpp +22 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestDetails.h +24 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestList.cpp +39 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestList.h +32 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestMacros.h +113 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestReporter.cpp +10 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestReporter.h +20 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestReporterStdout.cpp +41 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestReporterStdout.h +19 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestResults.cpp +60 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestResults.h +36 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestRunner.cpp +76 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestRunner.h +61 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TestSuite.h +14 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TimeConstraint.cpp +29 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TimeConstraint.h +33 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/TimeHelpers.h +7 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/UnitTest++.h +18 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Win32/TimeHelpers.cpp +50 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/Win32/TimeHelpers.h +48 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/XmlTestReporter.cpp +127 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/XmlTestReporter.h +34 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/Main.cpp +8 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/RecordingReporter.h +98 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/ScopedCurrentTest.h +37 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestAssertHandler.cpp +44 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestCheckMacros.cpp +801 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestChecks.cpp +293 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestCurrentTest.cpp +38 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestDeferredTestReporter.cpp +117 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestMemoryOutStream.cpp +151 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTest.cpp +129 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestList.cpp +50 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestMacros.cpp +212 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestResults.cpp +111 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestRunner.cpp +307 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTestSuite.cpp +12 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTimeConstraint.cpp +69 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestTimeConstraintMacro.cpp +35 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestUnitTest++.cpp +156 -0
- data/vendor/simdjson/dependencies/sajson/third-party/UnitTest++/src/tests/TestXmlTestReporter.cpp +183 -0
- data/vendor/simdjson/dependencies/sajson/tools/genpow10.js +39 -0
- data/vendor/simdjson/dependencies/ujson4c/3rdparty/ultrajson.h +310 -0
- data/vendor/simdjson/dependencies/ujson4c/3rdparty/ultrajsondec.c +891 -0
- data/vendor/simdjson/dependencies/ujson4c/LICENSE.txt +31 -0
- data/vendor/simdjson/dependencies/ujson4c/README.rst +43 -0
- data/vendor/simdjson/dependencies/ujson4c/src/ujdecode.c +836 -0
- data/vendor/simdjson/dependencies/ujson4c/src/ujdecode.h +261 -0
- data/vendor/simdjson/dependencies/ujson4c/tests/benchmark.c +225 -0
- data/vendor/simdjson/dependencies/ujson4c/tests/tests.c +102 -0
- data/vendor/simdjson/doc/Multiline_JSON_Parse_Competition.png +0 -0
- data/vendor/simdjson/doc/basics.md +574 -0
- data/vendor/simdjson/doc/basics_doxygen.md +556 -0
- data/vendor/simdjson/doc/gbps.png +0 -0
- data/vendor/simdjson/doc/growing.png +0 -0
- data/vendor/simdjson/doc/implementation-selection.md +83 -0
- data/vendor/simdjson/doc/parse_many.md +160 -0
- data/vendor/simdjson/doc/performance.md +172 -0
- data/vendor/simdjson/{tape.md → doc/tape.md} +40 -38
- data/vendor/simdjson/examples/CMakeLists.txt +1 -0
- data/vendor/simdjson/examples/quickstart/CMakeLists.txt +60 -0
- data/vendor/simdjson/examples/quickstart/Makefile +32 -0
- data/vendor/simdjson/examples/quickstart/quickstart.cpp +7 -0
- data/vendor/simdjson/examples/quickstart/quickstart_noexceptions.cpp +16 -0
- data/vendor/simdjson/extra/dumpbits.h +19 -0
- data/vendor/simdjson/fuzz/CMakeLists.txt +63 -0
- data/vendor/simdjson/fuzz/Fuzzing.md +86 -0
- data/vendor/simdjson/fuzz/NullBuffer.h +21 -0
- data/vendor/simdjson/fuzz/build_corpus.sh +18 -0
- data/vendor/simdjson/fuzz/build_fuzzer_variants.sh +174 -0
- data/vendor/simdjson/fuzz/build_like_ossfuzz.sh +22 -0
- data/vendor/simdjson/fuzz/fuzz_dump.cpp +60 -0
- data/vendor/simdjson/fuzz/fuzz_dump_raw_tape.cpp +18 -0
- data/vendor/simdjson/fuzz/fuzz_minify.cpp +19 -0
- data/vendor/simdjson/fuzz/fuzz_parser.cpp +10 -0
- data/vendor/simdjson/fuzz/fuzz_print_json.cpp +18 -0
- data/vendor/simdjson/fuzz/main.cpp +26 -0
- data/vendor/simdjson/fuzz/measure_coverage.sh +34 -0
- data/vendor/simdjson/fuzz/ossfuzz.sh +44 -0
- data/vendor/simdjson/images/logotiny.png +0 -0
- data/vendor/simdjson/include/CMakeLists.txt +13 -0
- data/vendor/simdjson/include/simdjson.h +47 -0
- data/vendor/simdjson/include/simdjson/common_defs.h +177 -71
- data/vendor/simdjson/include/simdjson/compiler_check.h +35 -0
- data/vendor/simdjson/include/simdjson/dom/array.h +158 -0
- data/vendor/simdjson/include/simdjson/dom/document.h +78 -0
- data/vendor/simdjson/include/simdjson/dom/document_stream.h +261 -0
- data/vendor/simdjson/include/simdjson/dom/element.h +545 -0
- data/vendor/simdjson/include/simdjson/dom/jsonparser.h +117 -0
- data/vendor/simdjson/include/simdjson/dom/object.h +264 -0
- data/vendor/simdjson/include/simdjson/dom/parsedjson.h +17 -0
- data/vendor/simdjson/include/simdjson/dom/parsedjson_iterator.h +270 -0
- data/vendor/simdjson/include/simdjson/dom/parser.h +434 -0
- data/vendor/simdjson/include/simdjson/error.h +252 -0
- data/vendor/simdjson/include/simdjson/implementation.h +244 -0
- data/vendor/simdjson/include/simdjson/inline/array.h +153 -0
- data/vendor/simdjson/include/simdjson/inline/document.h +141 -0
- data/vendor/simdjson/include/simdjson/inline/document_stream.h +255 -0
- data/vendor/simdjson/include/simdjson/inline/element.h +535 -0
- data/vendor/simdjson/include/simdjson/inline/error.h +155 -0
- data/vendor/simdjson/include/simdjson/inline/object.h +255 -0
- data/vendor/simdjson/include/simdjson/inline/padded_string.h +150 -0
- data/vendor/simdjson/include/simdjson/inline/parsedjson_iterator.h +486 -0
- data/vendor/simdjson/include/simdjson/inline/parser.h +206 -0
- data/vendor/simdjson/include/simdjson/inline/tape_ref.h +105 -0
- data/vendor/simdjson/include/simdjson/internal/dom_parser_implementation.h +181 -0
- data/vendor/simdjson/include/simdjson/internal/jsonformatutils.h +65 -0
- data/vendor/simdjson/include/simdjson/internal/tape_ref.h +51 -0
- data/vendor/simdjson/include/simdjson/internal/tape_type.h +28 -0
- data/vendor/simdjson/include/simdjson/jsonioutil.h +10 -22
- data/vendor/simdjson/include/simdjson/minify.h +75 -0
- data/vendor/simdjson/include/simdjson/nonstd/string_view.hpp +1529 -0
- data/vendor/simdjson/include/simdjson/padded_string.h +144 -58
- data/vendor/simdjson/include/simdjson/portability.h +162 -93
- data/vendor/simdjson/include/simdjson/simdjson.h +9 -43
- data/vendor/simdjson/include/simdjson/simdjson_version.h +20 -7
- data/vendor/simdjson/jsonchecker/CMakeLists.txt +3 -0
- data/vendor/simdjson/jsonexamples/CMakeLists.txt +16 -0
- data/vendor/simdjson/jsonexamples/generated/CMakeLists.txt +18 -0
- data/vendor/simdjson/jsonexamples/generated/genfeaturejson.rb +117 -0
- data/vendor/simdjson/jsonexamples/generated/genfeaturejsonseed.rb +49 -0
- data/vendor/simdjson/jsonexamples/generated/miss-templates/128.txt +10000 -0
- data/vendor/simdjson/jsonexamples/generated/miss-templates/64.txt +10000 -0
- data/vendor/simdjson/jsonexamples/small/jsoniter_scala/README.md +25 -1
- data/vendor/simdjson/scripts/ruby/kostya_large.rb +32 -0
- data/vendor/simdjson/scripts/shootout.sh +32 -0
- data/vendor/simdjson/singleheader/CMakeLists.txt +151 -0
- data/vendor/simdjson/singleheader/README.md +2 -1
- data/vendor/simdjson/singleheader/amalgamate.sh +196 -0
- data/vendor/simdjson/singleheader/amalgamate_demo.cpp +46 -0
- data/vendor/simdjson/singleheader/simdjson.cpp +14045 -1541
- data/vendor/simdjson/singleheader/simdjson.h +7250 -39226
- data/vendor/simdjson/src/CMakeLists.txt +91 -50
- data/vendor/simdjson/src/arm64/bitmanipulation.h +73 -0
- data/vendor/simdjson/src/arm64/bitmask.h +43 -0
- data/vendor/simdjson/src/arm64/dom_parser_implementation.cpp +137 -0
- data/vendor/simdjson/src/arm64/dom_parser_implementation.h +15 -0
- data/vendor/simdjson/src/arm64/implementation.cpp +25 -0
- data/vendor/simdjson/src/arm64/implementation.h +27 -0
- data/vendor/simdjson/src/arm64/intrinsics.h +10 -0
- data/vendor/simdjson/src/arm64/numberparsing.h +39 -0
- data/vendor/simdjson/src/arm64/simd.h +522 -0
- data/vendor/simdjson/src/arm64/stringparsing.h +53 -0
- data/vendor/simdjson/src/error.cpp +34 -0
- data/vendor/simdjson/src/fallback/bitmanipulation.h +77 -0
- data/vendor/simdjson/src/fallback/dom_parser_implementation.cpp +335 -0
- data/vendor/simdjson/src/fallback/dom_parser_implementation.h +15 -0
- data/vendor/simdjson/src/fallback/implementation.cpp +25 -0
- data/vendor/simdjson/src/fallback/implementation.h +32 -0
- data/vendor/simdjson/src/fallback/numberparsing.h +35 -0
- data/vendor/simdjson/src/fallback/stringparsing.h +35 -0
- data/vendor/simdjson/src/generic/dom_parser_implementation.h +59 -0
- data/vendor/simdjson/src/generic/stage1/allocate.h +17 -0
- data/vendor/simdjson/src/generic/stage1/buf_block_reader.h +83 -0
- data/vendor/simdjson/src/generic/stage1/find_next_document_index.h +86 -0
- data/vendor/simdjson/src/generic/stage1/json_minifier.h +77 -0
- data/vendor/simdjson/src/generic/stage1/json_scanner.h +104 -0
- data/vendor/simdjson/src/generic/stage1/json_string_scanner.h +139 -0
- data/vendor/simdjson/src/generic/stage1/json_structural_indexer.h +198 -0
- data/vendor/simdjson/src/generic/stage1/utf8_fastvalidate_algorithm.h +178 -0
- data/vendor/simdjson/src/generic/stage1/utf8_lookup2_algorithm.h +218 -0
- data/vendor/simdjson/src/generic/stage1/utf8_lookup3_algorithm.h +230 -0
- data/vendor/simdjson/src/generic/stage1/utf8_lookup_algorithm.h +299 -0
- data/vendor/simdjson/src/generic/stage1/utf8_range_algorithm.h +180 -0
- data/vendor/simdjson/src/generic/stage1/utf8_validator.h +26 -0
- data/vendor/simdjson/src/generic/stage1/utf8_zwegner_algorithm.h +360 -0
- data/vendor/simdjson/src/generic/stage2/allocate.h +18 -0
- data/vendor/simdjson/src/generic/stage2/atomparsing.h +51 -0
- data/vendor/simdjson/src/generic/stage2/logger.h +64 -0
- data/vendor/simdjson/src/generic/stage2/numberparsing.h +572 -0
- data/vendor/simdjson/src/generic/stage2/streaming_structural_parser.h +168 -0
- data/vendor/simdjson/{include/simdjson → src/generic/stage2}/stringparsing.h +54 -36
- data/vendor/simdjson/src/generic/stage2/structural_iterator.h +70 -0
- data/vendor/simdjson/src/generic/stage2/structural_parser.h +474 -0
- data/vendor/simdjson/src/generic/stage2/tape_writer.h +95 -0
- data/vendor/simdjson/src/haswell/bitmanipulation.h +80 -0
- data/vendor/simdjson/src/haswell/bitmask.h +30 -0
- data/vendor/simdjson/src/haswell/dom_parser_implementation.cpp +127 -0
- data/vendor/simdjson/src/haswell/dom_parser_implementation.h +15 -0
- data/vendor/simdjson/src/haswell/implementation.cpp +25 -0
- data/vendor/simdjson/src/haswell/implementation.h +29 -0
- data/vendor/simdjson/src/haswell/intrinsics.h +54 -0
- data/vendor/simdjson/src/haswell/numberparsing.h +49 -0
- data/vendor/simdjson/src/haswell/simd.h +377 -0
- data/vendor/simdjson/src/haswell/stringparsing.h +50 -0
- data/vendor/simdjson/src/implementation.cpp +155 -0
- data/vendor/simdjson/{include/simdjson → src}/isadetection.h +26 -11
- data/vendor/simdjson/src/jsoncharutils.h +1336 -0
- data/vendor/simdjson/src/simdjson.cpp +30 -28
- data/vendor/simdjson/src/simdprune_tables.h +136 -0
- data/vendor/simdjson/src/westmere/bitmanipulation.h +89 -0
- data/vendor/simdjson/src/westmere/bitmask.h +29 -0
- data/vendor/simdjson/src/westmere/dom_parser_implementation.cpp +128 -0
- data/vendor/simdjson/src/westmere/dom_parser_implementation.h +15 -0
- data/vendor/simdjson/src/westmere/implementation.cpp +25 -0
- data/vendor/simdjson/src/westmere/implementation.h +28 -0
- data/vendor/simdjson/src/westmere/intrinsics.h +27 -0
- data/vendor/simdjson/src/westmere/numberparsing.h +50 -0
- data/vendor/simdjson/src/westmere/simd.h +362 -0
- data/vendor/simdjson/src/westmere/stringparsing.h +52 -0
- data/vendor/simdjson/tests/CMakeLists.txt +182 -11
- data/vendor/simdjson/tests/allparserscheckfile.cpp +24 -28
- data/vendor/simdjson/tests/basictests.cpp +1963 -54
- data/vendor/simdjson/tests/cast_tester.h +271 -0
- data/vendor/simdjson/tests/checkimplementation.cpp +23 -0
- data/vendor/simdjson/tests/compilation_failure_tests/CMakeLists.txt +25 -0
- data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_load.cpp +15 -0
- data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_parse_padstring.cpp +16 -0
- data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_parse_stdstring.cpp +16 -0
- data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_parse_uchar.cpp +17 -0
- data/vendor/simdjson/tests/compilation_failure_tests/dangling_parser_parse_uint8.cpp +17 -0
- data/vendor/simdjson/tests/compilation_failure_tests/example_compiletest.cpp +20 -0
- data/vendor/simdjson/tests/errortests.cpp +160 -0
- data/vendor/simdjson/tests/extracting_values_example.cpp +12 -0
- data/vendor/simdjson/tests/integer_tests.cpp +95 -0
- data/vendor/simdjson/{scripts → tests}/issue150.sh +1 -2
- data/vendor/simdjson/tests/jsoncheck.cpp +37 -29
- data/vendor/simdjson/tests/numberparsingcheck.cpp +35 -20
- data/vendor/simdjson/tests/parse_many_test.cpp +146 -0
- data/vendor/simdjson/tests/pointercheck.cpp +81 -33
- data/vendor/simdjson/tests/readme_examples.cpp +298 -0
- data/vendor/simdjson/tests/readme_examples_noexceptions.cpp +197 -0
- data/vendor/simdjson/tests/singleheadertest.cpp +8 -12
- data/vendor/simdjson/tests/staticchecks.cpp +29 -0
- data/vendor/simdjson/tests/stringparsingcheck.cpp +29 -30
- data/vendor/simdjson/tests/test_macros.h +55 -0
- data/vendor/simdjson/tests/testjson2json.sh +39 -0
- data/vendor/simdjson/tests/unicode_tests.cpp +246 -0
- data/vendor/simdjson/tools/CMakeLists.txt +9 -3
- data/vendor/simdjson/tools/json2json.cpp +56 -95
- data/vendor/simdjson/tools/jsonpointer.cpp +16 -64
- data/vendor/simdjson/tools/jsonstats.cpp +225 -85
- data/vendor/simdjson/tools/minify.cpp +70 -12
- data/vendor/simdjson/tools/release.py +92 -20
- data/vendor/simdjson/windows/CMakeLists.txt +6 -0
- data/vendor/simdjson/windows/dirent_portable.h +6 -1039
- data/vendor/simdjson/windows/getopt.h +658 -0
- data/vendor/simdjson/windows/toni_ronnko_dirent.h +1075 -0
- data/vendor/simdjson/windows/unistd.h +3 -0
- metadata +2544 -47
- data/vendor/simdjson/Makefile +0 -203
- data/vendor/simdjson/Notes.md +0 -85
- data/vendor/simdjson/amalgamation.sh +0 -158
- data/vendor/simdjson/include/simdjson/jsoncharutils.h +0 -301
- data/vendor/simdjson/include/simdjson/jsonformatutils.h +0 -202
- data/vendor/simdjson/include/simdjson/jsonminifier.h +0 -30
- data/vendor/simdjson/include/simdjson/jsonparser.h +0 -250
- data/vendor/simdjson/include/simdjson/numberparsing.h +0 -587
- data/vendor/simdjson/include/simdjson/parsedjson.h +0 -544
- data/vendor/simdjson/include/simdjson/simdprune_tables.h +0 -35074
- data/vendor/simdjson/include/simdjson/simdutf8check_arm64.h +0 -180
- data/vendor/simdjson/include/simdjson/simdutf8check_haswell.h +0 -198
- data/vendor/simdjson/include/simdjson/simdutf8check_westmere.h +0 -169
- data/vendor/simdjson/include/simdjson/stage1_find_marks.h +0 -121
- data/vendor/simdjson/include/simdjson/stage1_find_marks_arm64.h +0 -210
- data/vendor/simdjson/include/simdjson/stage1_find_marks_flatten.h +0 -93
- data/vendor/simdjson/include/simdjson/stage1_find_marks_flatten_haswell.h +0 -95
- data/vendor/simdjson/include/simdjson/stage1_find_marks_haswell.h +0 -210
- data/vendor/simdjson/include/simdjson/stage1_find_marks_macros.h +0 -239
- data/vendor/simdjson/include/simdjson/stage1_find_marks_westmere.h +0 -194
- data/vendor/simdjson/include/simdjson/stage2_build_tape.h +0 -85
- data/vendor/simdjson/include/simdjson/stringparsing_arm64.h +0 -56
- data/vendor/simdjson/include/simdjson/stringparsing_haswell.h +0 -43
- data/vendor/simdjson/include/simdjson/stringparsing_macros.h +0 -88
- data/vendor/simdjson/include/simdjson/stringparsing_westmere.h +0 -41
- data/vendor/simdjson/scripts/testjson2json.sh +0 -99
- data/vendor/simdjson/singleheader/amalgamation_demo.cpp +0 -20
- data/vendor/simdjson/src/jsonioutil.cpp +0 -35
- data/vendor/simdjson/src/jsonminifier.cpp +0 -285
- data/vendor/simdjson/src/jsonparser.cpp +0 -91
- data/vendor/simdjson/src/parsedjson.cpp +0 -323
- data/vendor/simdjson/src/parsedjsoniterator.cpp +0 -272
- data/vendor/simdjson/src/stage1_find_marks.cpp +0 -41
- data/vendor/simdjson/src/stage2_build_tape.cpp +0 -567
- data/vendor/simdjson/tools/cmake/FindCTargets.cmake +0 -15
- data/vendor/simdjson/tools/cmake/FindOptions.cmake +0 -52
@@ -0,0 +1,246 @@
|
|
1
|
+
// Copyright 2007, Google Inc.
|
2
|
+
// All rights reserved.
|
3
|
+
//
|
4
|
+
// Redistribution and use in source and binary forms, with or without
|
5
|
+
// modification, are permitted provided that the following conditions are
|
6
|
+
// met:
|
7
|
+
//
|
8
|
+
// * Redistributions of source code must retain the above copyright
|
9
|
+
// notice, this list of conditions and the following disclaimer.
|
10
|
+
// * Redistributions in binary form must reproduce the above
|
11
|
+
// copyright notice, this list of conditions and the following disclaimer
|
12
|
+
// in the documentation and/or other materials provided with the
|
13
|
+
// distribution.
|
14
|
+
// * Neither the name of Google Inc. nor the names of its
|
15
|
+
// contributors may be used to endorse or promote products derived from
|
16
|
+
// this software without specific prior written permission.
|
17
|
+
//
|
18
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
19
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
20
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
21
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
22
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
23
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
24
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
25
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
26
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
27
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
28
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
29
|
+
//
|
30
|
+
// Author: wan@google.com (Zhanyong Wan)
|
31
|
+
|
32
|
+
// Google Mock - a framework for writing C++ mock classes.
|
33
|
+
//
|
34
|
+
// This file implements some actions that depend on gmock-generated-actions.h.
|
35
|
+
|
36
|
+
#ifndef GMOCK_INCLUDE_GMOCK_GMOCK_MORE_ACTIONS_H_
|
37
|
+
#define GMOCK_INCLUDE_GMOCK_GMOCK_MORE_ACTIONS_H_
|
38
|
+
|
39
|
+
#include <algorithm>
|
40
|
+
|
41
|
+
#include "gmock/gmock-generated-actions.h"
|
42
|
+
|
43
|
+
namespace testing {
|
44
|
+
namespace internal {
|
45
|
+
|
46
|
+
// Implements the Invoke(f) action. The template argument
|
47
|
+
// FunctionImpl is the implementation type of f, which can be either a
|
48
|
+
// function pointer or a functor. Invoke(f) can be used as an
|
49
|
+
// Action<F> as long as f's type is compatible with F (i.e. f can be
|
50
|
+
// assigned to a tr1::function<F>).
|
51
|
+
template <typename FunctionImpl>
|
52
|
+
class InvokeAction {
|
53
|
+
public:
|
54
|
+
// The c'tor makes a copy of function_impl (either a function
|
55
|
+
// pointer or a functor).
|
56
|
+
explicit InvokeAction(FunctionImpl function_impl)
|
57
|
+
: function_impl_(function_impl) {}
|
58
|
+
|
59
|
+
template <typename Result, typename ArgumentTuple>
|
60
|
+
Result Perform(const ArgumentTuple& args) {
|
61
|
+
return InvokeHelper<Result, ArgumentTuple>::Invoke(function_impl_, args);
|
62
|
+
}
|
63
|
+
|
64
|
+
private:
|
65
|
+
FunctionImpl function_impl_;
|
66
|
+
|
67
|
+
GTEST_DISALLOW_ASSIGN_(InvokeAction);
|
68
|
+
};
|
69
|
+
|
70
|
+
// Implements the Invoke(object_ptr, &Class::Method) action.
|
71
|
+
template <class Class, typename MethodPtr>
|
72
|
+
class InvokeMethodAction {
|
73
|
+
public:
|
74
|
+
InvokeMethodAction(Class* obj_ptr, MethodPtr method_ptr)
|
75
|
+
: method_ptr_(method_ptr), obj_ptr_(obj_ptr) {}
|
76
|
+
|
77
|
+
template <typename Result, typename ArgumentTuple>
|
78
|
+
Result Perform(const ArgumentTuple& args) const {
|
79
|
+
return InvokeHelper<Result, ArgumentTuple>::InvokeMethod(
|
80
|
+
obj_ptr_, method_ptr_, args);
|
81
|
+
}
|
82
|
+
|
83
|
+
private:
|
84
|
+
// The order of these members matters. Reversing the order can trigger
|
85
|
+
// warning C4121 in MSVC (see
|
86
|
+
// http://computer-programming-forum.com/7-vc.net/6fbc30265f860ad1.htm ).
|
87
|
+
const MethodPtr method_ptr_;
|
88
|
+
Class* const obj_ptr_;
|
89
|
+
|
90
|
+
GTEST_DISALLOW_ASSIGN_(InvokeMethodAction);
|
91
|
+
};
|
92
|
+
|
93
|
+
// An internal replacement for std::copy which mimics its behavior. This is
|
94
|
+
// necessary because Visual Studio deprecates ::std::copy, issuing warning 4996.
|
95
|
+
// However Visual Studio 2010 and later do not honor #pragmas which disable that
|
96
|
+
// warning.
|
97
|
+
template<typename InputIterator, typename OutputIterator>
|
98
|
+
inline OutputIterator CopyElements(InputIterator first,
|
99
|
+
InputIterator last,
|
100
|
+
OutputIterator output) {
|
101
|
+
for (; first != last; ++first, ++output) {
|
102
|
+
*output = *first;
|
103
|
+
}
|
104
|
+
return output;
|
105
|
+
}
|
106
|
+
|
107
|
+
} // namespace internal
|
108
|
+
|
109
|
+
// Various overloads for Invoke().
|
110
|
+
|
111
|
+
// Creates an action that invokes 'function_impl' with the mock
|
112
|
+
// function's arguments.
|
113
|
+
template <typename FunctionImpl>
|
114
|
+
PolymorphicAction<internal::InvokeAction<FunctionImpl> > Invoke(
|
115
|
+
FunctionImpl function_impl) {
|
116
|
+
return MakePolymorphicAction(
|
117
|
+
internal::InvokeAction<FunctionImpl>(function_impl));
|
118
|
+
}
|
119
|
+
|
120
|
+
// Creates an action that invokes the given method on the given object
|
121
|
+
// with the mock function's arguments.
|
122
|
+
template <class Class, typename MethodPtr>
|
123
|
+
PolymorphicAction<internal::InvokeMethodAction<Class, MethodPtr> > Invoke(
|
124
|
+
Class* obj_ptr, MethodPtr method_ptr) {
|
125
|
+
return MakePolymorphicAction(
|
126
|
+
internal::InvokeMethodAction<Class, MethodPtr>(obj_ptr, method_ptr));
|
127
|
+
}
|
128
|
+
|
129
|
+
// WithoutArgs(inner_action) can be used in a mock function with a
|
130
|
+
// non-empty argument list to perform inner_action, which takes no
|
131
|
+
// argument. In other words, it adapts an action accepting no
|
132
|
+
// argument to one that accepts (and ignores) arguments.
|
133
|
+
template <typename InnerAction>
|
134
|
+
inline internal::WithArgsAction<InnerAction>
|
135
|
+
WithoutArgs(const InnerAction& action) {
|
136
|
+
return internal::WithArgsAction<InnerAction>(action);
|
137
|
+
}
|
138
|
+
|
139
|
+
// WithArg<k>(an_action) creates an action that passes the k-th
|
140
|
+
// (0-based) argument of the mock function to an_action and performs
|
141
|
+
// it. It adapts an action accepting one argument to one that accepts
|
142
|
+
// multiple arguments. For convenience, we also provide
|
143
|
+
// WithArgs<k>(an_action) (defined below) as a synonym.
|
144
|
+
template <int k, typename InnerAction>
|
145
|
+
inline internal::WithArgsAction<InnerAction, k>
|
146
|
+
WithArg(const InnerAction& action) {
|
147
|
+
return internal::WithArgsAction<InnerAction, k>(action);
|
148
|
+
}
|
149
|
+
|
150
|
+
// The ACTION*() macros trigger warning C4100 (unreferenced formal
|
151
|
+
// parameter) in MSVC with -W4. Unfortunately they cannot be fixed in
|
152
|
+
// the macro definition, as the warnings are generated when the macro
|
153
|
+
// is expanded and macro expansion cannot contain #pragma. Therefore
|
154
|
+
// we suppress them here.
|
155
|
+
#ifdef _MSC_VER
|
156
|
+
# pragma warning(push)
|
157
|
+
# pragma warning(disable:4100)
|
158
|
+
#endif
|
159
|
+
|
160
|
+
// Action ReturnArg<k>() returns the k-th argument of the mock function.
|
161
|
+
ACTION_TEMPLATE(ReturnArg,
|
162
|
+
HAS_1_TEMPLATE_PARAMS(int, k),
|
163
|
+
AND_0_VALUE_PARAMS()) {
|
164
|
+
return ::testing::get<k>(args);
|
165
|
+
}
|
166
|
+
|
167
|
+
// Action SaveArg<k>(pointer) saves the k-th (0-based) argument of the
|
168
|
+
// mock function to *pointer.
|
169
|
+
ACTION_TEMPLATE(SaveArg,
|
170
|
+
HAS_1_TEMPLATE_PARAMS(int, k),
|
171
|
+
AND_1_VALUE_PARAMS(pointer)) {
|
172
|
+
*pointer = ::testing::get<k>(args);
|
173
|
+
}
|
174
|
+
|
175
|
+
// Action SaveArgPointee<k>(pointer) saves the value pointed to
|
176
|
+
// by the k-th (0-based) argument of the mock function to *pointer.
|
177
|
+
ACTION_TEMPLATE(SaveArgPointee,
|
178
|
+
HAS_1_TEMPLATE_PARAMS(int, k),
|
179
|
+
AND_1_VALUE_PARAMS(pointer)) {
|
180
|
+
*pointer = *::testing::get<k>(args);
|
181
|
+
}
|
182
|
+
|
183
|
+
// Action SetArgReferee<k>(value) assigns 'value' to the variable
|
184
|
+
// referenced by the k-th (0-based) argument of the mock function.
|
185
|
+
ACTION_TEMPLATE(SetArgReferee,
|
186
|
+
HAS_1_TEMPLATE_PARAMS(int, k),
|
187
|
+
AND_1_VALUE_PARAMS(value)) {
|
188
|
+
typedef typename ::testing::tuple_element<k, args_type>::type argk_type;
|
189
|
+
// Ensures that argument #k is a reference. If you get a compiler
|
190
|
+
// error on the next line, you are using SetArgReferee<k>(value) in
|
191
|
+
// a mock function whose k-th (0-based) argument is not a reference.
|
192
|
+
GTEST_COMPILE_ASSERT_(internal::is_reference<argk_type>::value,
|
193
|
+
SetArgReferee_must_be_used_with_a_reference_argument);
|
194
|
+
::testing::get<k>(args) = value;
|
195
|
+
}
|
196
|
+
|
197
|
+
// Action SetArrayArgument<k>(first, last) copies the elements in
|
198
|
+
// source range [first, last) to the array pointed to by the k-th
|
199
|
+
// (0-based) argument, which can be either a pointer or an
|
200
|
+
// iterator. The action does not take ownership of the elements in the
|
201
|
+
// source range.
|
202
|
+
ACTION_TEMPLATE(SetArrayArgument,
|
203
|
+
HAS_1_TEMPLATE_PARAMS(int, k),
|
204
|
+
AND_2_VALUE_PARAMS(first, last)) {
|
205
|
+
// Visual Studio deprecates ::std::copy, so we use our own copy in that case.
|
206
|
+
#ifdef _MSC_VER
|
207
|
+
internal::CopyElements(first, last, ::testing::get<k>(args));
|
208
|
+
#else
|
209
|
+
::std::copy(first, last, ::testing::get<k>(args));
|
210
|
+
#endif
|
211
|
+
}
|
212
|
+
|
213
|
+
// Action DeleteArg<k>() deletes the k-th (0-based) argument of the mock
|
214
|
+
// function.
|
215
|
+
ACTION_TEMPLATE(DeleteArg,
|
216
|
+
HAS_1_TEMPLATE_PARAMS(int, k),
|
217
|
+
AND_0_VALUE_PARAMS()) {
|
218
|
+
delete ::testing::get<k>(args);
|
219
|
+
}
|
220
|
+
|
221
|
+
// This action returns the value pointed to by 'pointer'.
|
222
|
+
ACTION_P(ReturnPointee, pointer) { return *pointer; }
|
223
|
+
|
224
|
+
// Action Throw(exception) can be used in a mock function of any type
|
225
|
+
// to throw the given exception. Any copyable value can be thrown.
|
226
|
+
#if GTEST_HAS_EXCEPTIONS
|
227
|
+
|
228
|
+
// Suppresses the 'unreachable code' warning that VC generates in opt modes.
|
229
|
+
# ifdef _MSC_VER
|
230
|
+
# pragma warning(push) // Saves the current warning state.
|
231
|
+
# pragma warning(disable:4702) // Temporarily disables warning 4702.
|
232
|
+
# endif
|
233
|
+
ACTION_P(Throw, exception) { throw exception; }
|
234
|
+
# ifdef _MSC_VER
|
235
|
+
# pragma warning(pop) // Restores the warning state.
|
236
|
+
# endif
|
237
|
+
|
238
|
+
#endif // GTEST_HAS_EXCEPTIONS
|
239
|
+
|
240
|
+
#ifdef _MSC_VER
|
241
|
+
# pragma warning(pop)
|
242
|
+
#endif
|
243
|
+
|
244
|
+
} // namespace testing
|
245
|
+
|
246
|
+
#endif // GMOCK_INCLUDE_GMOCK_GMOCK_MORE_ACTIONS_H_
|
@@ -0,0 +1,58 @@
|
|
1
|
+
// Copyright 2013, Google Inc.
|
2
|
+
// All rights reserved.
|
3
|
+
//
|
4
|
+
// Redistribution and use in source and binary forms, with or without
|
5
|
+
// modification, are permitted provided that the following conditions are
|
6
|
+
// met:
|
7
|
+
//
|
8
|
+
// * Redistributions of source code must retain the above copyright
|
9
|
+
// notice, this list of conditions and the following disclaimer.
|
10
|
+
// * Redistributions in binary form must reproduce the above
|
11
|
+
// copyright notice, this list of conditions and the following disclaimer
|
12
|
+
// in the documentation and/or other materials provided with the
|
13
|
+
// distribution.
|
14
|
+
// * Neither the name of Google Inc. nor the names of its
|
15
|
+
// contributors may be used to endorse or promote products derived from
|
16
|
+
// this software without specific prior written permission.
|
17
|
+
//
|
18
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
19
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
20
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
21
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
22
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
23
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
24
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
25
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
26
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
27
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
28
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
29
|
+
//
|
30
|
+
// Author: marcus.boerger@google.com (Marcus Boerger)
|
31
|
+
|
32
|
+
// Google Mock - a framework for writing C++ mock classes.
|
33
|
+
//
|
34
|
+
// This file implements some matchers that depend on gmock-generated-matchers.h.
|
35
|
+
//
|
36
|
+
// Note that tests are implemented in gmock-matchers_test.cc rather than
|
37
|
+
// gmock-more-matchers-test.cc.
|
38
|
+
|
39
|
+
#ifndef GMOCK_GMOCK_MORE_MATCHERS_H_
|
40
|
+
#define GMOCK_GMOCK_MORE_MATCHERS_H_
|
41
|
+
|
42
|
+
#include "gmock/gmock-generated-matchers.h"
|
43
|
+
|
44
|
+
namespace testing {
|
45
|
+
|
46
|
+
// Defines a matcher that matches an empty container. The container must
|
47
|
+
// support both size() and empty(), which all STL-like containers provide.
|
48
|
+
MATCHER(IsEmpty, negation ? "isn't empty" : "is empty") {
|
49
|
+
if (arg.empty()) {
|
50
|
+
return true;
|
51
|
+
}
|
52
|
+
*result_listener << "whose size is " << arg.size();
|
53
|
+
return false;
|
54
|
+
}
|
55
|
+
|
56
|
+
} // namespace testing
|
57
|
+
|
58
|
+
#endif // GMOCK_GMOCK_MORE_MATCHERS_H_
|
@@ -0,0 +1,1847 @@
|
|
1
|
+
// Copyright 2007, Google Inc.
|
2
|
+
// All rights reserved.
|
3
|
+
//
|
4
|
+
// Redistribution and use in source and binary forms, with or without
|
5
|
+
// modification, are permitted provided that the following conditions are
|
6
|
+
// met:
|
7
|
+
//
|
8
|
+
// * Redistributions of source code must retain the above copyright
|
9
|
+
// notice, this list of conditions and the following disclaimer.
|
10
|
+
// * Redistributions in binary form must reproduce the above
|
11
|
+
// copyright notice, this list of conditions and the following disclaimer
|
12
|
+
// in the documentation and/or other materials provided with the
|
13
|
+
// distribution.
|
14
|
+
// * Neither the name of Google Inc. nor the names of its
|
15
|
+
// contributors may be used to endorse or promote products derived from
|
16
|
+
// this software without specific prior written permission.
|
17
|
+
//
|
18
|
+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
19
|
+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
20
|
+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
21
|
+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
22
|
+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
23
|
+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
24
|
+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
25
|
+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
26
|
+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
27
|
+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
28
|
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
29
|
+
//
|
30
|
+
// Author: wan@google.com (Zhanyong Wan)
|
31
|
+
|
32
|
+
// Google Mock - a framework for writing C++ mock classes.
|
33
|
+
//
|
34
|
+
// This file implements the ON_CALL() and EXPECT_CALL() macros.
|
35
|
+
//
|
36
|
+
// A user can use the ON_CALL() macro to specify the default action of
|
37
|
+
// a mock method. The syntax is:
|
38
|
+
//
|
39
|
+
// ON_CALL(mock_object, Method(argument-matchers))
|
40
|
+
// .With(multi-argument-matcher)
|
41
|
+
// .WillByDefault(action);
|
42
|
+
//
|
43
|
+
// where the .With() clause is optional.
|
44
|
+
//
|
45
|
+
// A user can use the EXPECT_CALL() macro to specify an expectation on
|
46
|
+
// a mock method. The syntax is:
|
47
|
+
//
|
48
|
+
// EXPECT_CALL(mock_object, Method(argument-matchers))
|
49
|
+
// .With(multi-argument-matchers)
|
50
|
+
// .Times(cardinality)
|
51
|
+
// .InSequence(sequences)
|
52
|
+
// .After(expectations)
|
53
|
+
// .WillOnce(action)
|
54
|
+
// .WillRepeatedly(action)
|
55
|
+
// .RetiresOnSaturation();
|
56
|
+
//
|
57
|
+
// where all clauses are optional, and .InSequence()/.After()/
|
58
|
+
// .WillOnce() can appear any number of times.
|
59
|
+
|
60
|
+
#ifndef GMOCK_INCLUDE_GMOCK_GMOCK_SPEC_BUILDERS_H_
|
61
|
+
#define GMOCK_INCLUDE_GMOCK_GMOCK_SPEC_BUILDERS_H_
|
62
|
+
|
63
|
+
#include <map>
|
64
|
+
#include <set>
|
65
|
+
#include <sstream>
|
66
|
+
#include <string>
|
67
|
+
#include <vector>
|
68
|
+
|
69
|
+
#if GTEST_HAS_EXCEPTIONS
|
70
|
+
# include <stdexcept> // NOLINT
|
71
|
+
#endif
|
72
|
+
|
73
|
+
#include "gmock/gmock-actions.h"
|
74
|
+
#include "gmock/gmock-cardinalities.h"
|
75
|
+
#include "gmock/gmock-matchers.h"
|
76
|
+
#include "gmock/internal/gmock-internal-utils.h"
|
77
|
+
#include "gmock/internal/gmock-port.h"
|
78
|
+
#include "gtest/gtest.h"
|
79
|
+
|
80
|
+
namespace testing {
|
81
|
+
|
82
|
+
// An abstract handle of an expectation.
|
83
|
+
class Expectation;
|
84
|
+
|
85
|
+
// A set of expectation handles.
|
86
|
+
class ExpectationSet;
|
87
|
+
|
88
|
+
// Anything inside the 'internal' namespace IS INTERNAL IMPLEMENTATION
|
89
|
+
// and MUST NOT BE USED IN USER CODE!!!
|
90
|
+
namespace internal {
|
91
|
+
|
92
|
+
// Implements a mock function.
|
93
|
+
template <typename F> class FunctionMocker;
|
94
|
+
|
95
|
+
// Base class for expectations.
|
96
|
+
class ExpectationBase;
|
97
|
+
|
98
|
+
// Implements an expectation.
|
99
|
+
template <typename F> class TypedExpectation;
|
100
|
+
|
101
|
+
// Helper class for testing the Expectation class template.
|
102
|
+
class ExpectationTester;
|
103
|
+
|
104
|
+
// Base class for function mockers.
|
105
|
+
template <typename F> class FunctionMockerBase;
|
106
|
+
|
107
|
+
// Protects the mock object registry (in class Mock), all function
|
108
|
+
// mockers, and all expectations.
|
109
|
+
//
|
110
|
+
// The reason we don't use more fine-grained protection is: when a
|
111
|
+
// mock function Foo() is called, it needs to consult its expectations
|
112
|
+
// to see which one should be picked. If another thread is allowed to
|
113
|
+
// call a mock function (either Foo() or a different one) at the same
|
114
|
+
// time, it could affect the "retired" attributes of Foo()'s
|
115
|
+
// expectations when InSequence() is used, and thus affect which
|
116
|
+
// expectation gets picked. Therefore, we sequence all mock function
|
117
|
+
// calls to ensure the integrity of the mock objects' states.
|
118
|
+
GTEST_API_ GTEST_DECLARE_STATIC_MUTEX_(g_gmock_mutex);
|
119
|
+
|
120
|
+
// Untyped base class for ActionResultHolder<R>.
|
121
|
+
class UntypedActionResultHolderBase;
|
122
|
+
|
123
|
+
// Abstract base class of FunctionMockerBase. This is the
|
124
|
+
// type-agnostic part of the function mocker interface. Its pure
|
125
|
+
// virtual methods are implemented by FunctionMockerBase.
|
126
|
+
class GTEST_API_ UntypedFunctionMockerBase {
|
127
|
+
public:
|
128
|
+
UntypedFunctionMockerBase();
|
129
|
+
virtual ~UntypedFunctionMockerBase();
|
130
|
+
|
131
|
+
// Verifies that all expectations on this mock function have been
|
132
|
+
// satisfied. Reports one or more Google Test non-fatal failures
|
133
|
+
// and returns false if not.
|
134
|
+
bool VerifyAndClearExpectationsLocked()
|
135
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex);
|
136
|
+
|
137
|
+
// Clears the ON_CALL()s set on this mock function.
|
138
|
+
virtual void ClearDefaultActionsLocked()
|
139
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) = 0;
|
140
|
+
|
141
|
+
// In all of the following Untyped* functions, it's the caller's
|
142
|
+
// responsibility to guarantee the correctness of the arguments'
|
143
|
+
// types.
|
144
|
+
|
145
|
+
// Performs the default action with the given arguments and returns
|
146
|
+
// the action's result. The call description string will be used in
|
147
|
+
// the error message to describe the call in the case the default
|
148
|
+
// action fails.
|
149
|
+
// L = *
|
150
|
+
virtual UntypedActionResultHolderBase* UntypedPerformDefaultAction(
|
151
|
+
const void* untyped_args,
|
152
|
+
const string& call_description) const = 0;
|
153
|
+
|
154
|
+
// Performs the given action with the given arguments and returns
|
155
|
+
// the action's result.
|
156
|
+
// L = *
|
157
|
+
virtual UntypedActionResultHolderBase* UntypedPerformAction(
|
158
|
+
const void* untyped_action,
|
159
|
+
const void* untyped_args) const = 0;
|
160
|
+
|
161
|
+
// Writes a message that the call is uninteresting (i.e. neither
|
162
|
+
// explicitly expected nor explicitly unexpected) to the given
|
163
|
+
// ostream.
|
164
|
+
virtual void UntypedDescribeUninterestingCall(
|
165
|
+
const void* untyped_args,
|
166
|
+
::std::ostream* os) const
|
167
|
+
GTEST_LOCK_EXCLUDED_(g_gmock_mutex) = 0;
|
168
|
+
|
169
|
+
// Returns the expectation that matches the given function arguments
|
170
|
+
// (or NULL is there's no match); when a match is found,
|
171
|
+
// untyped_action is set to point to the action that should be
|
172
|
+
// performed (or NULL if the action is "do default"), and
|
173
|
+
// is_excessive is modified to indicate whether the call exceeds the
|
174
|
+
// expected number.
|
175
|
+
virtual const ExpectationBase* UntypedFindMatchingExpectation(
|
176
|
+
const void* untyped_args,
|
177
|
+
const void** untyped_action, bool* is_excessive,
|
178
|
+
::std::ostream* what, ::std::ostream* why)
|
179
|
+
GTEST_LOCK_EXCLUDED_(g_gmock_mutex) = 0;
|
180
|
+
|
181
|
+
// Prints the given function arguments to the ostream.
|
182
|
+
virtual void UntypedPrintArgs(const void* untyped_args,
|
183
|
+
::std::ostream* os) const = 0;
|
184
|
+
|
185
|
+
// Sets the mock object this mock method belongs to, and registers
|
186
|
+
// this information in the global mock registry. Will be called
|
187
|
+
// whenever an EXPECT_CALL() or ON_CALL() is executed on this mock
|
188
|
+
// method.
|
189
|
+
// TODO(wan@google.com): rename to SetAndRegisterOwner().
|
190
|
+
void RegisterOwner(const void* mock_obj)
|
191
|
+
GTEST_LOCK_EXCLUDED_(g_gmock_mutex);
|
192
|
+
|
193
|
+
// Sets the mock object this mock method belongs to, and sets the
|
194
|
+
// name of the mock function. Will be called upon each invocation
|
195
|
+
// of this mock function.
|
196
|
+
void SetOwnerAndName(const void* mock_obj, const char* name)
|
197
|
+
GTEST_LOCK_EXCLUDED_(g_gmock_mutex);
|
198
|
+
|
199
|
+
// Returns the mock object this mock method belongs to. Must be
|
200
|
+
// called after RegisterOwner() or SetOwnerAndName() has been
|
201
|
+
// called.
|
202
|
+
const void* MockObject() const
|
203
|
+
GTEST_LOCK_EXCLUDED_(g_gmock_mutex);
|
204
|
+
|
205
|
+
// Returns the name of this mock method. Must be called after
|
206
|
+
// SetOwnerAndName() has been called.
|
207
|
+
const char* Name() const
|
208
|
+
GTEST_LOCK_EXCLUDED_(g_gmock_mutex);
|
209
|
+
|
210
|
+
// Returns the result of invoking this mock function with the given
|
211
|
+
// arguments. This function can be safely called from multiple
|
212
|
+
// threads concurrently. The caller is responsible for deleting the
|
213
|
+
// result.
|
214
|
+
UntypedActionResultHolderBase* UntypedInvokeWith(
|
215
|
+
const void* untyped_args)
|
216
|
+
GTEST_LOCK_EXCLUDED_(g_gmock_mutex);
|
217
|
+
|
218
|
+
protected:
|
219
|
+
typedef std::vector<const void*> UntypedOnCallSpecs;
|
220
|
+
|
221
|
+
typedef std::vector<internal::linked_ptr<ExpectationBase> >
|
222
|
+
UntypedExpectations;
|
223
|
+
|
224
|
+
// Returns an Expectation object that references and co-owns exp,
|
225
|
+
// which must be an expectation on this mock function.
|
226
|
+
Expectation GetHandleOf(ExpectationBase* exp);
|
227
|
+
|
228
|
+
// Address of the mock object this mock method belongs to. Only
|
229
|
+
// valid after this mock method has been called or
|
230
|
+
// ON_CALL/EXPECT_CALL has been invoked on it.
|
231
|
+
const void* mock_obj_; // Protected by g_gmock_mutex.
|
232
|
+
|
233
|
+
// Name of the function being mocked. Only valid after this mock
|
234
|
+
// method has been called.
|
235
|
+
const char* name_; // Protected by g_gmock_mutex.
|
236
|
+
|
237
|
+
// All default action specs for this function mocker.
|
238
|
+
UntypedOnCallSpecs untyped_on_call_specs_;
|
239
|
+
|
240
|
+
// All expectations for this function mocker.
|
241
|
+
UntypedExpectations untyped_expectations_;
|
242
|
+
}; // class UntypedFunctionMockerBase
|
243
|
+
|
244
|
+
// Untyped base class for OnCallSpec<F>.
|
245
|
+
class UntypedOnCallSpecBase {
|
246
|
+
public:
|
247
|
+
// The arguments are the location of the ON_CALL() statement.
|
248
|
+
UntypedOnCallSpecBase(const char* a_file, int a_line)
|
249
|
+
: file_(a_file), line_(a_line), last_clause_(kNone) {}
|
250
|
+
|
251
|
+
// Where in the source file was the default action spec defined?
|
252
|
+
const char* file() const { return file_; }
|
253
|
+
int line() const { return line_; }
|
254
|
+
|
255
|
+
protected:
|
256
|
+
// Gives each clause in the ON_CALL() statement a name.
|
257
|
+
enum Clause {
|
258
|
+
// Do not change the order of the enum members! The run-time
|
259
|
+
// syntax checking relies on it.
|
260
|
+
kNone,
|
261
|
+
kWith,
|
262
|
+
kWillByDefault
|
263
|
+
};
|
264
|
+
|
265
|
+
// Asserts that the ON_CALL() statement has a certain property.
|
266
|
+
void AssertSpecProperty(bool property, const string& failure_message) const {
|
267
|
+
Assert(property, file_, line_, failure_message);
|
268
|
+
}
|
269
|
+
|
270
|
+
// Expects that the ON_CALL() statement has a certain property.
|
271
|
+
void ExpectSpecProperty(bool property, const string& failure_message) const {
|
272
|
+
Expect(property, file_, line_, failure_message);
|
273
|
+
}
|
274
|
+
|
275
|
+
const char* file_;
|
276
|
+
int line_;
|
277
|
+
|
278
|
+
// The last clause in the ON_CALL() statement as seen so far.
|
279
|
+
// Initially kNone and changes as the statement is parsed.
|
280
|
+
Clause last_clause_;
|
281
|
+
}; // class UntypedOnCallSpecBase
|
282
|
+
|
283
|
+
// This template class implements an ON_CALL spec.
|
284
|
+
template <typename F>
|
285
|
+
class OnCallSpec : public UntypedOnCallSpecBase {
|
286
|
+
public:
|
287
|
+
typedef typename Function<F>::ArgumentTuple ArgumentTuple;
|
288
|
+
typedef typename Function<F>::ArgumentMatcherTuple ArgumentMatcherTuple;
|
289
|
+
|
290
|
+
// Constructs an OnCallSpec object from the information inside
|
291
|
+
// the parenthesis of an ON_CALL() statement.
|
292
|
+
OnCallSpec(const char* a_file, int a_line,
|
293
|
+
const ArgumentMatcherTuple& matchers)
|
294
|
+
: UntypedOnCallSpecBase(a_file, a_line),
|
295
|
+
matchers_(matchers),
|
296
|
+
// By default, extra_matcher_ should match anything. However,
|
297
|
+
// we cannot initialize it with _ as that triggers a compiler
|
298
|
+
// bug in Symbian's C++ compiler (cannot decide between two
|
299
|
+
// overloaded constructors of Matcher<const ArgumentTuple&>).
|
300
|
+
extra_matcher_(A<const ArgumentTuple&>()) {
|
301
|
+
}
|
302
|
+
|
303
|
+
// Implements the .With() clause.
|
304
|
+
OnCallSpec& With(const Matcher<const ArgumentTuple&>& m) {
|
305
|
+
// Makes sure this is called at most once.
|
306
|
+
ExpectSpecProperty(last_clause_ < kWith,
|
307
|
+
".With() cannot appear "
|
308
|
+
"more than once in an ON_CALL().");
|
309
|
+
last_clause_ = kWith;
|
310
|
+
|
311
|
+
extra_matcher_ = m;
|
312
|
+
return *this;
|
313
|
+
}
|
314
|
+
|
315
|
+
// Implements the .WillByDefault() clause.
|
316
|
+
OnCallSpec& WillByDefault(const Action<F>& action) {
|
317
|
+
ExpectSpecProperty(last_clause_ < kWillByDefault,
|
318
|
+
".WillByDefault() must appear "
|
319
|
+
"exactly once in an ON_CALL().");
|
320
|
+
last_clause_ = kWillByDefault;
|
321
|
+
|
322
|
+
ExpectSpecProperty(!action.IsDoDefault(),
|
323
|
+
"DoDefault() cannot be used in ON_CALL().");
|
324
|
+
action_ = action;
|
325
|
+
return *this;
|
326
|
+
}
|
327
|
+
|
328
|
+
// Returns true iff the given arguments match the matchers.
|
329
|
+
bool Matches(const ArgumentTuple& args) const {
|
330
|
+
return TupleMatches(matchers_, args) && extra_matcher_.Matches(args);
|
331
|
+
}
|
332
|
+
|
333
|
+
// Returns the action specified by the user.
|
334
|
+
const Action<F>& GetAction() const {
|
335
|
+
AssertSpecProperty(last_clause_ == kWillByDefault,
|
336
|
+
".WillByDefault() must appear exactly "
|
337
|
+
"once in an ON_CALL().");
|
338
|
+
return action_;
|
339
|
+
}
|
340
|
+
|
341
|
+
private:
|
342
|
+
// The information in statement
|
343
|
+
//
|
344
|
+
// ON_CALL(mock_object, Method(matchers))
|
345
|
+
// .With(multi-argument-matcher)
|
346
|
+
// .WillByDefault(action);
|
347
|
+
//
|
348
|
+
// is recorded in the data members like this:
|
349
|
+
//
|
350
|
+
// source file that contains the statement => file_
|
351
|
+
// line number of the statement => line_
|
352
|
+
// matchers => matchers_
|
353
|
+
// multi-argument-matcher => extra_matcher_
|
354
|
+
// action => action_
|
355
|
+
ArgumentMatcherTuple matchers_;
|
356
|
+
Matcher<const ArgumentTuple&> extra_matcher_;
|
357
|
+
Action<F> action_;
|
358
|
+
}; // class OnCallSpec
|
359
|
+
|
360
|
+
// Possible reactions on uninteresting calls.
|
361
|
+
enum CallReaction {
|
362
|
+
kAllow,
|
363
|
+
kWarn,
|
364
|
+
kFail,
|
365
|
+
kDefault = kWarn // By default, warn about uninteresting calls.
|
366
|
+
};
|
367
|
+
|
368
|
+
} // namespace internal
|
369
|
+
|
370
|
+
// Utilities for manipulating mock objects.
|
371
|
+
class GTEST_API_ Mock {
|
372
|
+
public:
|
373
|
+
// The following public methods can be called concurrently.
|
374
|
+
|
375
|
+
// Tells Google Mock to ignore mock_obj when checking for leaked
|
376
|
+
// mock objects.
|
377
|
+
static void AllowLeak(const void* mock_obj)
|
378
|
+
GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex);
|
379
|
+
|
380
|
+
// Verifies and clears all expectations on the given mock object.
|
381
|
+
// If the expectations aren't satisfied, generates one or more
|
382
|
+
// Google Test non-fatal failures and returns false.
|
383
|
+
static bool VerifyAndClearExpectations(void* mock_obj)
|
384
|
+
GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex);
|
385
|
+
|
386
|
+
// Verifies all expectations on the given mock object and clears its
|
387
|
+
// default actions and expectations. Returns true iff the
|
388
|
+
// verification was successful.
|
389
|
+
static bool VerifyAndClear(void* mock_obj)
|
390
|
+
GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex);
|
391
|
+
|
392
|
+
private:
|
393
|
+
friend class internal::UntypedFunctionMockerBase;
|
394
|
+
|
395
|
+
// Needed for a function mocker to register itself (so that we know
|
396
|
+
// how to clear a mock object).
|
397
|
+
template <typename F>
|
398
|
+
friend class internal::FunctionMockerBase;
|
399
|
+
|
400
|
+
template <typename M>
|
401
|
+
friend class NiceMock;
|
402
|
+
|
403
|
+
template <typename M>
|
404
|
+
friend class NaggyMock;
|
405
|
+
|
406
|
+
template <typename M>
|
407
|
+
friend class StrictMock;
|
408
|
+
|
409
|
+
// Tells Google Mock to allow uninteresting calls on the given mock
|
410
|
+
// object.
|
411
|
+
static void AllowUninterestingCalls(const void* mock_obj)
|
412
|
+
GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex);
|
413
|
+
|
414
|
+
// Tells Google Mock to warn the user about uninteresting calls on
|
415
|
+
// the given mock object.
|
416
|
+
static void WarnUninterestingCalls(const void* mock_obj)
|
417
|
+
GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex);
|
418
|
+
|
419
|
+
// Tells Google Mock to fail uninteresting calls on the given mock
|
420
|
+
// object.
|
421
|
+
static void FailUninterestingCalls(const void* mock_obj)
|
422
|
+
GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex);
|
423
|
+
|
424
|
+
// Tells Google Mock the given mock object is being destroyed and
|
425
|
+
// its entry in the call-reaction table should be removed.
|
426
|
+
static void UnregisterCallReaction(const void* mock_obj)
|
427
|
+
GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex);
|
428
|
+
|
429
|
+
// Returns the reaction Google Mock will have on uninteresting calls
|
430
|
+
// made on the given mock object.
|
431
|
+
static internal::CallReaction GetReactionOnUninterestingCalls(
|
432
|
+
const void* mock_obj)
|
433
|
+
GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex);
|
434
|
+
|
435
|
+
// Verifies that all expectations on the given mock object have been
|
436
|
+
// satisfied. Reports one or more Google Test non-fatal failures
|
437
|
+
// and returns false if not.
|
438
|
+
static bool VerifyAndClearExpectationsLocked(void* mock_obj)
|
439
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(internal::g_gmock_mutex);
|
440
|
+
|
441
|
+
// Clears all ON_CALL()s set on the given mock object.
|
442
|
+
static void ClearDefaultActionsLocked(void* mock_obj)
|
443
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(internal::g_gmock_mutex);
|
444
|
+
|
445
|
+
// Registers a mock object and a mock method it owns.
|
446
|
+
static void Register(
|
447
|
+
const void* mock_obj,
|
448
|
+
internal::UntypedFunctionMockerBase* mocker)
|
449
|
+
GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex);
|
450
|
+
|
451
|
+
// Tells Google Mock where in the source code mock_obj is used in an
|
452
|
+
// ON_CALL or EXPECT_CALL. In case mock_obj is leaked, this
|
453
|
+
// information helps the user identify which object it is.
|
454
|
+
static void RegisterUseByOnCallOrExpectCall(
|
455
|
+
const void* mock_obj, const char* file, int line)
|
456
|
+
GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex);
|
457
|
+
|
458
|
+
// Unregisters a mock method; removes the owning mock object from
|
459
|
+
// the registry when the last mock method associated with it has
|
460
|
+
// been unregistered. This is called only in the destructor of
|
461
|
+
// FunctionMockerBase.
|
462
|
+
static void UnregisterLocked(internal::UntypedFunctionMockerBase* mocker)
|
463
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(internal::g_gmock_mutex);
|
464
|
+
}; // class Mock
|
465
|
+
|
466
|
+
// An abstract handle of an expectation. Useful in the .After()
|
467
|
+
// clause of EXPECT_CALL() for setting the (partial) order of
|
468
|
+
// expectations. The syntax:
|
469
|
+
//
|
470
|
+
// Expectation e1 = EXPECT_CALL(...)...;
|
471
|
+
// EXPECT_CALL(...).After(e1)...;
|
472
|
+
//
|
473
|
+
// sets two expectations where the latter can only be matched after
|
474
|
+
// the former has been satisfied.
|
475
|
+
//
|
476
|
+
// Notes:
|
477
|
+
// - This class is copyable and has value semantics.
|
478
|
+
// - Constness is shallow: a const Expectation object itself cannot
|
479
|
+
// be modified, but the mutable methods of the ExpectationBase
|
480
|
+
// object it references can be called via expectation_base().
|
481
|
+
// - The constructors and destructor are defined out-of-line because
|
482
|
+
// the Symbian WINSCW compiler wants to otherwise instantiate them
|
483
|
+
// when it sees this class definition, at which point it doesn't have
|
484
|
+
// ExpectationBase available yet, leading to incorrect destruction
|
485
|
+
// in the linked_ptr (or compilation errors if using a checking
|
486
|
+
// linked_ptr).
|
487
|
+
class GTEST_API_ Expectation {
|
488
|
+
public:
|
489
|
+
// Constructs a null object that doesn't reference any expectation.
|
490
|
+
Expectation();
|
491
|
+
|
492
|
+
~Expectation();
|
493
|
+
|
494
|
+
// This single-argument ctor must not be explicit, in order to support the
|
495
|
+
// Expectation e = EXPECT_CALL(...);
|
496
|
+
// syntax.
|
497
|
+
//
|
498
|
+
// A TypedExpectation object stores its pre-requisites as
|
499
|
+
// Expectation objects, and needs to call the non-const Retire()
|
500
|
+
// method on the ExpectationBase objects they reference. Therefore
|
501
|
+
// Expectation must receive a *non-const* reference to the
|
502
|
+
// ExpectationBase object.
|
503
|
+
Expectation(internal::ExpectationBase& exp); // NOLINT
|
504
|
+
|
505
|
+
// The compiler-generated copy ctor and operator= work exactly as
|
506
|
+
// intended, so we don't need to define our own.
|
507
|
+
|
508
|
+
// Returns true iff rhs references the same expectation as this object does.
|
509
|
+
bool operator==(const Expectation& rhs) const {
|
510
|
+
return expectation_base_ == rhs.expectation_base_;
|
511
|
+
}
|
512
|
+
|
513
|
+
bool operator!=(const Expectation& rhs) const { return !(*this == rhs); }
|
514
|
+
|
515
|
+
private:
|
516
|
+
friend class ExpectationSet;
|
517
|
+
friend class Sequence;
|
518
|
+
friend class ::testing::internal::ExpectationBase;
|
519
|
+
friend class ::testing::internal::UntypedFunctionMockerBase;
|
520
|
+
|
521
|
+
template <typename F>
|
522
|
+
friend class ::testing::internal::FunctionMockerBase;
|
523
|
+
|
524
|
+
template <typename F>
|
525
|
+
friend class ::testing::internal::TypedExpectation;
|
526
|
+
|
527
|
+
// This comparator is needed for putting Expectation objects into a set.
|
528
|
+
class Less {
|
529
|
+
public:
|
530
|
+
bool operator()(const Expectation& lhs, const Expectation& rhs) const {
|
531
|
+
return lhs.expectation_base_.get() < rhs.expectation_base_.get();
|
532
|
+
}
|
533
|
+
};
|
534
|
+
|
535
|
+
typedef ::std::set<Expectation, Less> Set;
|
536
|
+
|
537
|
+
Expectation(
|
538
|
+
const internal::linked_ptr<internal::ExpectationBase>& expectation_base);
|
539
|
+
|
540
|
+
// Returns the expectation this object references.
|
541
|
+
const internal::linked_ptr<internal::ExpectationBase>&
|
542
|
+
expectation_base() const {
|
543
|
+
return expectation_base_;
|
544
|
+
}
|
545
|
+
|
546
|
+
// A linked_ptr that co-owns the expectation this handle references.
|
547
|
+
internal::linked_ptr<internal::ExpectationBase> expectation_base_;
|
548
|
+
};
|
549
|
+
|
550
|
+
// A set of expectation handles. Useful in the .After() clause of
|
551
|
+
// EXPECT_CALL() for setting the (partial) order of expectations. The
|
552
|
+
// syntax:
|
553
|
+
//
|
554
|
+
// ExpectationSet es;
|
555
|
+
// es += EXPECT_CALL(...)...;
|
556
|
+
// es += EXPECT_CALL(...)...;
|
557
|
+
// EXPECT_CALL(...).After(es)...;
|
558
|
+
//
|
559
|
+
// sets three expectations where the last one can only be matched
|
560
|
+
// after the first two have both been satisfied.
|
561
|
+
//
|
562
|
+
// This class is copyable and has value semantics.
|
563
|
+
class ExpectationSet {
|
564
|
+
public:
|
565
|
+
// A bidirectional iterator that can read a const element in the set.
|
566
|
+
typedef Expectation::Set::const_iterator const_iterator;
|
567
|
+
|
568
|
+
// An object stored in the set. This is an alias of Expectation.
|
569
|
+
typedef Expectation::Set::value_type value_type;
|
570
|
+
|
571
|
+
// Constructs an empty set.
|
572
|
+
ExpectationSet() {}
|
573
|
+
|
574
|
+
// This single-argument ctor must not be explicit, in order to support the
|
575
|
+
// ExpectationSet es = EXPECT_CALL(...);
|
576
|
+
// syntax.
|
577
|
+
ExpectationSet(internal::ExpectationBase& exp) { // NOLINT
|
578
|
+
*this += Expectation(exp);
|
579
|
+
}
|
580
|
+
|
581
|
+
// This single-argument ctor implements implicit conversion from
|
582
|
+
// Expectation and thus must not be explicit. This allows either an
|
583
|
+
// Expectation or an ExpectationSet to be used in .After().
|
584
|
+
ExpectationSet(const Expectation& e) { // NOLINT
|
585
|
+
*this += e;
|
586
|
+
}
|
587
|
+
|
588
|
+
// The compiler-generator ctor and operator= works exactly as
|
589
|
+
// intended, so we don't need to define our own.
|
590
|
+
|
591
|
+
// Returns true iff rhs contains the same set of Expectation objects
|
592
|
+
// as this does.
|
593
|
+
bool operator==(const ExpectationSet& rhs) const {
|
594
|
+
return expectations_ == rhs.expectations_;
|
595
|
+
}
|
596
|
+
|
597
|
+
bool operator!=(const ExpectationSet& rhs) const { return !(*this == rhs); }
|
598
|
+
|
599
|
+
// Implements the syntax
|
600
|
+
// expectation_set += EXPECT_CALL(...);
|
601
|
+
ExpectationSet& operator+=(const Expectation& e) {
|
602
|
+
expectations_.insert(e);
|
603
|
+
return *this;
|
604
|
+
}
|
605
|
+
|
606
|
+
int size() const { return static_cast<int>(expectations_.size()); }
|
607
|
+
|
608
|
+
const_iterator begin() const { return expectations_.begin(); }
|
609
|
+
const_iterator end() const { return expectations_.end(); }
|
610
|
+
|
611
|
+
private:
|
612
|
+
Expectation::Set expectations_;
|
613
|
+
};
|
614
|
+
|
615
|
+
|
616
|
+
// Sequence objects are used by a user to specify the relative order
|
617
|
+
// in which the expectations should match. They are copyable (we rely
|
618
|
+
// on the compiler-defined copy constructor and assignment operator).
|
619
|
+
class GTEST_API_ Sequence {
|
620
|
+
public:
|
621
|
+
// Constructs an empty sequence.
|
622
|
+
Sequence() : last_expectation_(new Expectation) {}
|
623
|
+
|
624
|
+
// Adds an expectation to this sequence. The caller must ensure
|
625
|
+
// that no other thread is accessing this Sequence object.
|
626
|
+
void AddExpectation(const Expectation& expectation) const;
|
627
|
+
|
628
|
+
private:
|
629
|
+
// The last expectation in this sequence. We use a linked_ptr here
|
630
|
+
// because Sequence objects are copyable and we want the copies to
|
631
|
+
// be aliases. The linked_ptr allows the copies to co-own and share
|
632
|
+
// the same Expectation object.
|
633
|
+
internal::linked_ptr<Expectation> last_expectation_;
|
634
|
+
}; // class Sequence
|
635
|
+
|
636
|
+
// An object of this type causes all EXPECT_CALL() statements
|
637
|
+
// encountered in its scope to be put in an anonymous sequence. The
|
638
|
+
// work is done in the constructor and destructor. You should only
|
639
|
+
// create an InSequence object on the stack.
|
640
|
+
//
|
641
|
+
// The sole purpose for this class is to support easy definition of
|
642
|
+
// sequential expectations, e.g.
|
643
|
+
//
|
644
|
+
// {
|
645
|
+
// InSequence dummy; // The name of the object doesn't matter.
|
646
|
+
//
|
647
|
+
// // The following expectations must match in the order they appear.
|
648
|
+
// EXPECT_CALL(a, Bar())...;
|
649
|
+
// EXPECT_CALL(a, Baz())...;
|
650
|
+
// ...
|
651
|
+
// EXPECT_CALL(b, Xyz())...;
|
652
|
+
// }
|
653
|
+
//
|
654
|
+
// You can create InSequence objects in multiple threads, as long as
|
655
|
+
// they are used to affect different mock objects. The idea is that
|
656
|
+
// each thread can create and set up its own mocks as if it's the only
|
657
|
+
// thread. However, for clarity of your tests we recommend you to set
|
658
|
+
// up mocks in the main thread unless you have a good reason not to do
|
659
|
+
// so.
|
660
|
+
class GTEST_API_ InSequence {
|
661
|
+
public:
|
662
|
+
InSequence();
|
663
|
+
~InSequence();
|
664
|
+
private:
|
665
|
+
bool sequence_created_;
|
666
|
+
|
667
|
+
GTEST_DISALLOW_COPY_AND_ASSIGN_(InSequence); // NOLINT
|
668
|
+
} GTEST_ATTRIBUTE_UNUSED_;
|
669
|
+
|
670
|
+
namespace internal {
|
671
|
+
|
672
|
+
// Points to the implicit sequence introduced by a living InSequence
|
673
|
+
// object (if any) in the current thread or NULL.
|
674
|
+
GTEST_API_ extern ThreadLocal<Sequence*> g_gmock_implicit_sequence;
|
675
|
+
|
676
|
+
// Base class for implementing expectations.
|
677
|
+
//
|
678
|
+
// There are two reasons for having a type-agnostic base class for
|
679
|
+
// Expectation:
|
680
|
+
//
|
681
|
+
// 1. We need to store collections of expectations of different
|
682
|
+
// types (e.g. all pre-requisites of a particular expectation, all
|
683
|
+
// expectations in a sequence). Therefore these expectation objects
|
684
|
+
// must share a common base class.
|
685
|
+
//
|
686
|
+
// 2. We can avoid binary code bloat by moving methods not depending
|
687
|
+
// on the template argument of Expectation to the base class.
|
688
|
+
//
|
689
|
+
// This class is internal and mustn't be used by user code directly.
|
690
|
+
class GTEST_API_ ExpectationBase {
|
691
|
+
public:
|
692
|
+
// source_text is the EXPECT_CALL(...) source that created this Expectation.
|
693
|
+
ExpectationBase(const char* file, int line, const string& source_text);
|
694
|
+
|
695
|
+
virtual ~ExpectationBase();
|
696
|
+
|
697
|
+
// Where in the source file was the expectation spec defined?
|
698
|
+
const char* file() const { return file_; }
|
699
|
+
int line() const { return line_; }
|
700
|
+
const char* source_text() const { return source_text_.c_str(); }
|
701
|
+
// Returns the cardinality specified in the expectation spec.
|
702
|
+
const Cardinality& cardinality() const { return cardinality_; }
|
703
|
+
|
704
|
+
// Describes the source file location of this expectation.
|
705
|
+
void DescribeLocationTo(::std::ostream* os) const {
|
706
|
+
*os << FormatFileLocation(file(), line()) << " ";
|
707
|
+
}
|
708
|
+
|
709
|
+
// Describes how many times a function call matching this
|
710
|
+
// expectation has occurred.
|
711
|
+
void DescribeCallCountTo(::std::ostream* os) const
|
712
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex);
|
713
|
+
|
714
|
+
// If this mock method has an extra matcher (i.e. .With(matcher)),
|
715
|
+
// describes it to the ostream.
|
716
|
+
virtual void MaybeDescribeExtraMatcherTo(::std::ostream* os) = 0;
|
717
|
+
|
718
|
+
protected:
|
719
|
+
friend class ::testing::Expectation;
|
720
|
+
friend class UntypedFunctionMockerBase;
|
721
|
+
|
722
|
+
enum Clause {
|
723
|
+
// Don't change the order of the enum members!
|
724
|
+
kNone,
|
725
|
+
kWith,
|
726
|
+
kTimes,
|
727
|
+
kInSequence,
|
728
|
+
kAfter,
|
729
|
+
kWillOnce,
|
730
|
+
kWillRepeatedly,
|
731
|
+
kRetiresOnSaturation
|
732
|
+
};
|
733
|
+
|
734
|
+
typedef std::vector<const void*> UntypedActions;
|
735
|
+
|
736
|
+
// Returns an Expectation object that references and co-owns this
|
737
|
+
// expectation.
|
738
|
+
virtual Expectation GetHandle() = 0;
|
739
|
+
|
740
|
+
// Asserts that the EXPECT_CALL() statement has the given property.
|
741
|
+
void AssertSpecProperty(bool property, const string& failure_message) const {
|
742
|
+
Assert(property, file_, line_, failure_message);
|
743
|
+
}
|
744
|
+
|
745
|
+
// Expects that the EXPECT_CALL() statement has the given property.
|
746
|
+
void ExpectSpecProperty(bool property, const string& failure_message) const {
|
747
|
+
Expect(property, file_, line_, failure_message);
|
748
|
+
}
|
749
|
+
|
750
|
+
// Explicitly specifies the cardinality of this expectation. Used
|
751
|
+
// by the subclasses to implement the .Times() clause.
|
752
|
+
void SpecifyCardinality(const Cardinality& cardinality);
|
753
|
+
|
754
|
+
// Returns true iff the user specified the cardinality explicitly
|
755
|
+
// using a .Times().
|
756
|
+
bool cardinality_specified() const { return cardinality_specified_; }
|
757
|
+
|
758
|
+
// Sets the cardinality of this expectation spec.
|
759
|
+
void set_cardinality(const Cardinality& a_cardinality) {
|
760
|
+
cardinality_ = a_cardinality;
|
761
|
+
}
|
762
|
+
|
763
|
+
// The following group of methods should only be called after the
|
764
|
+
// EXPECT_CALL() statement, and only when g_gmock_mutex is held by
|
765
|
+
// the current thread.
|
766
|
+
|
767
|
+
// Retires all pre-requisites of this expectation.
|
768
|
+
void RetireAllPreRequisites()
|
769
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex);
|
770
|
+
|
771
|
+
// Returns true iff this expectation is retired.
|
772
|
+
bool is_retired() const
|
773
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) {
|
774
|
+
g_gmock_mutex.AssertHeld();
|
775
|
+
return retired_;
|
776
|
+
}
|
777
|
+
|
778
|
+
// Retires this expectation.
|
779
|
+
void Retire()
|
780
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) {
|
781
|
+
g_gmock_mutex.AssertHeld();
|
782
|
+
retired_ = true;
|
783
|
+
}
|
784
|
+
|
785
|
+
// Returns true iff this expectation is satisfied.
|
786
|
+
bool IsSatisfied() const
|
787
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) {
|
788
|
+
g_gmock_mutex.AssertHeld();
|
789
|
+
return cardinality().IsSatisfiedByCallCount(call_count_);
|
790
|
+
}
|
791
|
+
|
792
|
+
// Returns true iff this expectation is saturated.
|
793
|
+
bool IsSaturated() const
|
794
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) {
|
795
|
+
g_gmock_mutex.AssertHeld();
|
796
|
+
return cardinality().IsSaturatedByCallCount(call_count_);
|
797
|
+
}
|
798
|
+
|
799
|
+
// Returns true iff this expectation is over-saturated.
|
800
|
+
bool IsOverSaturated() const
|
801
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) {
|
802
|
+
g_gmock_mutex.AssertHeld();
|
803
|
+
return cardinality().IsOverSaturatedByCallCount(call_count_);
|
804
|
+
}
|
805
|
+
|
806
|
+
// Returns true iff all pre-requisites of this expectation are satisfied.
|
807
|
+
bool AllPrerequisitesAreSatisfied() const
|
808
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex);
|
809
|
+
|
810
|
+
// Adds unsatisfied pre-requisites of this expectation to 'result'.
|
811
|
+
void FindUnsatisfiedPrerequisites(ExpectationSet* result) const
|
812
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex);
|
813
|
+
|
814
|
+
// Returns the number this expectation has been invoked.
|
815
|
+
int call_count() const
|
816
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) {
|
817
|
+
g_gmock_mutex.AssertHeld();
|
818
|
+
return call_count_;
|
819
|
+
}
|
820
|
+
|
821
|
+
// Increments the number this expectation has been invoked.
|
822
|
+
void IncrementCallCount()
|
823
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) {
|
824
|
+
g_gmock_mutex.AssertHeld();
|
825
|
+
call_count_++;
|
826
|
+
}
|
827
|
+
|
828
|
+
// Checks the action count (i.e. the number of WillOnce() and
|
829
|
+
// WillRepeatedly() clauses) against the cardinality if this hasn't
|
830
|
+
// been done before. Prints a warning if there are too many or too
|
831
|
+
// few actions.
|
832
|
+
void CheckActionCountIfNotDone() const
|
833
|
+
GTEST_LOCK_EXCLUDED_(mutex_);
|
834
|
+
|
835
|
+
friend class ::testing::Sequence;
|
836
|
+
friend class ::testing::internal::ExpectationTester;
|
837
|
+
|
838
|
+
template <typename Function>
|
839
|
+
friend class TypedExpectation;
|
840
|
+
|
841
|
+
// Implements the .Times() clause.
|
842
|
+
void UntypedTimes(const Cardinality& a_cardinality);
|
843
|
+
|
844
|
+
// This group of fields are part of the spec and won't change after
|
845
|
+
// an EXPECT_CALL() statement finishes.
|
846
|
+
const char* file_; // The file that contains the expectation.
|
847
|
+
int line_; // The line number of the expectation.
|
848
|
+
const string source_text_; // The EXPECT_CALL(...) source text.
|
849
|
+
// True iff the cardinality is specified explicitly.
|
850
|
+
bool cardinality_specified_;
|
851
|
+
Cardinality cardinality_; // The cardinality of the expectation.
|
852
|
+
// The immediate pre-requisites (i.e. expectations that must be
|
853
|
+
// satisfied before this expectation can be matched) of this
|
854
|
+
// expectation. We use linked_ptr in the set because we want an
|
855
|
+
// Expectation object to be co-owned by its FunctionMocker and its
|
856
|
+
// successors. This allows multiple mock objects to be deleted at
|
857
|
+
// different times.
|
858
|
+
ExpectationSet immediate_prerequisites_;
|
859
|
+
|
860
|
+
// This group of fields are the current state of the expectation,
|
861
|
+
// and can change as the mock function is called.
|
862
|
+
int call_count_; // How many times this expectation has been invoked.
|
863
|
+
bool retired_; // True iff this expectation has retired.
|
864
|
+
UntypedActions untyped_actions_;
|
865
|
+
bool extra_matcher_specified_;
|
866
|
+
bool repeated_action_specified_; // True if a WillRepeatedly() was specified.
|
867
|
+
bool retires_on_saturation_;
|
868
|
+
Clause last_clause_;
|
869
|
+
mutable bool action_count_checked_; // Under mutex_.
|
870
|
+
mutable Mutex mutex_; // Protects action_count_checked_.
|
871
|
+
|
872
|
+
GTEST_DISALLOW_ASSIGN_(ExpectationBase);
|
873
|
+
}; // class ExpectationBase
|
874
|
+
|
875
|
+
// Impements an expectation for the given function type.
|
876
|
+
template <typename F>
|
877
|
+
class TypedExpectation : public ExpectationBase {
|
878
|
+
public:
|
879
|
+
typedef typename Function<F>::ArgumentTuple ArgumentTuple;
|
880
|
+
typedef typename Function<F>::ArgumentMatcherTuple ArgumentMatcherTuple;
|
881
|
+
typedef typename Function<F>::Result Result;
|
882
|
+
|
883
|
+
TypedExpectation(FunctionMockerBase<F>* owner,
|
884
|
+
const char* a_file, int a_line, const string& a_source_text,
|
885
|
+
const ArgumentMatcherTuple& m)
|
886
|
+
: ExpectationBase(a_file, a_line, a_source_text),
|
887
|
+
owner_(owner),
|
888
|
+
matchers_(m),
|
889
|
+
// By default, extra_matcher_ should match anything. However,
|
890
|
+
// we cannot initialize it with _ as that triggers a compiler
|
891
|
+
// bug in Symbian's C++ compiler (cannot decide between two
|
892
|
+
// overloaded constructors of Matcher<const ArgumentTuple&>).
|
893
|
+
extra_matcher_(A<const ArgumentTuple&>()),
|
894
|
+
repeated_action_(DoDefault()) {}
|
895
|
+
|
896
|
+
virtual ~TypedExpectation() {
|
897
|
+
// Check the validity of the action count if it hasn't been done
|
898
|
+
// yet (for example, if the expectation was never used).
|
899
|
+
CheckActionCountIfNotDone();
|
900
|
+
for (UntypedActions::const_iterator it = untyped_actions_.begin();
|
901
|
+
it != untyped_actions_.end(); ++it) {
|
902
|
+
delete static_cast<const Action<F>*>(*it);
|
903
|
+
}
|
904
|
+
}
|
905
|
+
|
906
|
+
// Implements the .With() clause.
|
907
|
+
TypedExpectation& With(const Matcher<const ArgumentTuple&>& m) {
|
908
|
+
if (last_clause_ == kWith) {
|
909
|
+
ExpectSpecProperty(false,
|
910
|
+
".With() cannot appear "
|
911
|
+
"more than once in an EXPECT_CALL().");
|
912
|
+
} else {
|
913
|
+
ExpectSpecProperty(last_clause_ < kWith,
|
914
|
+
".With() must be the first "
|
915
|
+
"clause in an EXPECT_CALL().");
|
916
|
+
}
|
917
|
+
last_clause_ = kWith;
|
918
|
+
|
919
|
+
extra_matcher_ = m;
|
920
|
+
extra_matcher_specified_ = true;
|
921
|
+
return *this;
|
922
|
+
}
|
923
|
+
|
924
|
+
// Implements the .Times() clause.
|
925
|
+
TypedExpectation& Times(const Cardinality& a_cardinality) {
|
926
|
+
ExpectationBase::UntypedTimes(a_cardinality);
|
927
|
+
return *this;
|
928
|
+
}
|
929
|
+
|
930
|
+
// Implements the .Times() clause.
|
931
|
+
TypedExpectation& Times(int n) {
|
932
|
+
return Times(Exactly(n));
|
933
|
+
}
|
934
|
+
|
935
|
+
// Implements the .InSequence() clause.
|
936
|
+
TypedExpectation& InSequence(const Sequence& s) {
|
937
|
+
ExpectSpecProperty(last_clause_ <= kInSequence,
|
938
|
+
".InSequence() cannot appear after .After(),"
|
939
|
+
" .WillOnce(), .WillRepeatedly(), or "
|
940
|
+
".RetiresOnSaturation().");
|
941
|
+
last_clause_ = kInSequence;
|
942
|
+
|
943
|
+
s.AddExpectation(GetHandle());
|
944
|
+
return *this;
|
945
|
+
}
|
946
|
+
TypedExpectation& InSequence(const Sequence& s1, const Sequence& s2) {
|
947
|
+
return InSequence(s1).InSequence(s2);
|
948
|
+
}
|
949
|
+
TypedExpectation& InSequence(const Sequence& s1, const Sequence& s2,
|
950
|
+
const Sequence& s3) {
|
951
|
+
return InSequence(s1, s2).InSequence(s3);
|
952
|
+
}
|
953
|
+
TypedExpectation& InSequence(const Sequence& s1, const Sequence& s2,
|
954
|
+
const Sequence& s3, const Sequence& s4) {
|
955
|
+
return InSequence(s1, s2, s3).InSequence(s4);
|
956
|
+
}
|
957
|
+
TypedExpectation& InSequence(const Sequence& s1, const Sequence& s2,
|
958
|
+
const Sequence& s3, const Sequence& s4,
|
959
|
+
const Sequence& s5) {
|
960
|
+
return InSequence(s1, s2, s3, s4).InSequence(s5);
|
961
|
+
}
|
962
|
+
|
963
|
+
// Implements that .After() clause.
|
964
|
+
TypedExpectation& After(const ExpectationSet& s) {
|
965
|
+
ExpectSpecProperty(last_clause_ <= kAfter,
|
966
|
+
".After() cannot appear after .WillOnce(),"
|
967
|
+
" .WillRepeatedly(), or "
|
968
|
+
".RetiresOnSaturation().");
|
969
|
+
last_clause_ = kAfter;
|
970
|
+
|
971
|
+
for (ExpectationSet::const_iterator it = s.begin(); it != s.end(); ++it) {
|
972
|
+
immediate_prerequisites_ += *it;
|
973
|
+
}
|
974
|
+
return *this;
|
975
|
+
}
|
976
|
+
TypedExpectation& After(const ExpectationSet& s1, const ExpectationSet& s2) {
|
977
|
+
return After(s1).After(s2);
|
978
|
+
}
|
979
|
+
TypedExpectation& After(const ExpectationSet& s1, const ExpectationSet& s2,
|
980
|
+
const ExpectationSet& s3) {
|
981
|
+
return After(s1, s2).After(s3);
|
982
|
+
}
|
983
|
+
TypedExpectation& After(const ExpectationSet& s1, const ExpectationSet& s2,
|
984
|
+
const ExpectationSet& s3, const ExpectationSet& s4) {
|
985
|
+
return After(s1, s2, s3).After(s4);
|
986
|
+
}
|
987
|
+
TypedExpectation& After(const ExpectationSet& s1, const ExpectationSet& s2,
|
988
|
+
const ExpectationSet& s3, const ExpectationSet& s4,
|
989
|
+
const ExpectationSet& s5) {
|
990
|
+
return After(s1, s2, s3, s4).After(s5);
|
991
|
+
}
|
992
|
+
|
993
|
+
// Implements the .WillOnce() clause.
|
994
|
+
TypedExpectation& WillOnce(const Action<F>& action) {
|
995
|
+
ExpectSpecProperty(last_clause_ <= kWillOnce,
|
996
|
+
".WillOnce() cannot appear after "
|
997
|
+
".WillRepeatedly() or .RetiresOnSaturation().");
|
998
|
+
last_clause_ = kWillOnce;
|
999
|
+
|
1000
|
+
untyped_actions_.push_back(new Action<F>(action));
|
1001
|
+
if (!cardinality_specified()) {
|
1002
|
+
set_cardinality(Exactly(static_cast<int>(untyped_actions_.size())));
|
1003
|
+
}
|
1004
|
+
return *this;
|
1005
|
+
}
|
1006
|
+
|
1007
|
+
// Implements the .WillRepeatedly() clause.
|
1008
|
+
TypedExpectation& WillRepeatedly(const Action<F>& action) {
|
1009
|
+
if (last_clause_ == kWillRepeatedly) {
|
1010
|
+
ExpectSpecProperty(false,
|
1011
|
+
".WillRepeatedly() cannot appear "
|
1012
|
+
"more than once in an EXPECT_CALL().");
|
1013
|
+
} else {
|
1014
|
+
ExpectSpecProperty(last_clause_ < kWillRepeatedly,
|
1015
|
+
".WillRepeatedly() cannot appear "
|
1016
|
+
"after .RetiresOnSaturation().");
|
1017
|
+
}
|
1018
|
+
last_clause_ = kWillRepeatedly;
|
1019
|
+
repeated_action_specified_ = true;
|
1020
|
+
|
1021
|
+
repeated_action_ = action;
|
1022
|
+
if (!cardinality_specified()) {
|
1023
|
+
set_cardinality(AtLeast(static_cast<int>(untyped_actions_.size())));
|
1024
|
+
}
|
1025
|
+
|
1026
|
+
// Now that no more action clauses can be specified, we check
|
1027
|
+
// whether their count makes sense.
|
1028
|
+
CheckActionCountIfNotDone();
|
1029
|
+
return *this;
|
1030
|
+
}
|
1031
|
+
|
1032
|
+
// Implements the .RetiresOnSaturation() clause.
|
1033
|
+
TypedExpectation& RetiresOnSaturation() {
|
1034
|
+
ExpectSpecProperty(last_clause_ < kRetiresOnSaturation,
|
1035
|
+
".RetiresOnSaturation() cannot appear "
|
1036
|
+
"more than once.");
|
1037
|
+
last_clause_ = kRetiresOnSaturation;
|
1038
|
+
retires_on_saturation_ = true;
|
1039
|
+
|
1040
|
+
// Now that no more action clauses can be specified, we check
|
1041
|
+
// whether their count makes sense.
|
1042
|
+
CheckActionCountIfNotDone();
|
1043
|
+
return *this;
|
1044
|
+
}
|
1045
|
+
|
1046
|
+
// Returns the matchers for the arguments as specified inside the
|
1047
|
+
// EXPECT_CALL() macro.
|
1048
|
+
const ArgumentMatcherTuple& matchers() const {
|
1049
|
+
return matchers_;
|
1050
|
+
}
|
1051
|
+
|
1052
|
+
// Returns the matcher specified by the .With() clause.
|
1053
|
+
const Matcher<const ArgumentTuple&>& extra_matcher() const {
|
1054
|
+
return extra_matcher_;
|
1055
|
+
}
|
1056
|
+
|
1057
|
+
// Returns the action specified by the .WillRepeatedly() clause.
|
1058
|
+
const Action<F>& repeated_action() const { return repeated_action_; }
|
1059
|
+
|
1060
|
+
// If this mock method has an extra matcher (i.e. .With(matcher)),
|
1061
|
+
// describes it to the ostream.
|
1062
|
+
virtual void MaybeDescribeExtraMatcherTo(::std::ostream* os) {
|
1063
|
+
if (extra_matcher_specified_) {
|
1064
|
+
*os << " Expected args: ";
|
1065
|
+
extra_matcher_.DescribeTo(os);
|
1066
|
+
*os << "\n";
|
1067
|
+
}
|
1068
|
+
}
|
1069
|
+
|
1070
|
+
private:
|
1071
|
+
template <typename Function>
|
1072
|
+
friend class FunctionMockerBase;
|
1073
|
+
|
1074
|
+
// Returns an Expectation object that references and co-owns this
|
1075
|
+
// expectation.
|
1076
|
+
virtual Expectation GetHandle() {
|
1077
|
+
return owner_->GetHandleOf(this);
|
1078
|
+
}
|
1079
|
+
|
1080
|
+
// The following methods will be called only after the EXPECT_CALL()
|
1081
|
+
// statement finishes and when the current thread holds
|
1082
|
+
// g_gmock_mutex.
|
1083
|
+
|
1084
|
+
// Returns true iff this expectation matches the given arguments.
|
1085
|
+
bool Matches(const ArgumentTuple& args) const
|
1086
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) {
|
1087
|
+
g_gmock_mutex.AssertHeld();
|
1088
|
+
return TupleMatches(matchers_, args) && extra_matcher_.Matches(args);
|
1089
|
+
}
|
1090
|
+
|
1091
|
+
// Returns true iff this expectation should handle the given arguments.
|
1092
|
+
bool ShouldHandleArguments(const ArgumentTuple& args) const
|
1093
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) {
|
1094
|
+
g_gmock_mutex.AssertHeld();
|
1095
|
+
|
1096
|
+
// In case the action count wasn't checked when the expectation
|
1097
|
+
// was defined (e.g. if this expectation has no WillRepeatedly()
|
1098
|
+
// or RetiresOnSaturation() clause), we check it when the
|
1099
|
+
// expectation is used for the first time.
|
1100
|
+
CheckActionCountIfNotDone();
|
1101
|
+
return !is_retired() && AllPrerequisitesAreSatisfied() && Matches(args);
|
1102
|
+
}
|
1103
|
+
|
1104
|
+
// Describes the result of matching the arguments against this
|
1105
|
+
// expectation to the given ostream.
|
1106
|
+
void ExplainMatchResultTo(
|
1107
|
+
const ArgumentTuple& args,
|
1108
|
+
::std::ostream* os) const
|
1109
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) {
|
1110
|
+
g_gmock_mutex.AssertHeld();
|
1111
|
+
|
1112
|
+
if (is_retired()) {
|
1113
|
+
*os << " Expected: the expectation is active\n"
|
1114
|
+
<< " Actual: it is retired\n";
|
1115
|
+
} else if (!Matches(args)) {
|
1116
|
+
if (!TupleMatches(matchers_, args)) {
|
1117
|
+
ExplainMatchFailureTupleTo(matchers_, args, os);
|
1118
|
+
}
|
1119
|
+
StringMatchResultListener listener;
|
1120
|
+
if (!extra_matcher_.MatchAndExplain(args, &listener)) {
|
1121
|
+
*os << " Expected args: ";
|
1122
|
+
extra_matcher_.DescribeTo(os);
|
1123
|
+
*os << "\n Actual: don't match";
|
1124
|
+
|
1125
|
+
internal::PrintIfNotEmpty(listener.str(), os);
|
1126
|
+
*os << "\n";
|
1127
|
+
}
|
1128
|
+
} else if (!AllPrerequisitesAreSatisfied()) {
|
1129
|
+
*os << " Expected: all pre-requisites are satisfied\n"
|
1130
|
+
<< " Actual: the following immediate pre-requisites "
|
1131
|
+
<< "are not satisfied:\n";
|
1132
|
+
ExpectationSet unsatisfied_prereqs;
|
1133
|
+
FindUnsatisfiedPrerequisites(&unsatisfied_prereqs);
|
1134
|
+
int i = 0;
|
1135
|
+
for (ExpectationSet::const_iterator it = unsatisfied_prereqs.begin();
|
1136
|
+
it != unsatisfied_prereqs.end(); ++it) {
|
1137
|
+
it->expectation_base()->DescribeLocationTo(os);
|
1138
|
+
*os << "pre-requisite #" << i++ << "\n";
|
1139
|
+
}
|
1140
|
+
*os << " (end of pre-requisites)\n";
|
1141
|
+
} else {
|
1142
|
+
// This line is here just for completeness' sake. It will never
|
1143
|
+
// be executed as currently the ExplainMatchResultTo() function
|
1144
|
+
// is called only when the mock function call does NOT match the
|
1145
|
+
// expectation.
|
1146
|
+
*os << "The call matches the expectation.\n";
|
1147
|
+
}
|
1148
|
+
}
|
1149
|
+
|
1150
|
+
// Returns the action that should be taken for the current invocation.
|
1151
|
+
const Action<F>& GetCurrentAction(
|
1152
|
+
const FunctionMockerBase<F>* mocker,
|
1153
|
+
const ArgumentTuple& args) const
|
1154
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) {
|
1155
|
+
g_gmock_mutex.AssertHeld();
|
1156
|
+
const int count = call_count();
|
1157
|
+
Assert(count >= 1, __FILE__, __LINE__,
|
1158
|
+
"call_count() is <= 0 when GetCurrentAction() is "
|
1159
|
+
"called - this should never happen.");
|
1160
|
+
|
1161
|
+
const int action_count = static_cast<int>(untyped_actions_.size());
|
1162
|
+
if (action_count > 0 && !repeated_action_specified_ &&
|
1163
|
+
count > action_count) {
|
1164
|
+
// If there is at least one WillOnce() and no WillRepeatedly(),
|
1165
|
+
// we warn the user when the WillOnce() clauses ran out.
|
1166
|
+
::std::stringstream ss;
|
1167
|
+
DescribeLocationTo(&ss);
|
1168
|
+
ss << "Actions ran out in " << source_text() << "...\n"
|
1169
|
+
<< "Called " << count << " times, but only "
|
1170
|
+
<< action_count << " WillOnce()"
|
1171
|
+
<< (action_count == 1 ? " is" : "s are") << " specified - ";
|
1172
|
+
mocker->DescribeDefaultActionTo(args, &ss);
|
1173
|
+
Log(kWarning, ss.str(), 1);
|
1174
|
+
}
|
1175
|
+
|
1176
|
+
return count <= action_count ?
|
1177
|
+
*static_cast<const Action<F>*>(untyped_actions_[count - 1]) :
|
1178
|
+
repeated_action();
|
1179
|
+
}
|
1180
|
+
|
1181
|
+
// Given the arguments of a mock function call, if the call will
|
1182
|
+
// over-saturate this expectation, returns the default action;
|
1183
|
+
// otherwise, returns the next action in this expectation. Also
|
1184
|
+
// describes *what* happened to 'what', and explains *why* Google
|
1185
|
+
// Mock does it to 'why'. This method is not const as it calls
|
1186
|
+
// IncrementCallCount(). A return value of NULL means the default
|
1187
|
+
// action.
|
1188
|
+
const Action<F>* GetActionForArguments(
|
1189
|
+
const FunctionMockerBase<F>* mocker,
|
1190
|
+
const ArgumentTuple& args,
|
1191
|
+
::std::ostream* what,
|
1192
|
+
::std::ostream* why)
|
1193
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) {
|
1194
|
+
g_gmock_mutex.AssertHeld();
|
1195
|
+
if (IsSaturated()) {
|
1196
|
+
// We have an excessive call.
|
1197
|
+
IncrementCallCount();
|
1198
|
+
*what << "Mock function called more times than expected - ";
|
1199
|
+
mocker->DescribeDefaultActionTo(args, what);
|
1200
|
+
DescribeCallCountTo(why);
|
1201
|
+
|
1202
|
+
// TODO(wan@google.com): allow the user to control whether
|
1203
|
+
// unexpected calls should fail immediately or continue using a
|
1204
|
+
// flag --gmock_unexpected_calls_are_fatal.
|
1205
|
+
return NULL;
|
1206
|
+
}
|
1207
|
+
|
1208
|
+
IncrementCallCount();
|
1209
|
+
RetireAllPreRequisites();
|
1210
|
+
|
1211
|
+
if (retires_on_saturation_ && IsSaturated()) {
|
1212
|
+
Retire();
|
1213
|
+
}
|
1214
|
+
|
1215
|
+
// Must be done after IncrementCount()!
|
1216
|
+
*what << "Mock function call matches " << source_text() <<"...\n";
|
1217
|
+
return &(GetCurrentAction(mocker, args));
|
1218
|
+
}
|
1219
|
+
|
1220
|
+
// All the fields below won't change once the EXPECT_CALL()
|
1221
|
+
// statement finishes.
|
1222
|
+
FunctionMockerBase<F>* const owner_;
|
1223
|
+
ArgumentMatcherTuple matchers_;
|
1224
|
+
Matcher<const ArgumentTuple&> extra_matcher_;
|
1225
|
+
Action<F> repeated_action_;
|
1226
|
+
|
1227
|
+
GTEST_DISALLOW_COPY_AND_ASSIGN_(TypedExpectation);
|
1228
|
+
}; // class TypedExpectation
|
1229
|
+
|
1230
|
+
// A MockSpec object is used by ON_CALL() or EXPECT_CALL() for
|
1231
|
+
// specifying the default behavior of, or expectation on, a mock
|
1232
|
+
// function.
|
1233
|
+
|
1234
|
+
// Note: class MockSpec really belongs to the ::testing namespace.
|
1235
|
+
// However if we define it in ::testing, MSVC will complain when
|
1236
|
+
// classes in ::testing::internal declare it as a friend class
|
1237
|
+
// template. To workaround this compiler bug, we define MockSpec in
|
1238
|
+
// ::testing::internal and import it into ::testing.
|
1239
|
+
|
1240
|
+
// Logs a message including file and line number information.
|
1241
|
+
GTEST_API_ void LogWithLocation(testing::internal::LogSeverity severity,
|
1242
|
+
const char* file, int line,
|
1243
|
+
const string& message);
|
1244
|
+
|
1245
|
+
template <typename F>
|
1246
|
+
class MockSpec {
|
1247
|
+
public:
|
1248
|
+
typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple;
|
1249
|
+
typedef typename internal::Function<F>::ArgumentMatcherTuple
|
1250
|
+
ArgumentMatcherTuple;
|
1251
|
+
|
1252
|
+
// Constructs a MockSpec object, given the function mocker object
|
1253
|
+
// that the spec is associated with.
|
1254
|
+
explicit MockSpec(internal::FunctionMockerBase<F>* function_mocker)
|
1255
|
+
: function_mocker_(function_mocker) {}
|
1256
|
+
|
1257
|
+
// Adds a new default action spec to the function mocker and returns
|
1258
|
+
// the newly created spec.
|
1259
|
+
internal::OnCallSpec<F>& InternalDefaultActionSetAt(
|
1260
|
+
const char* file, int line, const char* obj, const char* call) {
|
1261
|
+
LogWithLocation(internal::kInfo, file, line,
|
1262
|
+
string("ON_CALL(") + obj + ", " + call + ") invoked");
|
1263
|
+
return function_mocker_->AddNewOnCallSpec(file, line, matchers_);
|
1264
|
+
}
|
1265
|
+
|
1266
|
+
// Adds a new expectation spec to the function mocker and returns
|
1267
|
+
// the newly created spec.
|
1268
|
+
internal::TypedExpectation<F>& InternalExpectedAt(
|
1269
|
+
const char* file, int line, const char* obj, const char* call) {
|
1270
|
+
const string source_text(string("EXPECT_CALL(") + obj + ", " + call + ")");
|
1271
|
+
LogWithLocation(internal::kInfo, file, line, source_text + " invoked");
|
1272
|
+
return function_mocker_->AddNewExpectation(
|
1273
|
+
file, line, source_text, matchers_);
|
1274
|
+
}
|
1275
|
+
|
1276
|
+
private:
|
1277
|
+
template <typename Function>
|
1278
|
+
friend class internal::FunctionMocker;
|
1279
|
+
|
1280
|
+
void SetMatchers(const ArgumentMatcherTuple& matchers) {
|
1281
|
+
matchers_ = matchers;
|
1282
|
+
}
|
1283
|
+
|
1284
|
+
// The function mocker that owns this spec.
|
1285
|
+
internal::FunctionMockerBase<F>* const function_mocker_;
|
1286
|
+
// The argument matchers specified in the spec.
|
1287
|
+
ArgumentMatcherTuple matchers_;
|
1288
|
+
|
1289
|
+
GTEST_DISALLOW_ASSIGN_(MockSpec);
|
1290
|
+
}; // class MockSpec
|
1291
|
+
|
1292
|
+
// Wrapper type for generically holding an ordinary value or lvalue reference.
|
1293
|
+
// If T is not a reference type, it must be copyable or movable.
|
1294
|
+
// ReferenceOrValueWrapper<T> is movable, and will also be copyable unless
|
1295
|
+
// T is a move-only value type (which means that it will always be copyable
|
1296
|
+
// if the current platform does not support move semantics).
|
1297
|
+
//
|
1298
|
+
// The primary template defines handling for values, but function header
|
1299
|
+
// comments describe the contract for the whole template (including
|
1300
|
+
// specializations).
|
1301
|
+
template <typename T>
|
1302
|
+
class ReferenceOrValueWrapper {
|
1303
|
+
public:
|
1304
|
+
// Constructs a wrapper from the given value/reference.
|
1305
|
+
explicit ReferenceOrValueWrapper(T value)
|
1306
|
+
: value_(::testing::internal::move(value)) {
|
1307
|
+
}
|
1308
|
+
|
1309
|
+
// Unwraps and returns the underlying value/reference, exactly as
|
1310
|
+
// originally passed. The behavior of calling this more than once on
|
1311
|
+
// the same object is unspecified.
|
1312
|
+
T Unwrap() { return ::testing::internal::move(value_); }
|
1313
|
+
|
1314
|
+
// Provides nondestructive access to the underlying value/reference.
|
1315
|
+
// Always returns a const reference (more precisely,
|
1316
|
+
// const RemoveReference<T>&). The behavior of calling this after
|
1317
|
+
// calling Unwrap on the same object is unspecified.
|
1318
|
+
const T& Peek() const {
|
1319
|
+
return value_;
|
1320
|
+
}
|
1321
|
+
|
1322
|
+
private:
|
1323
|
+
T value_;
|
1324
|
+
};
|
1325
|
+
|
1326
|
+
// Specialization for lvalue reference types. See primary template
|
1327
|
+
// for documentation.
|
1328
|
+
template <typename T>
|
1329
|
+
class ReferenceOrValueWrapper<T&> {
|
1330
|
+
public:
|
1331
|
+
// Workaround for debatable pass-by-reference lint warning (c-library-team
|
1332
|
+
// policy precludes NOLINT in this context)
|
1333
|
+
typedef T& reference;
|
1334
|
+
explicit ReferenceOrValueWrapper(reference ref)
|
1335
|
+
: value_ptr_(&ref) {}
|
1336
|
+
T& Unwrap() { return *value_ptr_; }
|
1337
|
+
const T& Peek() const { return *value_ptr_; }
|
1338
|
+
|
1339
|
+
private:
|
1340
|
+
T* value_ptr_;
|
1341
|
+
};
|
1342
|
+
|
1343
|
+
// MSVC warns about using 'this' in base member initializer list, so
|
1344
|
+
// we need to temporarily disable the warning. We have to do it for
|
1345
|
+
// the entire class to suppress the warning, even though it's about
|
1346
|
+
// the constructor only.
|
1347
|
+
|
1348
|
+
#ifdef _MSC_VER
|
1349
|
+
# pragma warning(push) // Saves the current warning state.
|
1350
|
+
# pragma warning(disable:4355) // Temporarily disables warning 4355.
|
1351
|
+
#endif // _MSV_VER
|
1352
|
+
|
1353
|
+
// C++ treats the void type specially. For example, you cannot define
|
1354
|
+
// a void-typed variable or pass a void value to a function.
|
1355
|
+
// ActionResultHolder<T> holds a value of type T, where T must be a
|
1356
|
+
// copyable type or void (T doesn't need to be default-constructable).
|
1357
|
+
// It hides the syntactic difference between void and other types, and
|
1358
|
+
// is used to unify the code for invoking both void-returning and
|
1359
|
+
// non-void-returning mock functions.
|
1360
|
+
|
1361
|
+
// Untyped base class for ActionResultHolder<T>.
|
1362
|
+
class UntypedActionResultHolderBase {
|
1363
|
+
public:
|
1364
|
+
virtual ~UntypedActionResultHolderBase() {}
|
1365
|
+
|
1366
|
+
// Prints the held value as an action's result to os.
|
1367
|
+
virtual void PrintAsActionResult(::std::ostream* os) const = 0;
|
1368
|
+
};
|
1369
|
+
|
1370
|
+
// This generic definition is used when T is not void.
|
1371
|
+
template <typename T>
|
1372
|
+
class ActionResultHolder : public UntypedActionResultHolderBase {
|
1373
|
+
public:
|
1374
|
+
// Returns the held value. Must not be called more than once.
|
1375
|
+
T Unwrap() {
|
1376
|
+
return result_.Unwrap();
|
1377
|
+
}
|
1378
|
+
|
1379
|
+
// Prints the held value as an action's result to os.
|
1380
|
+
virtual void PrintAsActionResult(::std::ostream* os) const {
|
1381
|
+
*os << "\n Returns: ";
|
1382
|
+
// T may be a reference type, so we don't use UniversalPrint().
|
1383
|
+
UniversalPrinter<T>::Print(result_.Peek(), os);
|
1384
|
+
}
|
1385
|
+
|
1386
|
+
// Performs the given mock function's default action and returns the
|
1387
|
+
// result in a new-ed ActionResultHolder.
|
1388
|
+
template <typename F>
|
1389
|
+
static ActionResultHolder* PerformDefaultAction(
|
1390
|
+
const FunctionMockerBase<F>* func_mocker,
|
1391
|
+
const typename Function<F>::ArgumentTuple& args,
|
1392
|
+
const string& call_description) {
|
1393
|
+
return new ActionResultHolder(Wrapper(
|
1394
|
+
func_mocker->PerformDefaultAction(args, call_description)));
|
1395
|
+
}
|
1396
|
+
|
1397
|
+
// Performs the given action and returns the result in a new-ed
|
1398
|
+
// ActionResultHolder.
|
1399
|
+
template <typename F>
|
1400
|
+
static ActionResultHolder*
|
1401
|
+
PerformAction(const Action<F>& action,
|
1402
|
+
const typename Function<F>::ArgumentTuple& args) {
|
1403
|
+
return new ActionResultHolder(Wrapper(action.Perform(args)));
|
1404
|
+
}
|
1405
|
+
|
1406
|
+
private:
|
1407
|
+
typedef ReferenceOrValueWrapper<T> Wrapper;
|
1408
|
+
|
1409
|
+
explicit ActionResultHolder(Wrapper result)
|
1410
|
+
: result_(::testing::internal::move(result)) {
|
1411
|
+
}
|
1412
|
+
|
1413
|
+
Wrapper result_;
|
1414
|
+
|
1415
|
+
GTEST_DISALLOW_COPY_AND_ASSIGN_(ActionResultHolder);
|
1416
|
+
};
|
1417
|
+
|
1418
|
+
// Specialization for T = void.
|
1419
|
+
template <>
|
1420
|
+
class ActionResultHolder<void> : public UntypedActionResultHolderBase {
|
1421
|
+
public:
|
1422
|
+
void Unwrap() { }
|
1423
|
+
|
1424
|
+
virtual void PrintAsActionResult(::std::ostream* /* os */) const {}
|
1425
|
+
|
1426
|
+
// Performs the given mock function's default action and returns ownership
|
1427
|
+
// of an empty ActionResultHolder*.
|
1428
|
+
template <typename F>
|
1429
|
+
static ActionResultHolder* PerformDefaultAction(
|
1430
|
+
const FunctionMockerBase<F>* func_mocker,
|
1431
|
+
const typename Function<F>::ArgumentTuple& args,
|
1432
|
+
const string& call_description) {
|
1433
|
+
func_mocker->PerformDefaultAction(args, call_description);
|
1434
|
+
return new ActionResultHolder;
|
1435
|
+
}
|
1436
|
+
|
1437
|
+
// Performs the given action and returns ownership of an empty
|
1438
|
+
// ActionResultHolder*.
|
1439
|
+
template <typename F>
|
1440
|
+
static ActionResultHolder* PerformAction(
|
1441
|
+
const Action<F>& action,
|
1442
|
+
const typename Function<F>::ArgumentTuple& args) {
|
1443
|
+
action.Perform(args);
|
1444
|
+
return new ActionResultHolder;
|
1445
|
+
}
|
1446
|
+
|
1447
|
+
private:
|
1448
|
+
ActionResultHolder() {}
|
1449
|
+
GTEST_DISALLOW_COPY_AND_ASSIGN_(ActionResultHolder);
|
1450
|
+
};
|
1451
|
+
|
1452
|
+
// The base of the function mocker class for the given function type.
|
1453
|
+
// We put the methods in this class instead of its child to avoid code
|
1454
|
+
// bloat.
|
1455
|
+
template <typename F>
|
1456
|
+
class FunctionMockerBase : public UntypedFunctionMockerBase {
|
1457
|
+
public:
|
1458
|
+
typedef typename Function<F>::Result Result;
|
1459
|
+
typedef typename Function<F>::ArgumentTuple ArgumentTuple;
|
1460
|
+
typedef typename Function<F>::ArgumentMatcherTuple ArgumentMatcherTuple;
|
1461
|
+
|
1462
|
+
FunctionMockerBase() : current_spec_(this) {}
|
1463
|
+
|
1464
|
+
// The destructor verifies that all expectations on this mock
|
1465
|
+
// function have been satisfied. If not, it will report Google Test
|
1466
|
+
// non-fatal failures for the violations.
|
1467
|
+
virtual ~FunctionMockerBase()
|
1468
|
+
GTEST_LOCK_EXCLUDED_(g_gmock_mutex) {
|
1469
|
+
MutexLock l(&g_gmock_mutex);
|
1470
|
+
VerifyAndClearExpectationsLocked();
|
1471
|
+
Mock::UnregisterLocked(this);
|
1472
|
+
ClearDefaultActionsLocked();
|
1473
|
+
}
|
1474
|
+
|
1475
|
+
// Returns the ON_CALL spec that matches this mock function with the
|
1476
|
+
// given arguments; returns NULL if no matching ON_CALL is found.
|
1477
|
+
// L = *
|
1478
|
+
const OnCallSpec<F>* FindOnCallSpec(
|
1479
|
+
const ArgumentTuple& args) const {
|
1480
|
+
for (UntypedOnCallSpecs::const_reverse_iterator it
|
1481
|
+
= untyped_on_call_specs_.rbegin();
|
1482
|
+
it != untyped_on_call_specs_.rend(); ++it) {
|
1483
|
+
const OnCallSpec<F>* spec = static_cast<const OnCallSpec<F>*>(*it);
|
1484
|
+
if (spec->Matches(args))
|
1485
|
+
return spec;
|
1486
|
+
}
|
1487
|
+
|
1488
|
+
return NULL;
|
1489
|
+
}
|
1490
|
+
|
1491
|
+
// Performs the default action of this mock function on the given
|
1492
|
+
// arguments and returns the result. Asserts (or throws if
|
1493
|
+
// exceptions are enabled) with a helpful call descrption if there
|
1494
|
+
// is no valid return value. This method doesn't depend on the
|
1495
|
+
// mutable state of this object, and thus can be called concurrently
|
1496
|
+
// without locking.
|
1497
|
+
// L = *
|
1498
|
+
Result PerformDefaultAction(const ArgumentTuple& args,
|
1499
|
+
const string& call_description) const {
|
1500
|
+
const OnCallSpec<F>* const spec =
|
1501
|
+
this->FindOnCallSpec(args);
|
1502
|
+
if (spec != NULL) {
|
1503
|
+
return spec->GetAction().Perform(args);
|
1504
|
+
}
|
1505
|
+
const string message = call_description +
|
1506
|
+
"\n The mock function has no default action "
|
1507
|
+
"set, and its return type has no default value set.";
|
1508
|
+
#if GTEST_HAS_EXCEPTIONS
|
1509
|
+
if (!DefaultValue<Result>::Exists()) {
|
1510
|
+
throw std::runtime_error(message);
|
1511
|
+
}
|
1512
|
+
#else
|
1513
|
+
Assert(DefaultValue<Result>::Exists(), "", -1, message);
|
1514
|
+
#endif
|
1515
|
+
return DefaultValue<Result>::Get();
|
1516
|
+
}
|
1517
|
+
|
1518
|
+
// Performs the default action with the given arguments and returns
|
1519
|
+
// the action's result. The call description string will be used in
|
1520
|
+
// the error message to describe the call in the case the default
|
1521
|
+
// action fails. The caller is responsible for deleting the result.
|
1522
|
+
// L = *
|
1523
|
+
virtual UntypedActionResultHolderBase* UntypedPerformDefaultAction(
|
1524
|
+
const void* untyped_args, // must point to an ArgumentTuple
|
1525
|
+
const string& call_description) const {
|
1526
|
+
const ArgumentTuple& args =
|
1527
|
+
*static_cast<const ArgumentTuple*>(untyped_args);
|
1528
|
+
return ResultHolder::PerformDefaultAction(this, args, call_description);
|
1529
|
+
}
|
1530
|
+
|
1531
|
+
// Performs the given action with the given arguments and returns
|
1532
|
+
// the action's result. The caller is responsible for deleting the
|
1533
|
+
// result.
|
1534
|
+
// L = *
|
1535
|
+
virtual UntypedActionResultHolderBase* UntypedPerformAction(
|
1536
|
+
const void* untyped_action, const void* untyped_args) const {
|
1537
|
+
// Make a copy of the action before performing it, in case the
|
1538
|
+
// action deletes the mock object (and thus deletes itself).
|
1539
|
+
const Action<F> action = *static_cast<const Action<F>*>(untyped_action);
|
1540
|
+
const ArgumentTuple& args =
|
1541
|
+
*static_cast<const ArgumentTuple*>(untyped_args);
|
1542
|
+
return ResultHolder::PerformAction(action, args);
|
1543
|
+
}
|
1544
|
+
|
1545
|
+
// Implements UntypedFunctionMockerBase::ClearDefaultActionsLocked():
|
1546
|
+
// clears the ON_CALL()s set on this mock function.
|
1547
|
+
virtual void ClearDefaultActionsLocked()
|
1548
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) {
|
1549
|
+
g_gmock_mutex.AssertHeld();
|
1550
|
+
|
1551
|
+
// Deleting our default actions may trigger other mock objects to be
|
1552
|
+
// deleted, for example if an action contains a reference counted smart
|
1553
|
+
// pointer to that mock object, and that is the last reference. So if we
|
1554
|
+
// delete our actions within the context of the global mutex we may deadlock
|
1555
|
+
// when this method is called again. Instead, make a copy of the set of
|
1556
|
+
// actions to delete, clear our set within the mutex, and then delete the
|
1557
|
+
// actions outside of the mutex.
|
1558
|
+
UntypedOnCallSpecs specs_to_delete;
|
1559
|
+
untyped_on_call_specs_.swap(specs_to_delete);
|
1560
|
+
|
1561
|
+
g_gmock_mutex.Unlock();
|
1562
|
+
for (UntypedOnCallSpecs::const_iterator it =
|
1563
|
+
specs_to_delete.begin();
|
1564
|
+
it != specs_to_delete.end(); ++it) {
|
1565
|
+
delete static_cast<const OnCallSpec<F>*>(*it);
|
1566
|
+
}
|
1567
|
+
|
1568
|
+
// Lock the mutex again, since the caller expects it to be locked when we
|
1569
|
+
// return.
|
1570
|
+
g_gmock_mutex.Lock();
|
1571
|
+
}
|
1572
|
+
|
1573
|
+
protected:
|
1574
|
+
template <typename Function>
|
1575
|
+
friend class MockSpec;
|
1576
|
+
|
1577
|
+
typedef ActionResultHolder<Result> ResultHolder;
|
1578
|
+
|
1579
|
+
// Returns the result of invoking this mock function with the given
|
1580
|
+
// arguments. This function can be safely called from multiple
|
1581
|
+
// threads concurrently.
|
1582
|
+
Result InvokeWith(const ArgumentTuple& args)
|
1583
|
+
GTEST_LOCK_EXCLUDED_(g_gmock_mutex) {
|
1584
|
+
scoped_ptr<ResultHolder> holder(
|
1585
|
+
DownCast_<ResultHolder*>(this->UntypedInvokeWith(&args)));
|
1586
|
+
return holder->Unwrap();
|
1587
|
+
}
|
1588
|
+
|
1589
|
+
// Adds and returns a default action spec for this mock function.
|
1590
|
+
OnCallSpec<F>& AddNewOnCallSpec(
|
1591
|
+
const char* file, int line,
|
1592
|
+
const ArgumentMatcherTuple& m)
|
1593
|
+
GTEST_LOCK_EXCLUDED_(g_gmock_mutex) {
|
1594
|
+
Mock::RegisterUseByOnCallOrExpectCall(MockObject(), file, line);
|
1595
|
+
OnCallSpec<F>* const on_call_spec = new OnCallSpec<F>(file, line, m);
|
1596
|
+
untyped_on_call_specs_.push_back(on_call_spec);
|
1597
|
+
return *on_call_spec;
|
1598
|
+
}
|
1599
|
+
|
1600
|
+
// Adds and returns an expectation spec for this mock function.
|
1601
|
+
TypedExpectation<F>& AddNewExpectation(
|
1602
|
+
const char* file,
|
1603
|
+
int line,
|
1604
|
+
const string& source_text,
|
1605
|
+
const ArgumentMatcherTuple& m)
|
1606
|
+
GTEST_LOCK_EXCLUDED_(g_gmock_mutex) {
|
1607
|
+
Mock::RegisterUseByOnCallOrExpectCall(MockObject(), file, line);
|
1608
|
+
TypedExpectation<F>* const expectation =
|
1609
|
+
new TypedExpectation<F>(this, file, line, source_text, m);
|
1610
|
+
const linked_ptr<ExpectationBase> untyped_expectation(expectation);
|
1611
|
+
untyped_expectations_.push_back(untyped_expectation);
|
1612
|
+
|
1613
|
+
// Adds this expectation into the implicit sequence if there is one.
|
1614
|
+
Sequence* const implicit_sequence = g_gmock_implicit_sequence.get();
|
1615
|
+
if (implicit_sequence != NULL) {
|
1616
|
+
implicit_sequence->AddExpectation(Expectation(untyped_expectation));
|
1617
|
+
}
|
1618
|
+
|
1619
|
+
return *expectation;
|
1620
|
+
}
|
1621
|
+
|
1622
|
+
// The current spec (either default action spec or expectation spec)
|
1623
|
+
// being described on this function mocker.
|
1624
|
+
MockSpec<F>& current_spec() { return current_spec_; }
|
1625
|
+
|
1626
|
+
private:
|
1627
|
+
template <typename Func> friend class TypedExpectation;
|
1628
|
+
|
1629
|
+
// Some utilities needed for implementing UntypedInvokeWith().
|
1630
|
+
|
1631
|
+
// Describes what default action will be performed for the given
|
1632
|
+
// arguments.
|
1633
|
+
// L = *
|
1634
|
+
void DescribeDefaultActionTo(const ArgumentTuple& args,
|
1635
|
+
::std::ostream* os) const {
|
1636
|
+
const OnCallSpec<F>* const spec = FindOnCallSpec(args);
|
1637
|
+
|
1638
|
+
if (spec == NULL) {
|
1639
|
+
*os << (internal::type_equals<Result, void>::value ?
|
1640
|
+
"returning directly.\n" :
|
1641
|
+
"returning default value.\n");
|
1642
|
+
} else {
|
1643
|
+
*os << "taking default action specified at:\n"
|
1644
|
+
<< FormatFileLocation(spec->file(), spec->line()) << "\n";
|
1645
|
+
}
|
1646
|
+
}
|
1647
|
+
|
1648
|
+
// Writes a message that the call is uninteresting (i.e. neither
|
1649
|
+
// explicitly expected nor explicitly unexpected) to the given
|
1650
|
+
// ostream.
|
1651
|
+
virtual void UntypedDescribeUninterestingCall(
|
1652
|
+
const void* untyped_args,
|
1653
|
+
::std::ostream* os) const
|
1654
|
+
GTEST_LOCK_EXCLUDED_(g_gmock_mutex) {
|
1655
|
+
const ArgumentTuple& args =
|
1656
|
+
*static_cast<const ArgumentTuple*>(untyped_args);
|
1657
|
+
*os << "Uninteresting mock function call - ";
|
1658
|
+
DescribeDefaultActionTo(args, os);
|
1659
|
+
*os << " Function call: " << Name();
|
1660
|
+
UniversalPrint(args, os);
|
1661
|
+
}
|
1662
|
+
|
1663
|
+
// Returns the expectation that matches the given function arguments
|
1664
|
+
// (or NULL is there's no match); when a match is found,
|
1665
|
+
// untyped_action is set to point to the action that should be
|
1666
|
+
// performed (or NULL if the action is "do default"), and
|
1667
|
+
// is_excessive is modified to indicate whether the call exceeds the
|
1668
|
+
// expected number.
|
1669
|
+
//
|
1670
|
+
// Critical section: We must find the matching expectation and the
|
1671
|
+
// corresponding action that needs to be taken in an ATOMIC
|
1672
|
+
// transaction. Otherwise another thread may call this mock
|
1673
|
+
// method in the middle and mess up the state.
|
1674
|
+
//
|
1675
|
+
// However, performing the action has to be left out of the critical
|
1676
|
+
// section. The reason is that we have no control on what the
|
1677
|
+
// action does (it can invoke an arbitrary user function or even a
|
1678
|
+
// mock function) and excessive locking could cause a dead lock.
|
1679
|
+
virtual const ExpectationBase* UntypedFindMatchingExpectation(
|
1680
|
+
const void* untyped_args,
|
1681
|
+
const void** untyped_action, bool* is_excessive,
|
1682
|
+
::std::ostream* what, ::std::ostream* why)
|
1683
|
+
GTEST_LOCK_EXCLUDED_(g_gmock_mutex) {
|
1684
|
+
const ArgumentTuple& args =
|
1685
|
+
*static_cast<const ArgumentTuple*>(untyped_args);
|
1686
|
+
MutexLock l(&g_gmock_mutex);
|
1687
|
+
TypedExpectation<F>* exp = this->FindMatchingExpectationLocked(args);
|
1688
|
+
if (exp == NULL) { // A match wasn't found.
|
1689
|
+
this->FormatUnexpectedCallMessageLocked(args, what, why);
|
1690
|
+
return NULL;
|
1691
|
+
}
|
1692
|
+
|
1693
|
+
// This line must be done before calling GetActionForArguments(),
|
1694
|
+
// which will increment the call count for *exp and thus affect
|
1695
|
+
// its saturation status.
|
1696
|
+
*is_excessive = exp->IsSaturated();
|
1697
|
+
const Action<F>* action = exp->GetActionForArguments(this, args, what, why);
|
1698
|
+
if (action != NULL && action->IsDoDefault())
|
1699
|
+
action = NULL; // Normalize "do default" to NULL.
|
1700
|
+
*untyped_action = action;
|
1701
|
+
return exp;
|
1702
|
+
}
|
1703
|
+
|
1704
|
+
// Prints the given function arguments to the ostream.
|
1705
|
+
virtual void UntypedPrintArgs(const void* untyped_args,
|
1706
|
+
::std::ostream* os) const {
|
1707
|
+
const ArgumentTuple& args =
|
1708
|
+
*static_cast<const ArgumentTuple*>(untyped_args);
|
1709
|
+
UniversalPrint(args, os);
|
1710
|
+
}
|
1711
|
+
|
1712
|
+
// Returns the expectation that matches the arguments, or NULL if no
|
1713
|
+
// expectation matches them.
|
1714
|
+
TypedExpectation<F>* FindMatchingExpectationLocked(
|
1715
|
+
const ArgumentTuple& args) const
|
1716
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) {
|
1717
|
+
g_gmock_mutex.AssertHeld();
|
1718
|
+
for (typename UntypedExpectations::const_reverse_iterator it =
|
1719
|
+
untyped_expectations_.rbegin();
|
1720
|
+
it != untyped_expectations_.rend(); ++it) {
|
1721
|
+
TypedExpectation<F>* const exp =
|
1722
|
+
static_cast<TypedExpectation<F>*>(it->get());
|
1723
|
+
if (exp->ShouldHandleArguments(args)) {
|
1724
|
+
return exp;
|
1725
|
+
}
|
1726
|
+
}
|
1727
|
+
return NULL;
|
1728
|
+
}
|
1729
|
+
|
1730
|
+
// Returns a message that the arguments don't match any expectation.
|
1731
|
+
void FormatUnexpectedCallMessageLocked(
|
1732
|
+
const ArgumentTuple& args,
|
1733
|
+
::std::ostream* os,
|
1734
|
+
::std::ostream* why) const
|
1735
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) {
|
1736
|
+
g_gmock_mutex.AssertHeld();
|
1737
|
+
*os << "\nUnexpected mock function call - ";
|
1738
|
+
DescribeDefaultActionTo(args, os);
|
1739
|
+
PrintTriedExpectationsLocked(args, why);
|
1740
|
+
}
|
1741
|
+
|
1742
|
+
// Prints a list of expectations that have been tried against the
|
1743
|
+
// current mock function call.
|
1744
|
+
void PrintTriedExpectationsLocked(
|
1745
|
+
const ArgumentTuple& args,
|
1746
|
+
::std::ostream* why) const
|
1747
|
+
GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) {
|
1748
|
+
g_gmock_mutex.AssertHeld();
|
1749
|
+
const int count = static_cast<int>(untyped_expectations_.size());
|
1750
|
+
*why << "Google Mock tried the following " << count << " "
|
1751
|
+
<< (count == 1 ? "expectation, but it didn't match" :
|
1752
|
+
"expectations, but none matched")
|
1753
|
+
<< ":\n";
|
1754
|
+
for (int i = 0; i < count; i++) {
|
1755
|
+
TypedExpectation<F>* const expectation =
|
1756
|
+
static_cast<TypedExpectation<F>*>(untyped_expectations_[i].get());
|
1757
|
+
*why << "\n";
|
1758
|
+
expectation->DescribeLocationTo(why);
|
1759
|
+
if (count > 1) {
|
1760
|
+
*why << "tried expectation #" << i << ": ";
|
1761
|
+
}
|
1762
|
+
*why << expectation->source_text() << "...\n";
|
1763
|
+
expectation->ExplainMatchResultTo(args, why);
|
1764
|
+
expectation->DescribeCallCountTo(why);
|
1765
|
+
}
|
1766
|
+
}
|
1767
|
+
|
1768
|
+
// The current spec (either default action spec or expectation spec)
|
1769
|
+
// being described on this function mocker.
|
1770
|
+
MockSpec<F> current_spec_;
|
1771
|
+
|
1772
|
+
// There is no generally useful and implementable semantics of
|
1773
|
+
// copying a mock object, so copying a mock is usually a user error.
|
1774
|
+
// Thus we disallow copying function mockers. If the user really
|
1775
|
+
// wants to copy a mock object, he should implement his own copy
|
1776
|
+
// operation, for example:
|
1777
|
+
//
|
1778
|
+
// class MockFoo : public Foo {
|
1779
|
+
// public:
|
1780
|
+
// // Defines a copy constructor explicitly.
|
1781
|
+
// MockFoo(const MockFoo& src) {}
|
1782
|
+
// ...
|
1783
|
+
// };
|
1784
|
+
GTEST_DISALLOW_COPY_AND_ASSIGN_(FunctionMockerBase);
|
1785
|
+
}; // class FunctionMockerBase
|
1786
|
+
|
1787
|
+
#ifdef _MSC_VER
|
1788
|
+
# pragma warning(pop) // Restores the warning state.
|
1789
|
+
#endif // _MSV_VER
|
1790
|
+
|
1791
|
+
// Implements methods of FunctionMockerBase.
|
1792
|
+
|
1793
|
+
// Verifies that all expectations on this mock function have been
|
1794
|
+
// satisfied. Reports one or more Google Test non-fatal failures and
|
1795
|
+
// returns false if not.
|
1796
|
+
|
1797
|
+
// Reports an uninteresting call (whose description is in msg) in the
|
1798
|
+
// manner specified by 'reaction'.
|
1799
|
+
void ReportUninterestingCall(CallReaction reaction, const string& msg);
|
1800
|
+
|
1801
|
+
} // namespace internal
|
1802
|
+
|
1803
|
+
// The style guide prohibits "using" statements in a namespace scope
|
1804
|
+
// inside a header file. However, the MockSpec class template is
|
1805
|
+
// meant to be defined in the ::testing namespace. The following line
|
1806
|
+
// is just a trick for working around a bug in MSVC 8.0, which cannot
|
1807
|
+
// handle it if we define MockSpec in ::testing.
|
1808
|
+
using internal::MockSpec;
|
1809
|
+
|
1810
|
+
// Const(x) is a convenient function for obtaining a const reference
|
1811
|
+
// to x. This is useful for setting expectations on an overloaded
|
1812
|
+
// const mock method, e.g.
|
1813
|
+
//
|
1814
|
+
// class MockFoo : public FooInterface {
|
1815
|
+
// public:
|
1816
|
+
// MOCK_METHOD0(Bar, int());
|
1817
|
+
// MOCK_CONST_METHOD0(Bar, int&());
|
1818
|
+
// };
|
1819
|
+
//
|
1820
|
+
// MockFoo foo;
|
1821
|
+
// // Expects a call to non-const MockFoo::Bar().
|
1822
|
+
// EXPECT_CALL(foo, Bar());
|
1823
|
+
// // Expects a call to const MockFoo::Bar().
|
1824
|
+
// EXPECT_CALL(Const(foo), Bar());
|
1825
|
+
template <typename T>
|
1826
|
+
inline const T& Const(const T& x) { return x; }
|
1827
|
+
|
1828
|
+
// Constructs an Expectation object that references and co-owns exp.
|
1829
|
+
inline Expectation::Expectation(internal::ExpectationBase& exp) // NOLINT
|
1830
|
+
: expectation_base_(exp.GetHandle().expectation_base()) {}
|
1831
|
+
|
1832
|
+
} // namespace testing
|
1833
|
+
|
1834
|
+
// A separate macro is required to avoid compile errors when the name
|
1835
|
+
// of the method used in call is a result of macro expansion.
|
1836
|
+
// See CompilesWithMethodNameExpandedFromMacro tests in
|
1837
|
+
// internal/gmock-spec-builders_test.cc for more details.
|
1838
|
+
#define GMOCK_ON_CALL_IMPL_(obj, call) \
|
1839
|
+
((obj).gmock_##call).InternalDefaultActionSetAt(__FILE__, __LINE__, \
|
1840
|
+
#obj, #call)
|
1841
|
+
#define ON_CALL(obj, call) GMOCK_ON_CALL_IMPL_(obj, call)
|
1842
|
+
|
1843
|
+
#define GMOCK_EXPECT_CALL_IMPL_(obj, call) \
|
1844
|
+
((obj).gmock_##call).InternalExpectedAt(__FILE__, __LINE__, #obj, #call)
|
1845
|
+
#define EXPECT_CALL(obj, call) GMOCK_EXPECT_CALL_IMPL_(obj, call)
|
1846
|
+
|
1847
|
+
#endif // GMOCK_INCLUDE_GMOCK_GMOCK_SPEC_BUILDERS_H_
|