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.
Files changed (371) hide show
  1. checksums.yaml +4 -4
  2. data/ext/rj_schema/rapidjson/CMakeLists.txt +9 -4
  3. data/ext/rj_schema/rapidjson/RapidJSONConfig.cmake.in +10 -0
  4. data/ext/rj_schema/rapidjson/appveyor.yml +22 -9
  5. data/ext/rj_schema/rapidjson/bin/data/abcde.txt +1 -0
  6. data/ext/rj_schema/rapidjson/bin/unittestschema/address.json +139 -0
  7. data/ext/rj_schema/rapidjson/bin/unittestschema/allOf_address.json +7 -0
  8. data/ext/rj_schema/rapidjson/bin/unittestschema/anyOf_address.json +7 -0
  9. data/ext/rj_schema/rapidjson/bin/unittestschema/oneOf_address.json +7 -0
  10. data/ext/rj_schema/rapidjson/contrib/natvis/rapidjson.natvis +2 -2
  11. data/ext/rj_schema/rapidjson/doc/dom.md +1 -0
  12. data/ext/rj_schema/rapidjson/doc/dom.zh-cn.md +1 -0
  13. data/ext/rj_schema/rapidjson/doc/faq.md +3 -3
  14. data/ext/rj_schema/rapidjson/doc/faq.zh-cn.md +8 -8
  15. data/ext/rj_schema/rapidjson/doc/internals.md +1 -1
  16. data/ext/rj_schema/rapidjson/doc/internals.zh-cn.md +2 -2
  17. data/ext/rj_schema/rapidjson/doc/pointer.zh-cn.md +1 -1
  18. data/ext/rj_schema/rapidjson/doc/sax.md +1 -1
  19. data/ext/rj_schema/rapidjson/doc/sax.zh-cn.md +2 -2
  20. data/ext/rj_schema/rapidjson/doc/stream.md +1 -1
  21. data/ext/rj_schema/rapidjson/doc/tutorial.md +1 -1
  22. data/ext/rj_schema/rapidjson/doc/tutorial.zh-cn.md +7 -6
  23. data/ext/rj_schema/rapidjson/example/CMakeLists.txt +1 -0
  24. data/ext/rj_schema/rapidjson/example/schemavalidator/schemavalidator.cpp +118 -0
  25. data/ext/rj_schema/rapidjson/example/sortkeys/sortkeys.cpp +62 -0
  26. data/ext/rj_schema/rapidjson/example/tutorial/tutorial.cpp +1 -1
  27. data/ext/rj_schema/rapidjson/include/rapidjson/allocators.h +6 -6
  28. data/ext/rj_schema/rapidjson/include/rapidjson/cursorstreamwrapper.h +1 -1
  29. data/ext/rj_schema/rapidjson/include/rapidjson/document.h +124 -35
  30. data/ext/rj_schema/rapidjson/include/rapidjson/encodedstream.h +1 -1
  31. data/ext/rj_schema/rapidjson/include/rapidjson/encodings.h +1 -1
  32. data/ext/rj_schema/rapidjson/include/rapidjson/error/en.h +49 -1
  33. data/ext/rj_schema/rapidjson/include/rapidjson/error/error.h +56 -1
  34. data/ext/rj_schema/rapidjson/include/rapidjson/filereadstream.h +2 -2
  35. data/ext/rj_schema/rapidjson/include/rapidjson/filewritestream.h +1 -1
  36. data/ext/rj_schema/rapidjson/include/rapidjson/fwd.h +2 -2
  37. data/ext/rj_schema/rapidjson/include/rapidjson/internal/biginteger.h +2 -2
  38. data/ext/rj_schema/rapidjson/include/rapidjson/internal/clzll.h +71 -0
  39. data/ext/rj_schema/rapidjson/include/rapidjson/internal/diyfp.h +3 -17
  40. data/ext/rj_schema/rapidjson/include/rapidjson/internal/dtoa.h +1 -1
  41. data/ext/rj_schema/rapidjson/include/rapidjson/internal/ieee754.h +1 -1
  42. data/ext/rj_schema/rapidjson/include/rapidjson/internal/itoa.h +1 -1
  43. data/ext/rj_schema/rapidjson/include/rapidjson/internal/meta.h +1 -1
  44. data/ext/rj_schema/rapidjson/include/rapidjson/internal/pow10.h +1 -1
  45. data/ext/rj_schema/rapidjson/include/rapidjson/internal/regex.h +20 -13
  46. data/ext/rj_schema/rapidjson/include/rapidjson/internal/stack.h +4 -3
  47. data/ext/rj_schema/rapidjson/include/rapidjson/internal/strfunc.h +1 -1
  48. data/ext/rj_schema/rapidjson/include/rapidjson/internal/strtod.h +1 -1
  49. data/ext/rj_schema/rapidjson/include/rapidjson/internal/swap.h +1 -1
  50. data/ext/rj_schema/rapidjson/include/rapidjson/istreamwrapper.h +50 -35
  51. data/ext/rj_schema/rapidjson/include/rapidjson/memorybuffer.h +1 -1
  52. data/ext/rj_schema/rapidjson/include/rapidjson/memorystream.h +1 -1
  53. data/ext/rj_schema/rapidjson/include/rapidjson/ostreamwrapper.h +1 -1
  54. data/ext/rj_schema/rapidjson/include/rapidjson/pointer.h +63 -5
  55. data/ext/rj_schema/rapidjson/include/rapidjson/prettywriter.h +2 -2
  56. data/ext/rj_schema/rapidjson/include/rapidjson/rapidjson.h +63 -1
  57. data/ext/rj_schema/rapidjson/include/rapidjson/reader.h +67 -53
  58. data/ext/rj_schema/rapidjson/include/rapidjson/schema.h +318 -164
  59. data/ext/rj_schema/rapidjson/include/rapidjson/stream.h +1 -1
  60. data/ext/rj_schema/rapidjson/include/rapidjson/stringbuffer.h +1 -1
  61. data/ext/rj_schema/rapidjson/include/rapidjson/writer.h +10 -10
  62. data/ext/rj_schema/rapidjson/readme.md +51 -1
  63. data/ext/rj_schema/rapidjson/readme.zh-cn.md +2 -2
  64. data/ext/rj_schema/rapidjson/test/perftest/misctest.cpp +1 -1
  65. data/ext/rj_schema/rapidjson/test/perftest/perftest.cpp +1 -1
  66. data/ext/rj_schema/rapidjson/test/perftest/perftest.h +1 -1
  67. data/ext/rj_schema/rapidjson/test/perftest/platformtest.cpp +2 -2
  68. data/ext/rj_schema/rapidjson/test/perftest/rapidjsontest.cpp +75 -1
  69. data/ext/rj_schema/rapidjson/test/unittest/CMakeLists.txt +1 -0
  70. data/ext/rj_schema/rapidjson/test/unittest/allocatorstest.cpp +1 -1
  71. data/ext/rj_schema/rapidjson/test/unittest/bigintegertest.cpp +1 -1
  72. data/ext/rj_schema/rapidjson/test/unittest/clzlltest.cpp +34 -0
  73. data/ext/rj_schema/rapidjson/test/unittest/cursorstreamwrappertest.cpp +19 -19
  74. data/ext/rj_schema/rapidjson/test/unittest/documenttest.cpp +1 -1
  75. data/ext/rj_schema/rapidjson/test/unittest/dtoatest.cpp +1 -1
  76. data/ext/rj_schema/rapidjson/test/unittest/encodedstreamtest.cpp +1 -1
  77. data/ext/rj_schema/rapidjson/test/unittest/encodingstest.cpp +1 -1
  78. data/ext/rj_schema/rapidjson/test/unittest/filestreamtest.cpp +45 -2
  79. data/ext/rj_schema/rapidjson/test/unittest/fwdtest.cpp +1 -1
  80. data/ext/rj_schema/rapidjson/test/unittest/istreamwrappertest.cpp +10 -10
  81. data/ext/rj_schema/rapidjson/test/unittest/itoatest.cpp +8 -8
  82. data/ext/rj_schema/rapidjson/test/unittest/jsoncheckertest.cpp +1 -1
  83. data/ext/rj_schema/rapidjson/test/unittest/namespacetest.cpp +1 -1
  84. data/ext/rj_schema/rapidjson/test/unittest/ostreamwrappertest.cpp +1 -1
  85. data/ext/rj_schema/rapidjson/test/unittest/pointertest.cpp +157 -16
  86. data/ext/rj_schema/rapidjson/test/unittest/prettywritertest.cpp +1 -1
  87. data/ext/rj_schema/rapidjson/test/unittest/readertest.cpp +113 -75
  88. data/ext/rj_schema/rapidjson/test/unittest/regextest.cpp +2 -1
  89. data/ext/rj_schema/rapidjson/test/unittest/schematest.cpp +593 -78
  90. data/ext/rj_schema/rapidjson/test/unittest/simdtest.cpp +1 -1
  91. data/ext/rj_schema/rapidjson/test/unittest/strfunctest.cpp +1 -1
  92. data/ext/rj_schema/rapidjson/test/unittest/stringbuffertest.cpp +5 -5
  93. data/ext/rj_schema/rapidjson/test/unittest/strtodtest.cpp +1 -1
  94. data/ext/rj_schema/rapidjson/test/unittest/unittest.cpp +1 -1
  95. data/ext/rj_schema/rapidjson/test/unittest/unittest.h +4 -1
  96. data/ext/rj_schema/rapidjson/test/unittest/valuetest.cpp +12 -12
  97. data/ext/rj_schema/rapidjson/test/unittest/writertest.cpp +1 -1
  98. data/ext/rj_schema/rapidjson/thirdparty/gtest/BUILD.bazel +175 -0
  99. data/ext/rj_schema/rapidjson/thirdparty/gtest/CMakeLists.txt +18 -1
  100. data/ext/rj_schema/rapidjson/thirdparty/gtest/CONTRIBUTING.md +160 -0
  101. data/ext/rj_schema/rapidjson/thirdparty/gtest/LICENSE +28 -0
  102. data/ext/rj_schema/rapidjson/thirdparty/gtest/Makefile.am +14 -0
  103. data/ext/rj_schema/rapidjson/thirdparty/gtest/README.md +16 -35
  104. data/ext/rj_schema/rapidjson/thirdparty/gtest/WORKSPACE +8 -0
  105. data/ext/rj_schema/rapidjson/thirdparty/gtest/appveyor.yml +104 -0
  106. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/build-linux-autotools.sh +44 -0
  107. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/build-linux-bazel.sh +36 -0
  108. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/env-linux.sh +41 -0
  109. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/env-osx.sh +40 -0
  110. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/get-nprocessors.sh +48 -0
  111. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/install-linux.sh +49 -0
  112. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/install-osx.sh +39 -0
  113. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/log-config.sh +51 -0
  114. data/ext/rj_schema/rapidjson/thirdparty/gtest/ci/travis.sh +44 -0
  115. data/ext/rj_schema/rapidjson/thirdparty/gtest/configure.ac +16 -0
  116. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/CHANGES +1 -1
  117. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt +72 -32
  118. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/README.md +53 -42
  119. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/cmake/gmock.pc.in +9 -0
  120. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/cmake/gmock_main.pc.in +9 -0
  121. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/configure.ac +4 -4
  122. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/CheatSheet.md +6 -4
  123. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/CookBook.md +117 -132
  124. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/Documentation.md +7 -4
  125. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/ForDummies.md +20 -12
  126. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/FrequentlyAskedQuestions.md +1 -2
  127. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-actions.h +83 -26
  128. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h +262 -68
  129. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h.pump +45 -6
  130. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h +650 -366
  131. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +76 -20
  132. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h +308 -229
  133. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h.pump +18 -15
  134. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h +87 -26
  135. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h.pump +33 -16
  136. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h +1209 -353
  137. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-matchers.h +33 -0
  138. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-spec-builders.h +159 -88
  139. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock.h +2 -1
  140. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +1 -1
  141. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-matchers.h +3 -4
  142. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h +16 -9
  143. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-internal-utils.h +71 -8
  144. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-port.h +7 -11
  145. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.sln +14 -0
  146. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.vcxproj +69 -6
  147. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_config.props +2 -2
  148. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_main.vcxproj +69 -6
  149. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_test.vcxproj +83 -8
  150. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.sln +14 -0
  151. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.vcxproj +63 -2
  152. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_main.vcxproj +63 -2
  153. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_test.vcxproj +76 -3
  154. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/fuse_gmock_files.py +1 -1
  155. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README +4 -5
  156. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/ast.py +3 -3
  157. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-cardinalities.cc +1 -1
  158. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-internal-utils.cc +36 -6
  159. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-matchers.cc +210 -135
  160. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-spec-builders.cc +108 -48
  161. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock.cc +23 -1
  162. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/BUILD.bazel +123 -0
  163. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-actions_test.cc +166 -2
  164. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-cardinalities_test.cc +1 -1
  165. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-actions_test.cc +64 -62
  166. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-function-mockers_test.cc +43 -18
  167. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-internal-utils_test.cc +11 -9
  168. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-matchers_test.cc +91 -36
  169. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-internal-utils_test.cc +33 -14
  170. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-matchers_test.cc +1286 -167
  171. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-more-actions_test.cc +85 -83
  172. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-nice-strict_test.cc +102 -15
  173. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-spec-builders_test.cc +136 -9
  174. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link2_test.cc +1 -1
  175. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.cc +1 -1
  176. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.h +24 -2
  177. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test.py +8 -5
  178. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_.cc +20 -1
  179. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_golden.txt +8 -1
  180. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_stress_test.cc +3 -2
  181. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_test.cc +44 -2
  182. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_test_utils.py +5 -7
  183. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt +40 -14
  184. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/Makefile.am +60 -31
  185. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/README.md +232 -171
  186. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/cmake/gtest.pc.in +9 -0
  187. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/cmake/gtest_main.pc.in +10 -0
  188. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/cmake/internal_utils.cmake +54 -16
  189. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/configure.ac +1 -1
  190. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/Pkgconfig.md +146 -0
  191. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/PumpManual.md +2 -2
  192. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/XcodeGuide.md +6 -6
  193. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/{AdvancedGuide.md → advanced.md} +260 -26
  194. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/{FAQ.md → faq.md} +62 -57
  195. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/{Primer.md → primer.md} +43 -9
  196. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/{Samples.md → samples.md} +0 -0
  197. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-death-test.h +53 -5
  198. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-message.h +1 -2
  199. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h +30 -36
  200. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h.pump +8 -17
  201. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-printers.h +140 -51
  202. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-spi.h +2 -3
  203. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-typed-test.h +4 -3
  204. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest.h +126 -30
  205. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_pred_impl.h +6 -7
  206. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_prod.h +8 -5
  207. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-port.h +6 -5
  208. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest.h +4 -0
  209. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h +13 -57
  210. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-filepath.h +1 -2
  211. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-internal.h +98 -59
  212. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h +34 -41
  213. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +3 -10
  214. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util.h +9 -17
  215. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port-arch.h +8 -1
  216. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port.h +232 -99
  217. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-string.h +3 -3
  218. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h +17 -1
  219. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h.pump +17 -1
  220. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.sln +55 -0
  221. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.vcxproj +149 -0
  222. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest-md.vcxproj.filters +18 -0
  223. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.sln +55 -0
  224. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.vcxproj +149 -0
  225. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest.vcxproj.filters +18 -0
  226. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main-md.vcxproj +154 -0
  227. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main-md.vcxproj.filters +18 -0
  228. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main.vcxproj +162 -0
  229. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_main.vcxproj.filters +18 -0
  230. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test-md.vcxproj +199 -0
  231. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test-md.vcxproj.filters +26 -0
  232. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test.vcxproj +191 -0
  233. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_prod_test.vcxproj.filters +26 -0
  234. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest-md.vcxproj +188 -0
  235. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest-md.vcxproj.filters +18 -0
  236. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest.vcxproj +180 -0
  237. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/2010/gtest_unittest.vcxproj.filters +18 -0
  238. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/prime_tables.h +6 -2
  239. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample1.cc +1 -1
  240. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample10_unittest.cc +0 -4
  241. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample1_unittest.cc +2 -1
  242. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample2_unittest.cc +2 -1
  243. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample3_unittest.cc +7 -6
  244. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample4_unittest.cc +5 -1
  245. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample5_unittest.cc +3 -3
  246. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample6_unittest.cc +2 -1
  247. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample7_unittest.cc +10 -22
  248. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample8_unittest.cc +2 -1
  249. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample9_unittest.cc +0 -3
  250. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/fuse_gtest_files.py +1 -1
  251. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/gen_gtest_pred_impl.py +10 -10
  252. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/upload.py +1 -1
  253. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-all.cc +1 -1
  254. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-death-test.cc +226 -32
  255. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-filepath.cc +5 -7
  256. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-internal-inl.h +21 -29
  257. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-port.cc +85 -67
  258. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-printers.cc +93 -8
  259. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-test-part.cc +1 -9
  260. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-typed-test.cc +1 -0
  261. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest.cc +622 -164
  262. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest_main.cc +1 -1
  263. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/BUILD.bazel +396 -0
  264. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_test.cc +12 -15
  265. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-filepath_test.cc +2 -12
  266. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-listener_test.cc +1 -1
  267. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-options_test.cc +6 -8
  268. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test2_test.cc +1 -5
  269. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.cc +84 -29
  270. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.h +1 -5
  271. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-port_test.cc +11 -12
  272. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-printers_test.cc +165 -63
  273. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test2_test.cc +1 -1
  274. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.cc +1 -1
  275. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-unittest-api_test.cc +1 -1
  276. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_all_test.cc +13 -13
  277. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_assert_by_exception_test.cc +119 -0
  278. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest.py +1 -3
  279. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest_.cc +1 -2
  280. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test.py +0 -2
  281. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test_.cc +1 -1
  282. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test.py +1 -2
  283. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test_.cc +0 -8
  284. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test.py +6 -4
  285. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test_.cc +0 -2
  286. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_environment_test.cc +0 -3
  287. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest.py +20 -18
  288. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest_.cc +0 -2
  289. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test.py +1 -1
  290. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_json_outfiles_test.py +162 -0
  291. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_json_output_unittest.py +611 -0
  292. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_json_test_utils.py +60 -0
  293. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest.py +4 -4
  294. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_main_unittest.cc +2 -2
  295. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test.py +11 -7
  296. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_.cc +17 -12
  297. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_golden_lin.txt +104 -66
  298. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_pred_impl_unittest.cc +1 -1
  299. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_prod_test.cc +2 -2
  300. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_repeat_test.cc +2 -19
  301. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_stress_test.cc +0 -6
  302. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_test_utils.py +12 -14
  303. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_testbridge_test.py +65 -0
  304. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_testbridge_test_.cc +44 -0
  305. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test.py +1 -1
  306. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test.py +4 -5
  307. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test_.cc +2 -2
  308. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_unittest.cc +240 -149
  309. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile1_test_.cc +0 -1
  310. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile2_test_.cc +0 -1
  311. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfiles_test.py +15 -7
  312. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest.py +100 -30
  313. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest_.cc +0 -2
  314. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_test_utils.py +25 -23
  315. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/production.cc +1 -1
  316. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/production.h +1 -1
  317. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/versiongenerate.py +4 -4
  318. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/gtest.xcodeproj/project.pbxproj +47 -0
  319. data/ext/rj_schema/rapidjson/travis-doxygen.sh +13 -6
  320. data/ext/rj_schema/rj_schema.cpp +161 -17
  321. data/lib/rj_schema.rb +1 -1
  322. metadata +63 -58
  323. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/DevGuide.md +0 -132
  324. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CheatSheet.md +0 -525
  325. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/CookBook.md +0 -3250
  326. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/Documentation.md +0 -11
  327. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/ForDummies.md +0 -439
  328. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_5/FrequentlyAskedQuestions.md +0 -624
  329. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CheatSheet.md +0 -534
  330. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/CookBook.md +0 -3342
  331. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/Documentation.md +0 -12
  332. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/ForDummies.md +0 -439
  333. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_6/FrequentlyAskedQuestions.md +0 -628
  334. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CheatSheet.md +0 -556
  335. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/CookBook.md +0 -3432
  336. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/Documentation.md +0 -12
  337. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/ForDummies.md +0 -439
  338. data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/v1_7/FrequentlyAskedQuestions.md +0 -628
  339. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/DevGuide.md +0 -126
  340. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/Documentation.md +0 -14
  341. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_AdvancedGuide.md +0 -2096
  342. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Documentation.md +0 -12
  343. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_FAQ.md +0 -886
  344. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_Primer.md +0 -497
  345. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_PumpManual.md +0 -177
  346. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_5_XcodeGuide.md +0 -93
  347. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_AdvancedGuide.md +0 -2178
  348. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Documentation.md +0 -14
  349. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_FAQ.md +0 -1038
  350. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Primer.md +0 -501
  351. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_PumpManual.md +0 -177
  352. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_Samples.md +0 -14
  353. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_6_XcodeGuide.md +0 -93
  354. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_AdvancedGuide.md +0 -2181
  355. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Documentation.md +0 -14
  356. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_FAQ.md +0 -1082
  357. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Primer.md +0 -501
  358. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_PumpManual.md +0 -177
  359. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_Samples.md +0 -14
  360. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/V1_7_XcodeGuide.md +0 -93
  361. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.sln +0 -45
  362. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest-md.vcproj +0 -126
  363. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest.sln +0 -45
  364. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest.vcproj +0 -126
  365. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main-md.vcproj +0 -129
  366. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_main.vcproj +0 -129
  367. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test-md.vcproj +0 -164
  368. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_prod_test.vcproj +0 -164
  369. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest-md.vcproj +0 -147
  370. data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/msvc/gtest_unittest.vcproj +0 -147
  371. 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
 
