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
@@ -0,0 +1,60 @@
|
|
1
|
+
# Copyright 2018, 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
|
+
"""Unit test utilities for gtest_json_output."""
|
31
|
+
|
32
|
+
import re
|
33
|
+
|
34
|
+
|
35
|
+
def normalize(obj):
|
36
|
+
"""Normalize output object.
|
37
|
+
|
38
|
+
Args:
|
39
|
+
obj: Google Test's JSON output object to normalize.
|
40
|
+
|
41
|
+
Returns:
|
42
|
+
Normalized output without any references to transient information that may
|
43
|
+
change from run to run.
|
44
|
+
"""
|
45
|
+
def _normalize(key, value):
|
46
|
+
if key == 'time':
|
47
|
+
return re.sub(r'^\d+(\.\d+)?s$', '*', value)
|
48
|
+
elif key == 'timestamp':
|
49
|
+
return re.sub(r'^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\dZ$', '*', value)
|
50
|
+
elif key == 'failure':
|
51
|
+
value = re.sub(r'^.*[/\\](.*:)\d+\n', '\\1*\n', value)
|
52
|
+
return re.sub(r'Stack trace:\n(.|\n)*', 'Stack trace:\n*', value)
|
53
|
+
else:
|
54
|
+
return normalize(value)
|
55
|
+
if isinstance(obj, dict):
|
56
|
+
return {k: _normalize(k, v) for k, v in obj.items()}
|
57
|
+
if isinstance(obj, list):
|
58
|
+
return [normalize(x) for x in obj]
|
59
|
+
else:
|
60
|
+
return obj
|
@@ -39,9 +39,8 @@ Google Test) the command line flags.
|
|
39
39
|
|
40
40
|
__author__ = 'phanna@google.com (Patrick Hanna)'
|
41
41
|
|
42
|
-
import gtest_test_utils
|
43
42
|
import re
|
44
|
-
|
43
|
+
import gtest_test_utils
|
45
44
|
|
46
45
|
# Constants.
|
47
46
|
|
@@ -71,7 +70,7 @@ FooTest\.
|
|
71
70
|
TypedTest/0\. # TypeParam = (VeryLo{245}|class VeryLo{239})\.\.\.
|
72
71
|
TestA
|
73
72
|
TestB
|
74
|
-
TypedTest/1\. # TypeParam = int\s*\*
|
73
|
+
TypedTest/1\. # TypeParam = int\s*\*( __ptr64)?
|
75
74
|
TestA
|
76
75
|
TestB
|
77
76
|
TypedTest/2\. # TypeParam = .*MyArray<bool,\s*42>
|
@@ -80,7 +79,7 @@ TypedTest/2\. # TypeParam = .*MyArray<bool,\s*42>
|
|
80
79
|
My/TypeParamTest/0\. # TypeParam = (VeryLo{245}|class VeryLo{239})\.\.\.
|
81
80
|
TestA
|
82
81
|
TestB
|
83
|
-
My/TypeParamTest/1\. # TypeParam = int\s*\*
|
82
|
+
My/TypeParamTest/1\. # TypeParam = int\s*\*( __ptr64)?
|
84
83
|
TestA
|
85
84
|
TestB
|
86
85
|
My/TypeParamTest/2\. # TypeParam = .*MyArray<bool,\s*42>
|
@@ -123,6 +122,7 @@ def Run(args):
|
|
123
122
|
|
124
123
|
# The unit test.
|
125
124
|
|
125
|
+
|
126
126
|
class GTestListTestsUnitTest(gtest_test_utils.TestCase):
|
127
127
|
"""Tests using the --gtest_list_tests flag to list all tests."""
|
128
128
|
|
@@ -29,7 +29,8 @@
|
|
29
29
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
30
30
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
31
31
|
|
32
|
-
"""Tests the text output of Google C++ Testing Framework.
|
32
|
+
"""Tests the text output of Google C++ Testing and Mocking Framework.
|
33
|
+
|
33
34
|
|
34
35
|
SYNOPSIS
|
35
36
|
gtest_output_test.py --build_dir=BUILD/DIR --gengolden
|
@@ -51,6 +52,7 @@ import gtest_test_utils
|
|
51
52
|
GENGOLDEN_FLAG = '--gengolden'
|
52
53
|
CATCH_EXCEPTIONS_ENV_VAR_NAME = 'GTEST_CATCH_EXCEPTIONS'
|
53
54
|
|
55
|
+
IS_LINUX = os.name == 'posix' and os.uname()[0] == 'Linux'
|
54
56
|
IS_WINDOWS = os.name == 'nt'
|
55
57
|
|
56
58
|
# TODO(vladl@google.com): remove the _lin suffix.
|
@@ -99,7 +101,8 @@ def RemoveLocations(test_output):
|
|
99
101
|
'FILE_NAME:#: '.
|
100
102
|
"""
|
101
103
|
|
102
|
-
return re.sub(r'.*[/\\](
|
104
|
+
return re.sub(r'.*[/\\]((gtest_output_test_|gtest).cc)(\:\d+|\(\d+\))\: ',
|
105
|
+
r'\1:#: ', test_output)
|
103
106
|
|
104
107
|
|
105
108
|
def RemoveStackTraceDetails(output):
|
@@ -249,11 +252,12 @@ test_list = GetShellCommandOutput(COMMAND_LIST_TESTS)
|
|
249
252
|
SUPPORTS_DEATH_TESTS = 'DeathTest' in test_list
|
250
253
|
SUPPORTS_TYPED_TESTS = 'TypedTest' in test_list
|
251
254
|
SUPPORTS_THREADS = 'ExpectFailureWithThreadsTest' in test_list
|
252
|
-
SUPPORTS_STACK_TRACES =
|
255
|
+
SUPPORTS_STACK_TRACES = IS_LINUX
|
253
256
|
|
254
257
|
CAN_GENERATE_GOLDEN_FILE = (SUPPORTS_DEATH_TESTS and
|
255
258
|
SUPPORTS_TYPED_TESTS and
|
256
259
|
SUPPORTS_THREADS and
|
260
|
+
SUPPORTS_STACK_TRACES and
|
257
261
|
not IS_WINDOWS)
|
258
262
|
|
259
263
|
class GTestOutputTest(gtest_test_utils.TestCase):
|
@@ -279,7 +283,7 @@ class GTestOutputTest(gtest_test_utils.TestCase):
|
|
279
283
|
def testOutput(self):
|
280
284
|
output = GetOutputOfAllCommands()
|
281
285
|
|
282
|
-
golden_file = open(GOLDEN_PATH, '
|
286
|
+
golden_file = open(GOLDEN_PATH, 'rb')
|
283
287
|
# A mis-configured source control system can cause \r appear in EOL
|
284
288
|
# sequences when we read the golden file irrespective of an operating
|
285
289
|
# system used. Therefore, we need to strip those \r's from newlines
|
@@ -330,9 +334,9 @@ if __name__ == '__main__':
|
|
330
334
|
else:
|
331
335
|
message = (
|
332
336
|
"""Unable to write a golden file when compiled in an environment
|
333
|
-
that does not support all the required features (death tests,
|
334
|
-
and multiple threads).
|
335
|
-
|
337
|
+
that does not support all the required features (death tests,
|
338
|
+
typed tests, stack traces, and multiple threads).
|
339
|
+
Please build this test and generate the golden file using Blaze on Linux.""")
|
336
340
|
|
337
341
|
sys.stderr.write(message)
|
338
342
|
sys.exit(1)
|
@@ -37,15 +37,7 @@
|
|
37
37
|
|
38
38
|
#include "gtest/gtest-spi.h"
|
39
39
|
#include "gtest/gtest.h"
|
40
|
-
|
41
|
-
// Indicates that this translation unit is part of Google Test's
|
42
|
-
// implementation. It must come before gtest-internal-inl.h is
|
43
|
-
// included, or there will be a compiler error. This trick is to
|
44
|
-
// prevent a user from accidentally including gtest-internal-inl.h in
|
45
|
-
// his code.
|
46
|
-
#define GTEST_IMPLEMENTATION_ 1
|
47
40
|
#include "src/gtest-internal-inl.h"
|
48
|
-
#undef GTEST_IMPLEMENTATION_
|
49
41
|
|
50
42
|
#include <stdlib.h>
|
51
43
|
|
@@ -176,6 +168,16 @@ void SubWithTrace(int n) {
|
|
176
168
|
SubWithoutTrace(n);
|
177
169
|
}
|
178
170
|
|
171
|
+
TEST(SCOPED_TRACETest, AcceptedValues) {
|
172
|
+
SCOPED_TRACE("literal string");
|
173
|
+
SCOPED_TRACE(std::string("std::string"));
|
174
|
+
SCOPED_TRACE(1337); // streamable type
|
175
|
+
const char* null_value = NULL;
|
176
|
+
SCOPED_TRACE(null_value);
|
177
|
+
|
178
|
+
ADD_FAILURE() << "Just checking that all these values work fine.";
|
179
|
+
}
|
180
|
+
|
179
181
|
// Tests that SCOPED_TRACE() obeys lexical scopes.
|
180
182
|
TEST(SCOPED_TRACETest, ObeysScopes) {
|
181
183
|
printf("(expected to fail)\n");
|
@@ -323,6 +325,13 @@ TEST(SCOPED_TRACETest, WorksConcurrently) {
|
|
323
325
|
}
|
324
326
|
#endif // GTEST_IS_THREADSAFE
|
325
327
|
|
328
|
+
// Tests basic functionality of the ScopedTrace utility (most of its features
|
329
|
+
// are already tested in SCOPED_TRACETest).
|
330
|
+
TEST(ScopedTraceTest, WithExplicitFileAndLine) {
|
331
|
+
testing::ScopedTrace trace("explicit_file.cc", 123, "expected trace message");
|
332
|
+
ADD_FAILURE() << "Check that the trace is attached to a particular location.";
|
333
|
+
}
|
334
|
+
|
326
335
|
TEST(DisabledTestsWarningTest,
|
327
336
|
DISABLED_AlsoRunDisabledTestsFlagSuppressesWarning) {
|
328
337
|
// This test body is intentionally empty. Its sole purpose is for
|
@@ -757,8 +766,6 @@ TEST(ExpectFatalFailureTest, FailsWhenStatementThrows) {
|
|
757
766
|
|
758
767
|
// This #ifdef block tests the output of value-parameterized tests.
|
759
768
|
|
760
|
-
#if GTEST_HAS_PARAM_TEST
|
761
|
-
|
762
769
|
std::string ParamNameFunc(const testing::TestParamInfo<std::string>& info) {
|
763
770
|
return info.param;
|
764
771
|
}
|
@@ -779,8 +786,6 @@ INSTANTIATE_TEST_CASE_P(PrintingStrings,
|
|
779
786
|
testing::Values(std::string("a")),
|
780
787
|
ParamNameFunc);
|
781
788
|
|
782
|
-
#endif // GTEST_HAS_PARAM_TEST
|
783
|
-
|
784
789
|
// This #ifdef block tests the output of typed tests.
|
785
790
|
#if GTEST_HAS_TYPED_TEST
|
786
791
|
|
data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_golden_lin.txt
CHANGED
@@ -5,9 +5,10 @@ Value of: false
|
|
5
5
|
Actual: false
|
6
6
|
Expected: true
|
7
7
|
gtest_output_test_.cc:#: Failure
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
Expected equality of these values:
|
9
|
+
2
|
10
|
+
3
|
11
|
+
[0;32m[==========] [mRunning 68 tests from 30 test cases.
|
11
12
|
[0;32m[----------] [mGlobal test environment set-up.
|
12
13
|
FooEnvironment::SetUp() called.
|
13
14
|
BarEnvironment::SetUp() called.
|
@@ -34,21 +35,24 @@ BarEnvironment::SetUp() called.
|
|
34
35
|
[0;32m[----------] [m2 tests from NonfatalFailureTest
|
35
36
|
[0;32m[ RUN ] [mNonfatalFailureTest.EscapesStringOperands
|
36
37
|
gtest_output_test_.cc:#: Failure
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
38
|
+
Expected equality of these values:
|
39
|
+
kGoldenString
|
40
|
+
Which is: "\"Line"
|
41
|
+
actual
|
42
|
+
Which is: "actual \"string\""
|
43
|
+
gtest_output_test_.cc:#: Failure
|
44
|
+
Expected equality of these values:
|
45
|
+
golden
|
46
|
+
Which is: "\"Line"
|
47
|
+
actual
|
48
|
+
Which is: "actual \"string\""
|
46
49
|
[0;31m[ FAILED ] [mNonfatalFailureTest.EscapesStringOperands
|
47
50
|
[0;32m[ RUN ] [mNonfatalFailureTest.DiffForLongStrings
|
48
51
|
gtest_output_test_.cc:#: Failure
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
+
Expected equality of these values:
|
53
|
+
golden_str
|
54
|
+
Which is: "\"Line\0 1\"\nLine 2"
|
55
|
+
"Line 2"
|
52
56
|
With diff:
|
53
57
|
@@ -1,2 @@
|
54
58
|
-\"Line\0 1\"
|
@@ -59,16 +63,18 @@ With diff:
|
|
59
63
|
[0;32m[ RUN ] [mFatalFailureTest.FatalFailureInSubroutine
|
60
64
|
(expecting a failure that x should be 1)
|
61
65
|
gtest_output_test_.cc:#: Failure
|
62
|
-
|
63
|
-
|
64
|
-
|
66
|
+
Expected equality of these values:
|
67
|
+
1
|
68
|
+
x
|
69
|
+
Which is: 2
|
65
70
|
[0;31m[ FAILED ] [mFatalFailureTest.FatalFailureInSubroutine
|
66
71
|
[0;32m[ RUN ] [mFatalFailureTest.FatalFailureInNestedSubroutine
|
67
72
|
(expecting a failure that x should be 1)
|
68
73
|
gtest_output_test_.cc:#: Failure
|
69
|
-
|
70
|
-
|
71
|
-
|
74
|
+
Expected equality of these values:
|
75
|
+
1
|
76
|
+
x
|
77
|
+
Which is: 2
|
72
78
|
[0;31m[ FAILED ] [mFatalFailureTest.FatalFailureInNestedSubroutine
|
73
79
|
[0;32m[ RUN ] [mFatalFailureTest.NonfatalFailureInSubroutine
|
74
80
|
(expecting a failure on false)
|
@@ -89,7 +95,17 @@ i == 3
|
|
89
95
|
gtest_output_test_.cc:#: Failure
|
90
96
|
Expected: (3) >= (a[i]), actual: 3 vs 6
|
91
97
|
[0;31m[ FAILED ] [mLoggingTest.InterleavingLoggingAndAssertions
|
92
|
-
[0;32m[----------] [
|
98
|
+
[0;32m[----------] [m7 tests from SCOPED_TRACETest
|
99
|
+
[0;32m[ RUN ] [mSCOPED_TRACETest.AcceptedValues
|
100
|
+
gtest_output_test_.cc:#: Failure
|
101
|
+
Failed
|
102
|
+
Just checking that all these values work fine.
|
103
|
+
Google Test trace:
|
104
|
+
gtest_output_test_.cc:#: (null)
|
105
|
+
gtest_output_test_.cc:#: 1337
|
106
|
+
gtest_output_test_.cc:#: std::string
|
107
|
+
gtest_output_test_.cc:#: literal string
|
108
|
+
[0;31m[ FAILED ] [mSCOPED_TRACETest.AcceptedValues
|
93
109
|
[0;32m[ RUN ] [mSCOPED_TRACETest.ObeysScopes
|
94
110
|
(expected to fail)
|
95
111
|
gtest_output_test_.cc:#: Failure
|
@@ -107,39 +123,44 @@ This failure is expected, and shouldn't have a trace.
|
|
107
123
|
[0;32m[ RUN ] [mSCOPED_TRACETest.WorksInLoop
|
108
124
|
(expected to fail)
|
109
125
|
gtest_output_test_.cc:#: Failure
|
110
|
-
|
111
|
-
|
112
|
-
|
126
|
+
Expected equality of these values:
|
127
|
+
2
|
128
|
+
n
|
129
|
+
Which is: 1
|
113
130
|
Google Test trace:
|
114
131
|
gtest_output_test_.cc:#: i = 1
|
115
132
|
gtest_output_test_.cc:#: Failure
|
116
|
-
|
117
|
-
|
118
|
-
|
133
|
+
Expected equality of these values:
|
134
|
+
1
|
135
|
+
n
|
136
|
+
Which is: 2
|
119
137
|
Google Test trace:
|
120
138
|
gtest_output_test_.cc:#: i = 2
|
121
139
|
[0;31m[ FAILED ] [mSCOPED_TRACETest.WorksInLoop
|
122
140
|
[0;32m[ RUN ] [mSCOPED_TRACETest.WorksInSubroutine
|
123
141
|
(expected to fail)
|
124
142
|
gtest_output_test_.cc:#: Failure
|
125
|
-
|
126
|
-
|
127
|
-
|
143
|
+
Expected equality of these values:
|
144
|
+
2
|
145
|
+
n
|
146
|
+
Which is: 1
|
128
147
|
Google Test trace:
|
129
148
|
gtest_output_test_.cc:#: n = 1
|
130
149
|
gtest_output_test_.cc:#: Failure
|
131
|
-
|
132
|
-
|
133
|
-
|
150
|
+
Expected equality of these values:
|
151
|
+
1
|
152
|
+
n
|
153
|
+
Which is: 2
|
134
154
|
Google Test trace:
|
135
155
|
gtest_output_test_.cc:#: n = 2
|
136
156
|
[0;31m[ FAILED ] [mSCOPED_TRACETest.WorksInSubroutine
|
137
157
|
[0;32m[ RUN ] [mSCOPED_TRACETest.CanBeNested
|
138
158
|
(expected to fail)
|
139
159
|
gtest_output_test_.cc:#: Failure
|
140
|
-
|
141
|
-
|
142
|
-
|
160
|
+
Expected equality of these values:
|
161
|
+
1
|
162
|
+
n
|
163
|
+
Which is: 2
|
143
164
|
Google Test trace:
|
144
165
|
gtest_output_test_.cc:#: n = 2
|
145
166
|
gtest_output_test_.cc:#:
|
@@ -201,6 +222,14 @@ gtest_output_test_.cc:#: Failure
|
|
201
222
|
Failed
|
202
223
|
Expected failure #6 (in thread A, no trace alive).
|
203
224
|
[0;31m[ FAILED ] [mSCOPED_TRACETest.WorksConcurrently
|
225
|
+
[0;32m[----------] [m1 test from ScopedTraceTest
|
226
|
+
[0;32m[ RUN ] [mScopedTraceTest.WithExplicitFileAndLine
|
227
|
+
gtest_output_test_.cc:#: Failure
|
228
|
+
Failed
|
229
|
+
Check that the trace is attached to a particular location.
|
230
|
+
Google Test trace:
|
231
|
+
explicit_file.cc:123: expected trace message
|
232
|
+
[0;31m[ FAILED ] [mScopedTraceTest.WithExplicitFileAndLine
|
204
233
|
[0;32m[----------] [m1 test from NonFatalFailureInFixtureConstructorTest
|
205
234
|
[0;32m[ RUN ] [mNonFatalFailureInFixtureConstructorTest.FailureInConstructor
|
206
235
|
(expecting 5 failures)
|
@@ -437,9 +466,10 @@ Expected: 1 fatal failure
|
|
437
466
|
[0;32m[ OK ] [mTypedTest/0.Success
|
438
467
|
[0;32m[ RUN ] [mTypedTest/0.Failure
|
439
468
|
gtest_output_test_.cc:#: Failure
|
440
|
-
|
441
|
-
|
442
|
-
|
469
|
+
Expected equality of these values:
|
470
|
+
1
|
471
|
+
TypeParam()
|
472
|
+
Which is: 0
|
443
473
|
Expected failure
|
444
474
|
[0;31m[ FAILED ] [mTypedTest/0.Failure, where TypeParam = int
|
445
475
|
[0;32m[----------] [m2 tests from Unsigned/TypedTestP/0, where TypeParam = unsigned char
|
@@ -447,23 +477,25 @@ Expected failure
|
|
447
477
|
[0;32m[ OK ] [mUnsigned/TypedTestP/0.Success
|
448
478
|
[0;32m[ RUN ] [mUnsigned/TypedTestP/0.Failure
|
449
479
|
gtest_output_test_.cc:#: Failure
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
480
|
+
Expected equality of these values:
|
481
|
+
1U
|
482
|
+
Which is: 1
|
483
|
+
TypeParam()
|
484
|
+
Which is: '\0'
|
454
485
|
Expected failure
|
455
486
|
[0;31m[ FAILED ] [mUnsigned/TypedTestP/0.Failure, where TypeParam = unsigned char
|
456
|
-
[0;32m[----------] [m2 tests from Unsigned/TypedTestP/1, where TypeParam = unsigned
|
487
|
+
[0;32m[----------] [m2 tests from Unsigned/TypedTestP/1, where TypeParam = unsigned
|
457
488
|
[0;32m[ RUN ] [mUnsigned/TypedTestP/1.Success
|
458
489
|
[0;32m[ OK ] [mUnsigned/TypedTestP/1.Success
|
459
490
|
[0;32m[ RUN ] [mUnsigned/TypedTestP/1.Failure
|
460
491
|
gtest_output_test_.cc:#: Failure
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
492
|
+
Expected equality of these values:
|
493
|
+
1U
|
494
|
+
Which is: 1
|
495
|
+
TypeParam()
|
496
|
+
Which is: 0
|
465
497
|
Expected failure
|
466
|
-
[0;31m[ FAILED ] [mUnsigned/TypedTestP/1.Failure, where TypeParam = unsigned
|
498
|
+
[0;31m[ FAILED ] [mUnsigned/TypedTestP/1.Failure, where TypeParam = unsigned
|
467
499
|
[0;32m[----------] [m4 tests from ExpectFailureTest
|
468
500
|
[0;32m[ RUN ] [mExpectFailureTest.ExpectFatalFailure
|
469
501
|
(expecting 1 failure)
|
@@ -597,18 +629,20 @@ Expected non-fatal failure.
|
|
597
629
|
[0;32m[----------] [m1 test from PrintingFailingParams/FailingParamTest
|
598
630
|
[0;32m[ RUN ] [mPrintingFailingParams/FailingParamTest.Fails/0
|
599
631
|
gtest_output_test_.cc:#: Failure
|
600
|
-
|
601
|
-
|
602
|
-
|
632
|
+
Expected equality of these values:
|
633
|
+
1
|
634
|
+
GetParam()
|
635
|
+
Which is: 2
|
603
636
|
[0;31m[ FAILED ] [mPrintingFailingParams/FailingParamTest.Fails/0, where GetParam() = 2
|
604
637
|
[0;32m[----------] [m2 tests from PrintingStrings/ParamTest
|
605
638
|
[0;32m[ RUN ] [mPrintingStrings/ParamTest.Success/a
|
606
639
|
[0;32m[ OK ] [mPrintingStrings/ParamTest.Success/a
|
607
640
|
[0;32m[ RUN ] [mPrintingStrings/ParamTest.Failure/a
|
608
641
|
gtest_output_test_.cc:#: Failure
|
609
|
-
|
610
|
-
|
611
|
-
|
642
|
+
Expected equality of these values:
|
643
|
+
"b"
|
644
|
+
GetParam()
|
645
|
+
Which is: "a"
|
612
646
|
Expected failure
|
613
647
|
[0;31m[ FAILED ] [mPrintingStrings/ParamTest.Failure/a, where GetParam() = "a"
|
614
648
|
[0;32m[----------] [mGlobal test environment tear-down
|
@@ -620,21 +654,23 @@ FooEnvironment::TearDown() called.
|
|
620
654
|
gtest_output_test_.cc:#: Failure
|
621
655
|
Failed
|
622
656
|
Expected fatal failure.
|
623
|
-
[0;32m[==========] [
|
657
|
+
[0;32m[==========] [m68 tests from 30 test cases ran.
|
624
658
|
[0;32m[ PASSED ] [m22 tests.
|
625
|
-
[0;31m[ FAILED ] [
|
659
|
+
[0;31m[ FAILED ] [m46 tests, listed below:
|
626
660
|
[0;31m[ FAILED ] [mNonfatalFailureTest.EscapesStringOperands
|
627
661
|
[0;31m[ FAILED ] [mNonfatalFailureTest.DiffForLongStrings
|
628
662
|
[0;31m[ FAILED ] [mFatalFailureTest.FatalFailureInSubroutine
|
629
663
|
[0;31m[ FAILED ] [mFatalFailureTest.FatalFailureInNestedSubroutine
|
630
664
|
[0;31m[ FAILED ] [mFatalFailureTest.NonfatalFailureInSubroutine
|
631
665
|
[0;31m[ FAILED ] [mLoggingTest.InterleavingLoggingAndAssertions
|
666
|
+
[0;31m[ FAILED ] [mSCOPED_TRACETest.AcceptedValues
|
632
667
|
[0;31m[ FAILED ] [mSCOPED_TRACETest.ObeysScopes
|
633
668
|
[0;31m[ FAILED ] [mSCOPED_TRACETest.WorksInLoop
|
634
669
|
[0;31m[ FAILED ] [mSCOPED_TRACETest.WorksInSubroutine
|
635
670
|
[0;31m[ FAILED ] [mSCOPED_TRACETest.CanBeNested
|
636
671
|
[0;31m[ FAILED ] [mSCOPED_TRACETest.CanBeRepeated
|
637
672
|
[0;31m[ FAILED ] [mSCOPED_TRACETest.WorksConcurrently
|
673
|
+
[0;31m[ FAILED ] [mScopedTraceTest.WithExplicitFileAndLine
|
638
674
|
[0;31m[ FAILED ] [mNonFatalFailureInFixtureConstructorTest.FailureInConstructor
|
639
675
|
[0;31m[ FAILED ] [mFatalFailureInFixtureConstructorTest.FailureInConstructor
|
640
676
|
[0;31m[ FAILED ] [mNonFatalFailureInSetUpTest.FailureInSetUp
|
@@ -657,7 +693,7 @@ Expected fatal failure.
|
|
657
693
|
[0;31m[ FAILED ] [mExpectFatalFailureTest.FailsWhenStatementThrows
|
658
694
|
[0;31m[ FAILED ] [mTypedTest/0.Failure, where TypeParam = int
|
659
695
|
[0;31m[ FAILED ] [mUnsigned/TypedTestP/0.Failure, where TypeParam = unsigned char
|
660
|
-
[0;31m[ FAILED ] [mUnsigned/TypedTestP/1.Failure, where TypeParam = unsigned
|
696
|
+
[0;31m[ FAILED ] [mUnsigned/TypedTestP/1.Failure, where TypeParam = unsigned
|
661
697
|
[0;31m[ FAILED ] [mExpectFailureTest.ExpectFatalFailure
|
662
698
|
[0;31m[ FAILED ] [mExpectFailureTest.ExpectNonFatalFailure
|
663
699
|
[0;31m[ FAILED ] [mExpectFailureTest.ExpectFatalFailureOnAllThreads
|
@@ -668,7 +704,7 @@ Expected fatal failure.
|
|
668
704
|
[0;31m[ FAILED ] [mPrintingFailingParams/FailingParamTest.Fails/0, where GetParam() = 2
|
669
705
|
[0;31m[ FAILED ] [mPrintingStrings/ParamTest.Failure/a, where GetParam() = "a"
|
670
706
|
|
671
|
-
|
707
|
+
46 FAILED TESTS
|
672
708
|
[0;33m YOU HAVE 1 DISABLED TEST
|
673
709
|
|
674
710
|
[mNote: Google Test filter = FatalFailureTest.*:LoggingTest.*
|
@@ -678,16 +714,18 @@ Expected fatal failure.
|
|
678
714
|
[ RUN ] FatalFailureTest.FatalFailureInSubroutine
|
679
715
|
(expecting a failure that x should be 1)
|
680
716
|
gtest_output_test_.cc:#: Failure
|
681
|
-
|
682
|
-
|
683
|
-
|
717
|
+
Expected equality of these values:
|
718
|
+
1
|
719
|
+
x
|
720
|
+
Which is: 2
|
684
721
|
[ FAILED ] FatalFailureTest.FatalFailureInSubroutine (? ms)
|
685
722
|
[ RUN ] FatalFailureTest.FatalFailureInNestedSubroutine
|
686
723
|
(expecting a failure that x should be 1)
|
687
724
|
gtest_output_test_.cc:#: Failure
|
688
|
-
|
689
|
-
|
690
|
-
|
725
|
+
Expected equality of these values:
|
726
|
+
1
|
727
|
+
x
|
728
|
+
Which is: 2
|
691
729
|
[ FAILED ] FatalFailureTest.FatalFailureInNestedSubroutine (? ms)
|
692
730
|
[ RUN ] FatalFailureTest.NonfatalFailureInSubroutine
|
693
731
|
(expecting a failure on false)
|