rj_schema 0.2.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/rj_schema/rapidjson/CMakeLists.txt +9 -4
- data/ext/rj_schema/rapidjson/RapidJSONConfig.cmake.in +10 -0
- data/ext/rj_schema/rapidjson/appveyor.yml +22 -9
- data/ext/rj_schema/rapidjson/bin/data/abcde.txt +1 -0
- data/ext/rj_schema/rapidjson/bin/unittestschema/address.json +139 -0
- data/ext/rj_schema/rapidjson/bin/unittestschema/allOf_address.json +7 -0
- data/ext/rj_schema/rapidjson/bin/unittestschema/anyOf_address.json +7 -0
- data/ext/rj_schema/rapidjson/bin/unittestschema/oneOf_address.json +7 -0
- data/ext/rj_schema/rapidjson/contrib/natvis/rapidjson.natvis +2 -2
- data/ext/rj_schema/rapidjson/doc/dom.md +1 -0
- data/ext/rj_schema/rapidjson/doc/dom.zh-cn.md +1 -0
- data/ext/rj_schema/rapidjson/doc/faq.md +3 -3
- data/ext/rj_schema/rapidjson/doc/faq.zh-cn.md +8 -8
- data/ext/rj_schema/rapidjson/doc/internals.md +1 -1
- data/ext/rj_schema/rapidjson/doc/internals.zh-cn.md +2 -2
- data/ext/rj_schema/rapidjson/doc/pointer.zh-cn.md +1 -1
- data/ext/rj_schema/rapidjson/doc/sax.md +1 -1
- data/ext/rj_schema/rapidjson/doc/sax.zh-cn.md +2 -2
- data/ext/rj_schema/rapidjson/doc/stream.md +1 -1
- data/ext/rj_schema/rapidjson/doc/tutorial.md +1 -1
- data/ext/rj_schema/rapidjson/doc/tutorial.zh-cn.md +7 -6
- data/ext/rj_schema/rapidjson/example/CMakeLists.txt +1 -0
- data/ext/rj_schema/rapidjson/example/schemavalidator/schemavalidator.cpp +118 -0
- data/ext/rj_schema/rapidjson/example/sortkeys/sortkeys.cpp +62 -0
- data/ext/rj_schema/rapidjson/example/tutorial/tutorial.cpp +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/allocators.h +6 -6
- data/ext/rj_schema/rapidjson/include/rapidjson/cursorstreamwrapper.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/document.h +124 -35
- data/ext/rj_schema/rapidjson/include/rapidjson/encodedstream.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/encodings.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/error/en.h +49 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/error/error.h +56 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/filereadstream.h +2 -2
- data/ext/rj_schema/rapidjson/include/rapidjson/filewritestream.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/fwd.h +2 -2
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/biginteger.h +2 -2
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/clzll.h +71 -0
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/diyfp.h +3 -17
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/dtoa.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/ieee754.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/itoa.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/meta.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/pow10.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/regex.h +20 -13
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/stack.h +4 -3
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/strfunc.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/strtod.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/swap.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/istreamwrapper.h +50 -35
- data/ext/rj_schema/rapidjson/include/rapidjson/memorybuffer.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/memorystream.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/ostreamwrapper.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/pointer.h +63 -5
- data/ext/rj_schema/rapidjson/include/rapidjson/prettywriter.h +2 -2
- data/ext/rj_schema/rapidjson/include/rapidjson/rapidjson.h +63 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/reader.h +67 -53
- data/ext/rj_schema/rapidjson/include/rapidjson/schema.h +318 -164
- data/ext/rj_schema/rapidjson/include/rapidjson/stream.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/stringbuffer.h +1 -1
- data/ext/rj_schema/rapidjson/include/rapidjson/writer.h +10 -10
- data/ext/rj_schema/rapidjson/readme.md +51 -1
- data/ext/rj_schema/rapidjson/readme.zh-cn.md +2 -2
- data/ext/rj_schema/rapidjson/test/perftest/misctest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/perftest/perftest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/perftest/perftest.h +1 -1
- data/ext/rj_schema/rapidjson/test/perftest/platformtest.cpp +2 -2
- data/ext/rj_schema/rapidjson/test/perftest/rapidjsontest.cpp +75 -1
- data/ext/rj_schema/rapidjson/test/unittest/CMakeLists.txt +1 -0
- data/ext/rj_schema/rapidjson/test/unittest/allocatorstest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/bigintegertest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/clzlltest.cpp +34 -0
- data/ext/rj_schema/rapidjson/test/unittest/cursorstreamwrappertest.cpp +19 -19
- data/ext/rj_schema/rapidjson/test/unittest/documenttest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/dtoatest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/encodedstreamtest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/encodingstest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/filestreamtest.cpp +45 -2
- data/ext/rj_schema/rapidjson/test/unittest/fwdtest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/istreamwrappertest.cpp +10 -10
- data/ext/rj_schema/rapidjson/test/unittest/itoatest.cpp +8 -8
- data/ext/rj_schema/rapidjson/test/unittest/jsoncheckertest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/namespacetest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/ostreamwrappertest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/pointertest.cpp +157 -16
- data/ext/rj_schema/rapidjson/test/unittest/prettywritertest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/readertest.cpp +113 -75
- data/ext/rj_schema/rapidjson/test/unittest/regextest.cpp +2 -1
- data/ext/rj_schema/rapidjson/test/unittest/schematest.cpp +593 -78
- data/ext/rj_schema/rapidjson/test/unittest/simdtest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/strfunctest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/stringbuffertest.cpp +5 -5
- data/ext/rj_schema/rapidjson/test/unittest/strtodtest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/unittest.cpp +1 -1
- data/ext/rj_schema/rapidjson/test/unittest/unittest.h +4 -1
- data/ext/rj_schema/rapidjson/test/unittest/valuetest.cpp +12 -12
- data/ext/rj_schema/rapidjson/test/unittest/writertest.cpp +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/BUILD.bazel +175 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/CMakeLists.txt +18 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/CONTRIBUTING.md +160 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/LICENSE +28 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/Makefile.am +14 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/README.md +16 -35
- data/ext/rj_schema/rapidjson/thirdparty/gtest/WORKSPACE +8 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/appveyor.yml +104 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/build-linux-autotools.sh +44 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/build-linux-bazel.sh +36 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/env-linux.sh +41 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/env-osx.sh +40 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/get-nprocessors.sh +48 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/install-linux.sh +49 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/install-osx.sh +39 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/log-config.sh +51 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/travis.sh +44 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/configure.ac +16 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/CHANGES +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt +72 -32
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/README.md +53 -42
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/cmake/gmock.pc.in +9 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/cmake/gmock_main.pc.in +9 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/configure.ac +4 -4
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/CheatSheet.md +6 -4
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/CookBook.md +117 -132
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/Documentation.md +7 -4
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/ForDummies.md +20 -12
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/FrequentlyAskedQuestions.md +1 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-actions.h +83 -26
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h +262 -68
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h.pump +45 -6
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h +650 -366
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +76 -20
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h +308 -229
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h.pump +18 -15
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h +87 -26
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h.pump +33 -16
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h +1209 -353
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-matchers.h +33 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-spec-builders.h +159 -88
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock.h +2 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-matchers.h +3 -4
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h +16 -9
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-internal-utils.h +71 -8
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-port.h +7 -11
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.sln +14 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.vcxproj +69 -6
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_config.props +2 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_main.vcxproj +69 -6
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_test.vcxproj +83 -8
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.sln +14 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.vcxproj +63 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_main.vcxproj +63 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_test.vcxproj +76 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/fuse_gmock_files.py +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README +4 -5
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/ast.py +3 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-cardinalities.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-internal-utils.cc +36 -6
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-matchers.cc +210 -135
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-spec-builders.cc +108 -48
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock.cc +23 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/BUILD.bazel +123 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-actions_test.cc +166 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-cardinalities_test.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-actions_test.cc +64 -62
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-function-mockers_test.cc +43 -18
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-internal-utils_test.cc +11 -9
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-matchers_test.cc +91 -36
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-internal-utils_test.cc +33 -14
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-matchers_test.cc +1286 -167
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-more-actions_test.cc +85 -83
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-nice-strict_test.cc +102 -15
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-spec-builders_test.cc +136 -9
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link2_test.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.h +24 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test.py +8 -5
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_.cc +20 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_golden.txt +8 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_stress_test.cc +3 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_test.cc +44 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_test_utils.py +5 -7
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt +40 -14
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/Makefile.am +60 -31
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/README.md +232 -171
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/cmake/gtest.pc.in +9 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/cmake/gtest_main.pc.in +10 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/cmake/internal_utils.cmake +54 -16
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/configure.ac +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/Pkgconfig.md +146 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/PumpManual.md +2 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/XcodeGuide.md +6 -6
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/{AdvancedGuide.md → advanced.md} +260 -26
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/{FAQ.md → faq.md} +62 -57
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/{Primer.md → primer.md} +43 -9
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/{Samples.md → samples.md} +0 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-death-test.h +53 -5
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-message.h +1 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h +30 -36
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h.pump +8 -17
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-printers.h +140 -51
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-spi.h +2 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-typed-test.h +4 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest.h +126 -30
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_pred_impl.h +6 -7
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_prod.h +8 -5
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-port.h +6 -5
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest.h +4 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h +13 -57
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-filepath.h +1 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-internal.h +98 -59
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h +34 -41
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +3 -10
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util.h +9 -17
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port-arch.h +8 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port.h +232 -99
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-string.h +3 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h +17 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h.pump +17 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.sln +55 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.vcxproj +149 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.vcxproj.filters +18 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.sln +55 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.vcxproj +149 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.vcxproj.filters +18 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main-md.vcxproj +154 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main-md.vcxproj.filters +18 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main.vcxproj +162 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main.vcxproj.filters +18 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test-md.vcxproj +199 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test-md.vcxproj.filters +26 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test.vcxproj +191 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test.vcxproj.filters +26 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest-md.vcxproj +188 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest-md.vcxproj.filters +18 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest.vcxproj +180 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest.vcxproj.filters +18 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/prime_tables.h +6 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample1.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample10_unittest.cc +0 -4
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample1_unittest.cc +2 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample2_unittest.cc +2 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample3_unittest.cc +7 -6
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample4_unittest.cc +5 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample5_unittest.cc +3 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample6_unittest.cc +2 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample7_unittest.cc +10 -22
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample8_unittest.cc +2 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample9_unittest.cc +0 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/fuse_gtest_files.py +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/gen_gtest_pred_impl.py +10 -10
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/upload.py +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-all.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-death-test.cc +226 -32
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-filepath.cc +5 -7
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-internal-inl.h +21 -29
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-port.cc +85 -67
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-printers.cc +93 -8
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-test-part.cc +1 -9
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-typed-test.cc +1 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest.cc +622 -164
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest_main.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/BUILD.bazel +396 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_test.cc +12 -15
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-filepath_test.cc +2 -12
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-listener_test.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-options_test.cc +6 -8
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test2_test.cc +1 -5
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.cc +84 -29
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.h +1 -5
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-port_test.cc +11 -12
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-printers_test.cc +165 -63
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test2_test.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-unittest-api_test.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_all_test.cc +13 -13
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_assert_by_exception_test.cc +119 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest.py +1 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest_.cc +1 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test.py +0 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test_.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test.py +1 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test_.cc +0 -8
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test.py +6 -4
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test_.cc +0 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_environment_test.cc +0 -3
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest.py +20 -18
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest_.cc +0 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test.py +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_json_outfiles_test.py +162 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_json_output_unittest.py +611 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_json_test_utils.py +60 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest.py +4 -4
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_main_unittest.cc +2 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test.py +11 -7
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_.cc +17 -12
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_golden_lin.txt +104 -66
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_pred_impl_unittest.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_prod_test.cc +2 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_repeat_test.cc +2 -19
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_stress_test.cc +0 -6
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_test_utils.py +12 -14
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_testbridge_test.py +65 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_testbridge_test_.cc +44 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test.py +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test.py +4 -5
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test_.cc +2 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_unittest.cc +240 -149
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile1_test_.cc +0 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile2_test_.cc +0 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfiles_test.py +15 -7
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest.py +100 -30
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest_.cc +0 -2
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_test_utils.py +25 -23
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/production.cc +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/production.h +1 -1
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/versiongenerate.py +4 -4
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/gtest.xcodeproj/project.pbxproj +47 -0
- data/ext/rj_schema/rapidjson/travis-doxygen.sh +13 -6
- data/ext/rj_schema/rj_schema.cpp +161 -17
- data/lib/rj_schema.rb +1 -1
- metadata +63 -58
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/DevGuide.md +0 -132
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CheatSheet.md +0 -525
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CookBook.md +0 -3250
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/Documentation.md +0 -11
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/ForDummies.md +0 -439
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/FrequentlyAskedQuestions.md +0 -624
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CheatSheet.md +0 -534
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CookBook.md +0 -3342
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/Documentation.md +0 -12
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/ForDummies.md +0 -439
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/FrequentlyAskedQuestions.md +0 -628
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CheatSheet.md +0 -556
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CookBook.md +0 -3432
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/Documentation.md +0 -12
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/ForDummies.md +0 -439
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/FrequentlyAskedQuestions.md +0 -628
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/DevGuide.md +0 -126
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/Documentation.md +0 -14
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_AdvancedGuide.md +0 -2096
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Documentation.md +0 -12
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_FAQ.md +0 -886
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Primer.md +0 -497
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_PumpManual.md +0 -177
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_XcodeGuide.md +0 -93
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_AdvancedGuide.md +0 -2178
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Documentation.md +0 -14
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_FAQ.md +0 -1038
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Primer.md +0 -501
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_PumpManual.md +0 -177
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Samples.md +0 -14
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_XcodeGuide.md +0 -93
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_AdvancedGuide.md +0 -2181
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Documentation.md +0 -14
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_FAQ.md +0 -1082
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Primer.md +0 -501
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_PumpManual.md +0 -177
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Samples.md +0 -14
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_XcodeGuide.md +0 -93
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.sln +0 -45
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.vcproj +0 -126
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest.sln +0 -45
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest.vcproj +0 -126
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main-md.vcproj +0 -129
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main.vcproj +0 -129
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test-md.vcproj +0 -164
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test.vcproj +0 -164
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest-md.vcproj +0 -147
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest.vcproj +0 -147
- data/ext/rj_schema/rapidjson/thirdparty/gtest/travis.sh +0 -15
@@ -26,9 +26,9 @@
|
|
26
26
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
27
27
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
28
28
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
29
|
+
//
|
29
30
|
|
30
31
|
#include <stdio.h>
|
31
|
-
|
32
32
|
#include "gtest/gtest.h"
|
33
33
|
|
34
34
|
GTEST_API_ int main(int argc, char **argv) {
|
@@ -0,0 +1,396 @@
|
|
1
|
+
# Copyright 2017 Google Inc.
|
2
|
+
# All Rights Reserved.
|
3
|
+
#
|
4
|
+
#
|
5
|
+
# Redistribution and use in source and binary forms, with or without
|
6
|
+
# modification, are permitted provided that the following conditions are
|
7
|
+
# met:
|
8
|
+
#
|
9
|
+
# * Redistributions of source code must retain the above copyright
|
10
|
+
# notice, this list of conditions and the following disclaimer.
|
11
|
+
# * Redistributions in binary form must reproduce the above
|
12
|
+
# copyright notice, this list of conditions and the following disclaimer
|
13
|
+
# in the documentation and/or other materials provided with the
|
14
|
+
# distribution.
|
15
|
+
# * Neither the name of Google Inc. nor the names of its
|
16
|
+
# contributors may be used to endorse or promote products derived from
|
17
|
+
# this software without specific prior written permission.
|
18
|
+
#
|
19
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
20
|
+
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
21
|
+
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
22
|
+
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
23
|
+
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
24
|
+
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
25
|
+
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
26
|
+
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
27
|
+
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
28
|
+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
29
|
+
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
30
|
+
#
|
31
|
+
# Author: misterg@google.com (Gennadiy Civil)
|
32
|
+
#
|
33
|
+
# Bazel BUILD for The Google C++ Testing Framework (Google Test)
|
34
|
+
|
35
|
+
licenses(["notice"])
|
36
|
+
|
37
|
+
""" gtest own tests """
|
38
|
+
|
39
|
+
#on windows exclude gtest-tuple.h and gtest-tuple_test.cc
|
40
|
+
cc_test(
|
41
|
+
name = "gtest_all_test",
|
42
|
+
size = "small",
|
43
|
+
srcs = glob(
|
44
|
+
include = [
|
45
|
+
"gtest-*.cc",
|
46
|
+
"*.h",
|
47
|
+
"googletest/include/gtest/**/*.h",
|
48
|
+
],
|
49
|
+
exclude = [
|
50
|
+
"gtest-unittest-api_test.cc",
|
51
|
+
"gtest-tuple_test.cc",
|
52
|
+
"googletest/src/gtest-all.cc",
|
53
|
+
"gtest_all_test.cc",
|
54
|
+
"gtest-death-test_ex_test.cc",
|
55
|
+
"gtest-listener_test.cc",
|
56
|
+
"gtest-unittest-api_test.cc",
|
57
|
+
"gtest-param-test_test.cc",
|
58
|
+
],
|
59
|
+
) + select({
|
60
|
+
"//:windows": [],
|
61
|
+
"//:windows_msvc": [],
|
62
|
+
"//conditions:default": [
|
63
|
+
"gtest-tuple_test.cc",
|
64
|
+
],
|
65
|
+
}),
|
66
|
+
copts = select({
|
67
|
+
"//:windows": ["-DGTEST_USE_OWN_TR1_TUPLE=0"],
|
68
|
+
"//:windows_msvc": ["-DGTEST_USE_OWN_TR1_TUPLE=0"],
|
69
|
+
"//conditions:default": ["-DGTEST_USE_OWN_TR1_TUPLE=1"],
|
70
|
+
}),
|
71
|
+
includes = [
|
72
|
+
"googletest",
|
73
|
+
"googletest/include",
|
74
|
+
"googletest/include/internal",
|
75
|
+
"googletest/test",
|
76
|
+
],
|
77
|
+
linkopts = select({
|
78
|
+
"//:windows": [],
|
79
|
+
"//:windows_msvc": [],
|
80
|
+
"//conditions:default": [
|
81
|
+
"-pthread",
|
82
|
+
],
|
83
|
+
}),
|
84
|
+
deps = ["//:gtest_main"],
|
85
|
+
)
|
86
|
+
|
87
|
+
#These googletest tests have their own main()
|
88
|
+
cc_test(
|
89
|
+
name = "gtest-listener_test",
|
90
|
+
size = "small",
|
91
|
+
srcs = [
|
92
|
+
"gtest-listener_test.cc",
|
93
|
+
],
|
94
|
+
deps = [
|
95
|
+
"//:gtest",
|
96
|
+
],
|
97
|
+
)
|
98
|
+
|
99
|
+
cc_test(
|
100
|
+
name = "gtest-unittest-api_test",
|
101
|
+
size = "small",
|
102
|
+
srcs = [
|
103
|
+
"gtest-unittest-api_test.cc",
|
104
|
+
],
|
105
|
+
deps = [
|
106
|
+
"//:gtest",
|
107
|
+
],
|
108
|
+
)
|
109
|
+
|
110
|
+
cc_test(
|
111
|
+
name = "gtest-param-test_test",
|
112
|
+
size = "small",
|
113
|
+
srcs = [
|
114
|
+
"gtest-param-test2_test.cc",
|
115
|
+
"gtest-param-test_test.cc",
|
116
|
+
"gtest-param-test_test.h",
|
117
|
+
],
|
118
|
+
deps = [
|
119
|
+
"//:gtest",
|
120
|
+
],
|
121
|
+
)
|
122
|
+
|
123
|
+
cc_test(
|
124
|
+
name = "gtest_unittest",
|
125
|
+
size = "small",
|
126
|
+
srcs = ["gtest_unittest.cc"],
|
127
|
+
args = ["--heap_check=strict"],
|
128
|
+
shard_count = 2,
|
129
|
+
deps = ["//:gtest_main"],
|
130
|
+
)
|
131
|
+
|
132
|
+
# Py tests
|
133
|
+
|
134
|
+
py_library(
|
135
|
+
name = "gtest_test_utils",
|
136
|
+
testonly = 1,
|
137
|
+
srcs = ["gtest_test_utils.py"],
|
138
|
+
|
139
|
+
)
|
140
|
+
|
141
|
+
cc_binary(
|
142
|
+
name = "gtest_help_test_",
|
143
|
+
testonly = 1,
|
144
|
+
srcs = ["gtest_help_test_.cc"],
|
145
|
+
deps = ["//:gtest_main"],
|
146
|
+
)
|
147
|
+
py_test(
|
148
|
+
name = "gtest_help_test",
|
149
|
+
size = "small",
|
150
|
+
srcs = ["gtest_help_test.py"],
|
151
|
+
data = [":gtest_help_test_"],
|
152
|
+
deps = [":gtest_test_utils"],
|
153
|
+
)
|
154
|
+
|
155
|
+
cc_binary(
|
156
|
+
name = "gtest_output_test_",
|
157
|
+
testonly = 1,
|
158
|
+
srcs = ["gtest_output_test_.cc"],
|
159
|
+
deps = ["//:gtest"],
|
160
|
+
)
|
161
|
+
|
162
|
+
py_test(
|
163
|
+
name = "gtest_output_test",
|
164
|
+
size = "small",
|
165
|
+
srcs = ["gtest_output_test.py"],
|
166
|
+
data = [
|
167
|
+
"gtest_output_test_golden_lin.txt",
|
168
|
+
":gtest_output_test_",
|
169
|
+
],
|
170
|
+
deps = [":gtest_test_utils"],
|
171
|
+
)
|
172
|
+
|
173
|
+
cc_binary(
|
174
|
+
name = "gtest_color_test_",
|
175
|
+
testonly = 1,
|
176
|
+
srcs = ["gtest_color_test_.cc"],
|
177
|
+
deps = ["//:gtest"],
|
178
|
+
)
|
179
|
+
py_test(
|
180
|
+
name = "gtest_color_test",
|
181
|
+
size = "small",
|
182
|
+
srcs = ["gtest_color_test.py"],
|
183
|
+
data = [":gtest_color_test_"],
|
184
|
+
deps = [":gtest_test_utils"],
|
185
|
+
)
|
186
|
+
|
187
|
+
cc_binary(
|
188
|
+
name = "gtest_env_var_test_",
|
189
|
+
testonly = 1,
|
190
|
+
srcs = ["gtest_env_var_test_.cc"],
|
191
|
+
deps = ["//:gtest"],
|
192
|
+
)
|
193
|
+
|
194
|
+
py_test(
|
195
|
+
name = "gtest_env_var_test",
|
196
|
+
size = "small",
|
197
|
+
srcs = ["gtest_env_var_test.py"],
|
198
|
+
data = [":gtest_env_var_test_"],
|
199
|
+
deps = [":gtest_test_utils"],
|
200
|
+
)
|
201
|
+
|
202
|
+
cc_binary(
|
203
|
+
name = "gtest_filter_unittest_",
|
204
|
+
testonly = 1,
|
205
|
+
srcs = ["gtest_filter_unittest_.cc"],
|
206
|
+
deps = ["//:gtest"],
|
207
|
+
)
|
208
|
+
|
209
|
+
py_test(
|
210
|
+
name = "gtest_filter_unittest",
|
211
|
+
size = "small",
|
212
|
+
srcs = ["gtest_filter_unittest.py"],
|
213
|
+
data = [":gtest_filter_unittest_"],
|
214
|
+
deps = [":gtest_test_utils"],
|
215
|
+
)
|
216
|
+
|
217
|
+
cc_binary(
|
218
|
+
name = "gtest_break_on_failure_unittest_",
|
219
|
+
testonly = 1,
|
220
|
+
srcs = ["gtest_break_on_failure_unittest_.cc"],
|
221
|
+
deps = ["//:gtest"],
|
222
|
+
)
|
223
|
+
|
224
|
+
py_test(
|
225
|
+
name = "gtest_break_on_failure_unittest",
|
226
|
+
size = "small",
|
227
|
+
srcs = ["gtest_break_on_failure_unittest.py"],
|
228
|
+
data = [":gtest_break_on_failure_unittest_"],
|
229
|
+
deps = [":gtest_test_utils"],
|
230
|
+
)
|
231
|
+
|
232
|
+
cc_test(
|
233
|
+
name = "gtest_assert_by_exception_test",
|
234
|
+
size = "small",
|
235
|
+
srcs = ["gtest_assert_by_exception_test.cc"],
|
236
|
+
deps = ["//:gtest"],
|
237
|
+
)
|
238
|
+
|
239
|
+
cc_binary(
|
240
|
+
name = "gtest_throw_on_failure_test_",
|
241
|
+
testonly = 1,
|
242
|
+
srcs = ["gtest_throw_on_failure_test_.cc"],
|
243
|
+
deps = ["//:gtest"],
|
244
|
+
)
|
245
|
+
|
246
|
+
py_test(
|
247
|
+
name = "gtest_throw_on_failure_test",
|
248
|
+
size = "small",
|
249
|
+
srcs = ["gtest_throw_on_failure_test.py"],
|
250
|
+
data = [":gtest_throw_on_failure_test_"],
|
251
|
+
deps = [":gtest_test_utils"],
|
252
|
+
)
|
253
|
+
|
254
|
+
cc_binary(
|
255
|
+
name = "gtest_list_tests_unittest_",
|
256
|
+
testonly = 1,
|
257
|
+
srcs = ["gtest_list_tests_unittest_.cc"],
|
258
|
+
deps = ["//:gtest"],
|
259
|
+
)
|
260
|
+
|
261
|
+
py_test(
|
262
|
+
name = "gtest_list_tests_unittest",
|
263
|
+
size = "small",
|
264
|
+
srcs = ["gtest_list_tests_unittest.py"],
|
265
|
+
data = [":gtest_list_tests_unittest_"],
|
266
|
+
deps = [":gtest_test_utils"],
|
267
|
+
)
|
268
|
+
|
269
|
+
cc_binary(
|
270
|
+
name = "gtest_shuffle_test_",
|
271
|
+
srcs = ["gtest_shuffle_test_.cc"],
|
272
|
+
deps = ["//:gtest"],
|
273
|
+
)
|
274
|
+
|
275
|
+
py_test(
|
276
|
+
name = "gtest_shuffle_test",
|
277
|
+
size = "small",
|
278
|
+
srcs = ["gtest_shuffle_test.py"],
|
279
|
+
data = [":gtest_shuffle_test_"],
|
280
|
+
deps = [":gtest_test_utils"],
|
281
|
+
)
|
282
|
+
|
283
|
+
cc_binary(
|
284
|
+
name = "gtest_catch_exceptions_no_ex_test_",
|
285
|
+
testonly = 1,
|
286
|
+
srcs = ["gtest_catch_exceptions_test_.cc"],
|
287
|
+
deps = ["//:gtest_main"],
|
288
|
+
)
|
289
|
+
|
290
|
+
cc_binary(
|
291
|
+
name = "gtest_catch_exceptions_ex_test_",
|
292
|
+
testonly = 1,
|
293
|
+
srcs = ["gtest_catch_exceptions_test_.cc"],
|
294
|
+
copts = ["-fexceptions"],
|
295
|
+
deps = ["//:gtest_main"],
|
296
|
+
)
|
297
|
+
|
298
|
+
py_test(
|
299
|
+
name = "gtest_catch_exceptions_test",
|
300
|
+
size = "small",
|
301
|
+
srcs = ["gtest_catch_exceptions_test.py"],
|
302
|
+
data = [
|
303
|
+
":gtest_catch_exceptions_ex_test_",
|
304
|
+
":gtest_catch_exceptions_no_ex_test_",
|
305
|
+
],
|
306
|
+
deps = [":gtest_test_utils"],
|
307
|
+
)
|
308
|
+
|
309
|
+
cc_binary(
|
310
|
+
name = "gtest_xml_output_unittest_",
|
311
|
+
testonly = 1,
|
312
|
+
srcs = ["gtest_xml_output_unittest_.cc"],
|
313
|
+
deps = ["//:gtest"],
|
314
|
+
)
|
315
|
+
|
316
|
+
cc_test(
|
317
|
+
name = "gtest_no_test_unittest",
|
318
|
+
size = "small",
|
319
|
+
srcs = ["gtest_no_test_unittest.cc"],
|
320
|
+
deps = ["//:gtest"],
|
321
|
+
)
|
322
|
+
|
323
|
+
py_test(
|
324
|
+
name = "gtest_xml_output_unittest",
|
325
|
+
size = "small",
|
326
|
+
srcs = [
|
327
|
+
"gtest_xml_output_unittest.py",
|
328
|
+
"gtest_xml_test_utils.py",
|
329
|
+
],
|
330
|
+
data = [
|
331
|
+
# We invoke gtest_no_test_unittest to verify the XML output
|
332
|
+
# when the test program contains no test definition.
|
333
|
+
":gtest_no_test_unittest",
|
334
|
+
":gtest_xml_output_unittest_",
|
335
|
+
],
|
336
|
+
deps = [":gtest_test_utils"],
|
337
|
+
)
|
338
|
+
|
339
|
+
cc_binary(
|
340
|
+
name = "gtest_xml_outfile1_test_",
|
341
|
+
testonly = 1,
|
342
|
+
srcs = ["gtest_xml_outfile1_test_.cc"],
|
343
|
+
deps = ["//:gtest_main"],
|
344
|
+
)
|
345
|
+
|
346
|
+
cc_binary(
|
347
|
+
name = "gtest_xml_outfile2_test_",
|
348
|
+
testonly = 1,
|
349
|
+
srcs = ["gtest_xml_outfile2_test_.cc"],
|
350
|
+
deps = ["//:gtest_main"],
|
351
|
+
)
|
352
|
+
|
353
|
+
py_test(
|
354
|
+
name = "gtest_xml_outfiles_test",
|
355
|
+
size = "small",
|
356
|
+
srcs = [
|
357
|
+
"gtest_xml_outfiles_test.py",
|
358
|
+
"gtest_xml_test_utils.py",
|
359
|
+
],
|
360
|
+
data = [
|
361
|
+
":gtest_xml_outfile1_test_",
|
362
|
+
":gtest_xml_outfile2_test_",
|
363
|
+
],
|
364
|
+
deps = [":gtest_test_utils"],
|
365
|
+
)
|
366
|
+
|
367
|
+
cc_binary(
|
368
|
+
name = "gtest_uninitialized_test_",
|
369
|
+
testonly = 1,
|
370
|
+
srcs = ["gtest_uninitialized_test_.cc"],
|
371
|
+
deps = ["//:gtest"],
|
372
|
+
)
|
373
|
+
|
374
|
+
py_test(
|
375
|
+
name = "gtest_uninitialized_test",
|
376
|
+
size = "medium",
|
377
|
+
srcs = ["gtest_uninitialized_test.py"],
|
378
|
+
data = [":gtest_uninitialized_test_"],
|
379
|
+
deps = [":gtest_test_utils"],
|
380
|
+
)
|
381
|
+
|
382
|
+
cc_binary(
|
383
|
+
name = "gtest_testbridge_test_",
|
384
|
+
testonly = 1,
|
385
|
+
srcs = ["gtest_testbridge_test_.cc"],
|
386
|
+
deps = ["//:gtest_main"],
|
387
|
+
)
|
388
|
+
|
389
|
+
# Tests that filtering via testbridge works
|
390
|
+
py_test(
|
391
|
+
name = "gtest_testbridge_test",
|
392
|
+
size = "small",
|
393
|
+
srcs = ["gtest_testbridge_test.py"],
|
394
|
+
data = [":gtest_testbridge_test_"],
|
395
|
+
deps = [":gtest_test_utils"],
|
396
|
+
)
|
@@ -56,15 +56,7 @@ using testing::internal::AlwaysTrue;
|
|
56
56
|
# endif // GTEST_OS_LINUX
|
57
57
|
|
58
58
|
# include "gtest/gtest-spi.h"
|
59
|
-
|
60
|
-
// Indicates that this translation unit is part of Google Test's
|
61
|
-
// implementation. It must come before gtest-internal-inl.h is
|
62
|
-
// included, or there will be a compiler error. This trick is to
|
63
|
-
// prevent a user from accidentally including gtest-internal-inl.h in
|
64
|
-
// his code.
|
65
|
-
# define GTEST_IMPLEMENTATION_ 1
|
66
59
|
# include "src/gtest-internal-inl.h"
|
67
|
-
# undef GTEST_IMPLEMENTATION_
|
68
60
|
|
69
61
|
namespace posix = ::testing::internal::posix;
|
70
62
|
|
@@ -208,7 +200,7 @@ int DieInDebugElse12(int* sideeffect) {
|
|
208
200
|
return 12;
|
209
201
|
}
|
210
202
|
|
211
|
-
# if GTEST_OS_WINDOWS
|
203
|
+
# if GTEST_OS_WINDOWS || GTEST_OS_FUCHSIA
|
212
204
|
|
213
205
|
// Tests the ExitedWithCode predicate.
|
214
206
|
TEST(ExitStatusPredicateTest, ExitedWithCode) {
|
@@ -280,7 +272,7 @@ TEST(ExitStatusPredicateTest, KilledBySignal) {
|
|
280
272
|
EXPECT_FALSE(pred_kill(status_segv));
|
281
273
|
}
|
282
274
|
|
283
|
-
# endif // GTEST_OS_WINDOWS
|
275
|
+
# endif // GTEST_OS_WINDOWS || GTEST_OS_FUCHSIA
|
284
276
|
|
285
277
|
// Tests that the death test macros expand to code which may or may not
|
286
278
|
// be followed by operator<<, and that in either case the complete text
|
@@ -313,14 +305,14 @@ void DieWithEmbeddedNul() {
|
|
313
305
|
}
|
314
306
|
|
315
307
|
# if GTEST_USES_PCRE
|
308
|
+
|
316
309
|
// Tests that EXPECT_DEATH and ASSERT_DEATH work when the error
|
317
310
|
// message has a NUL character in it.
|
318
311
|
TEST_F(TestForDeathTest, EmbeddedNulInMessage) {
|
319
|
-
// TODO(wan@google.com): <regex.h> doesn't support matching strings
|
320
|
-
// with embedded NUL characters - find a way to workaround it.
|
321
312
|
EXPECT_DEATH(DieWithEmbeddedNul(), "my null world");
|
322
313
|
ASSERT_DEATH(DieWithEmbeddedNul(), "my null world");
|
323
314
|
}
|
315
|
+
|
324
316
|
# endif // GTEST_USES_PCRE
|
325
317
|
|
326
318
|
// Tests that death test macros expand to code which interacts well with switch
|
@@ -505,7 +497,7 @@ TEST_F(TestForDeathTest, AcceptsAnythingConvertibleToRE) {
|
|
505
497
|
|
506
498
|
# if GTEST_HAS_GLOBAL_STRING
|
507
499
|
|
508
|
-
const string regex_str(regex_c_str);
|
500
|
+
const ::string regex_str(regex_c_str);
|
509
501
|
EXPECT_DEATH(GlobalFunction(), regex_str);
|
510
502
|
|
511
503
|
# endif // GTEST_HAS_GLOBAL_STRING
|
@@ -625,7 +617,11 @@ TEST_F(TestForDeathTest, ReturnIsFailure) {
|
|
625
617
|
TEST_F(TestForDeathTest, TestExpectDebugDeath) {
|
626
618
|
int sideeffect = 0;
|
627
619
|
|
628
|
-
|
620
|
+
// Put the regex in a local variable to make sure we don't get an "unused"
|
621
|
+
// warning in opt mode.
|
622
|
+
const char* regex = "death.*DieInDebugElse12";
|
623
|
+
|
624
|
+
EXPECT_DEBUG_DEATH(DieInDebugElse12(&sideeffect), regex)
|
629
625
|
<< "Must accept a streamed message";
|
630
626
|
|
631
627
|
# ifdef NDEBUG
|
@@ -791,8 +787,9 @@ static void TestExitMacros() {
|
|
791
787
|
// See http://msdn.microsoft.com/en-us/library/dwwzkt4c(VS.71).aspx.
|
792
788
|
EXPECT_EXIT(raise(SIGABRT), testing::ExitedWithCode(3), "") << "b_ar";
|
793
789
|
|
794
|
-
#
|
790
|
+
# elif !GTEST_OS_FUCHSIA
|
795
791
|
|
792
|
+
// Fuchsia has no unix signals.
|
796
793
|
EXPECT_EXIT(raise(SIGKILL), testing::KilledBySignal(SIGKILL), "") << "foo";
|
797
794
|
ASSERT_EXIT(raise(SIGUSR2), testing::KilledBySignal(SIGUSR2), "") << "bar";
|
798
795
|
|