@@ -41,5 +41,5 @@ TEST(GTestMainTest, ShouldSucceed) {
41
41
 
42
42
  } // namespace
43
43
 
44
- // We are using the main() function defined in src/gtest_main.cc, so
45
- // we don't define it here.
44
+ // We are using the main() function defined in gtest_main.cc, so we
45
+ // don't define it here.
@@ -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'.*[/\\](.+)(\:\d+|\(\d+\))\: ', r'\1:#: ', test_output)
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 = False
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, 'r')
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, typed tests,
334
- and multiple threads). Please generate the golden file using a binary built
335
- with those features enabled.""")
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
 
@@ -5,9 +5,10 @@ Value of: false
5
5
  Actual: false
6
6
  Expected: true
7
7
  gtest_output_test_.cc:#: Failure
8
- Expected: 2
9
- To be equal to: 3
10
- [==========] Running 66 tests from 29 test cases.
8
+ Expected equality of these values:
9
+ 2
10
+ 3
11
+ [==========] Running 68 tests from 30 test cases.
11
12
  [----------] Global test environment set-up.
12
13
  FooEnvironment::SetUp() called.
13
14
  BarEnvironment::SetUp() called.
@@ -34,21 +35,24 @@ BarEnvironment::SetUp() called.
34
35
  [----------] 2 tests from NonfatalFailureTest
35
36
  [ RUN ] NonfatalFailureTest.EscapesStringOperands
36
37
  gtest_output_test_.cc:#: Failure
37
- Expected: kGoldenString
38
- Which is: "\"Line"
39
- To be equal to: actual
40
- Which is: "actual \"string\""
41
- gtest_output_test_.cc:#: Failure
42
- Expected: golden
43
- Which is: "\"Line"
44
- To be equal to: actual
45
- Which is: "actual \"string\""
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
  [ FAILED ] NonfatalFailureTest.EscapesStringOperands
47
50
  [ RUN ] NonfatalFailureTest.DiffForLongStrings
48
51
  gtest_output_test_.cc:#: Failure
49
- Expected: golden_str
50
- Which is: "\"Line\0 1\"\nLine 2"
51
- To be equal to: "Line 2"
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
  [ RUN ] FatalFailureTest.FatalFailureInSubroutine
60
64
  (expecting a failure that x should be 1)
61
65
  gtest_output_test_.cc:#: Failure
62
- Expected: 1
63
- To be equal to: x
64
- Which is: 2
66
+ Expected equality of these values:
67
+ 1
68
+ x
69
+ Which is: 2
65
70
  [ FAILED ] FatalFailureTest.FatalFailureInSubroutine
66
71
  [ RUN ] FatalFailureTest.FatalFailureInNestedSubroutine
67
72
  (expecting a failure that x should be 1)
68
73
  gtest_output_test_.cc:#: Failure
69
- Expected: 1
70
- To be equal to: x
71
- Which is: 2
74
+ Expected equality of these values:
75
+ 1
76
+ x
77
+ Which is: 2
72
78
  [ FAILED ] FatalFailureTest.FatalFailureInNestedSubroutine
73
79
  [ RUN ] FatalFailureTest.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
  [ FAILED ] LoggingTest.InterleavingLoggingAndAssertions
92
- [----------] 6 tests from SCOPED_TRACETest
98
+ [----------] 7 tests from SCOPED_TRACETest
99
+ [ RUN ] SCOPED_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
+ [ FAILED ] SCOPED_TRACETest.AcceptedValues
93
109
  [ RUN ] SCOPED_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
  [ RUN ] SCOPED_TRACETest.WorksInLoop
108
124
  (expected to fail)
109
125
  gtest_output_test_.cc:#: Failure
110
- Expected: 2
111
- To be equal to: n
112
- Which is: 1
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
- Expected: 1
117
- To be equal to: n
118
- Which is: 2
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
  [ FAILED ] SCOPED_TRACETest.WorksInLoop
122
140
  [ RUN ] SCOPED_TRACETest.WorksInSubroutine
123
141
  (expected to fail)
124
142
  gtest_output_test_.cc:#: Failure
125
- Expected: 2
126
- To be equal to: n
127
- Which is: 1
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
- Expected: 1
132
- To be equal to: n
133
- Which is: 2
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
  [ FAILED ] SCOPED_TRACETest.WorksInSubroutine
137
157
  [ RUN ] SCOPED_TRACETest.CanBeNested
138
158
  (expected to fail)
139
159
  gtest_output_test_.cc:#: Failure
140
- Expected: 1
141
- To be equal to: n
142
- Which is: 2
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
  [ FAILED ] SCOPED_TRACETest.WorksConcurrently
225
+ [----------] 1 test from ScopedTraceTest
226
+ [ RUN ] ScopedTraceTest.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
+ [ FAILED ] ScopedTraceTest.WithExplicitFileAndLine
204
233
  [----------] 1 test from NonFatalFailureInFixtureConstructorTest
205
234
  [ RUN ] NonFatalFailureInFixtureConstructorTest.FailureInConstructor
206
235
  (expecting 5 failures)
@@ -437,9 +466,10 @@ Expected: 1 fatal failure
437
466
  [ OK ] TypedTest/0.Success
438
467
  [ RUN ] TypedTest/0.Failure
439
468
  gtest_output_test_.cc:#: Failure
440
- Expected: 1
441
- To be equal to: TypeParam()
442
- Which is: 0
469
+ Expected equality of these values:
470
+ 1
471
+ TypeParam()
472
+ Which is: 0
443
473
  Expected failure
444
474
  [ FAILED ] TypedTest/0.Failure, where TypeParam = int
445
475
  [----------] 2 tests from Unsigned/TypedTestP/0, where TypeParam = unsigned char
@@ -447,23 +477,25 @@ Expected failure
447
477
  [ OK ] Unsigned/TypedTestP/0.Success
448
478
  [ RUN ] Unsigned/TypedTestP/0.Failure
449
479
  gtest_output_test_.cc:#: Failure
450
- Expected: 1U
451
- Which is: 1
452
- To be equal to: TypeParam()
453
- Which is: '\0'
480
+ Expected equality of these values:
481
+ 1U
482
+ Which is: 1
483
+ TypeParam()
484
+ Which is: '\0'
454
485
  Expected failure
455
486
  [ FAILED ] Unsigned/TypedTestP/0.Failure, where TypeParam = unsigned char
456
- [----------] 2 tests from Unsigned/TypedTestP/1, where TypeParam = unsigned int
487
+ [----------] 2 tests from Unsigned/TypedTestP/1, where TypeParam = unsigned
457
488
  [ RUN ] Unsigned/TypedTestP/1.Success
458
489
  [ OK ] Unsigned/TypedTestP/1.Success
459
490
  [ RUN ] Unsigned/TypedTestP/1.Failure
460
491
  gtest_output_test_.cc:#: Failure
461
- Expected: 1U
462
- Which is: 1
463
- To be equal to: TypeParam()
464
- Which is: 0
492
+ Expected equality of these values:
493
+ 1U
494
+ Which is: 1
495
+ TypeParam()
496
+ Which is: 0
465
497
  Expected failure
466
- [ FAILED ] Unsigned/TypedTestP/1.Failure, where TypeParam = unsigned int
498
+ [ FAILED ] Unsigned/TypedTestP/1.Failure, where TypeParam = unsigned
467
499
  [----------] 4 tests from ExpectFailureTest
468
500
  [ RUN ] ExpectFailureTest.ExpectFatalFailure
469
501
  (expecting 1 failure)
@@ -597,18 +629,20 @@ Expected non-fatal failure.
597
629
  [----------] 1 test from PrintingFailingParams/FailingParamTest
598
630
  [ RUN ] PrintingFailingParams/FailingParamTest.Fails/0
599
631
  gtest_output_test_.cc:#: Failure
600
- Expected: 1
601
- To be equal to: GetParam()
602
- Which is: 2
632
+ Expected equality of these values:
633
+ 1
634
+ GetParam()
635
+ Which is: 2
603
636
  [ FAILED ] PrintingFailingParams/FailingParamTest.Fails/0, where GetParam() = 2
604
637
  [----------] 2 tests from PrintingStrings/ParamTest
605
638
  [ RUN ] PrintingStrings/ParamTest.Success/a
606
639
  [ OK ] PrintingStrings/ParamTest.Success/a
607
640
  [ RUN ] PrintingStrings/ParamTest.Failure/a
608
641
  gtest_output_test_.cc:#: Failure
609
- Expected: "b"
610
- To be equal to: GetParam()
611
- Which is: "a"
642
+ Expected equality of these values:
643
+ "b"
644
+ GetParam()
645
+ Which is: "a"
612
646
  Expected failure
613
647
  [ FAILED ] PrintingStrings/ParamTest.Failure/a, where GetParam() = "a"
614
648
  [----------] Global 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
- [==========] 66 tests from 29 test cases ran.
657
+ [==========] 68 tests from 30 test cases ran.
624
658
  [ PASSED ] 22 tests.
625
- [ FAILED ] 44 tests, listed below:
659
+ [ FAILED ] 46 tests, listed below:
626
660
  [ FAILED ] NonfatalFailureTest.EscapesStringOperands
627
661
  [ FAILED ] NonfatalFailureTest.DiffForLongStrings
628
662
  [ FAILED ] FatalFailureTest.FatalFailureInSubroutine
629
663
  [ FAILED ] FatalFailureTest.FatalFailureInNestedSubroutine
630
664
  [ FAILED ] FatalFailureTest.NonfatalFailureInSubroutine
631
665
  [ FAILED ] LoggingTest.InterleavingLoggingAndAssertions
666
+ [ FAILED ] SCOPED_TRACETest.AcceptedValues
632
667
  [ FAILED ] SCOPED_TRACETest.ObeysScopes
633
668
  [ FAILED ] SCOPED_TRACETest.WorksInLoop
634
669
  [ FAILED ] SCOPED_TRACETest.WorksInSubroutine
635
670
  [ FAILED ] SCOPED_TRACETest.CanBeNested
636
671
  [ FAILED ] SCOPED_TRACETest.CanBeRepeated
637
672
  [ FAILED ] SCOPED_TRACETest.WorksConcurrently
673
+ [ FAILED ] ScopedTraceTest.WithExplicitFileAndLine
638
674
  [ FAILED ] NonFatalFailureInFixtureConstructorTest.FailureInConstructor
639
675
  [ FAILED ] FatalFailureInFixtureConstructorTest.FailureInConstructor
640
676
  [ FAILED ] NonFatalFailureInSetUpTest.FailureInSetUp
@@ -657,7 +693,7 @@ Expected fatal failure.
657
693
  [ FAILED ] ExpectFatalFailureTest.FailsWhenStatementThrows
658
694
  [ FAILED ] TypedTest/0.Failure, where TypeParam = int
659
695
  [ FAILED ] Unsigned/TypedTestP/0.Failure, where TypeParam = unsigned char
660
- [ FAILED ] Unsigned/TypedTestP/1.Failure, where TypeParam = unsigned int
696
+ [ FAILED ] Unsigned/TypedTestP/1.Failure, where TypeParam = unsigned
661
697
  [ FAILED ] ExpectFailureTest.ExpectFatalFailure
662
698
  [ FAILED ] ExpectFailureTest.ExpectNonFatalFailure
663
699
  [ FAILED ] ExpectFailureTest.ExpectFatalFailureOnAllThreads
@@ -668,7 +704,7 @@ Expected fatal failure.
668
704
  [ FAILED ] PrintingFailingParams/FailingParamTest.Fails/0, where GetParam() = 2
669
705
  [ FAILED ] PrintingStrings/ParamTest.Failure/a, where GetParam() = "a"
670
706
 
671
- 44 FAILED TESTS
707
+ 46 FAILED TESTS
672
708
   YOU HAVE 1 DISABLED TEST
673
709
 
674
710
  Note: 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
- Expected: 1
682
- To be equal to: x
683
- Which is: 2
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
- Expected: 1
689
- To be equal to: x
690
- Which is: 2
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)