rj_schema 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +3 -615
- data/ext/rj_schema/rapidjson/CHANGELOG.md +0 -158
- data/ext/rj_schema/rapidjson/CMakeLists.txt +0 -221
- data/ext/rj_schema/rapidjson/CMakeModules/FindGTestSrc.cmake +0 -30
- data/ext/rj_schema/rapidjson/RapidJSON.pc.in +0 -7
- data/ext/rj_schema/rapidjson/RapidJSONConfig.cmake.in +0 -15
- data/ext/rj_schema/rapidjson/RapidJSONConfigVersion.cmake.in +0 -10
- data/ext/rj_schema/rapidjson/appveyor.yml +0 -41
- data/ext/rj_schema/rapidjson/bin/data/glossary.json +0 -22
- data/ext/rj_schema/rapidjson/bin/data/menu.json +0 -27
- data/ext/rj_schema/rapidjson/bin/data/readme.txt +0 -1
- data/ext/rj_schema/rapidjson/bin/data/sample.json +0 -3315
- data/ext/rj_schema/rapidjson/bin/data/webapp.json +0 -88
- data/ext/rj_schema/rapidjson/bin/data/widget.json +0 -26
- data/ext/rj_schema/rapidjson/bin/draft-04/schema +0 -150
- data/ext/rj_schema/rapidjson/bin/encodings/utf16be.json +0 -0
- data/ext/rj_schema/rapidjson/bin/encodings/utf16bebom.json +0 -0
- data/ext/rj_schema/rapidjson/bin/encodings/utf16le.json +0 -0
- data/ext/rj_schema/rapidjson/bin/encodings/utf16lebom.json +0 -0
- data/ext/rj_schema/rapidjson/bin/encodings/utf32be.json +0 -0
- data/ext/rj_schema/rapidjson/bin/encodings/utf32bebom.json +0 -0
- data/ext/rj_schema/rapidjson/bin/encodings/utf32le.json +0 -0
- data/ext/rj_schema/rapidjson/bin/encodings/utf32lebom.json +0 -0
- data/ext/rj_schema/rapidjson/bin/encodings/utf8.json +0 -7
- data/ext/rj_schema/rapidjson/bin/encodings/utf8bom.json +0 -7
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail1.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail10.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail11.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail12.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail13.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail14.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail15.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail16.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail17.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail18.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail19.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail2.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail20.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail21.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail22.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail23.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail24.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail25.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail26.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail27.json +0 -2
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail28.json +0 -2
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail29.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail3.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail30.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail31.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail32.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail33.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail4.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail5.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail6.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail7.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail8.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/fail9.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/pass1.json +0 -58
- data/ext/rj_schema/rapidjson/bin/jsonchecker/pass2.json +0 -1
- data/ext/rj_schema/rapidjson/bin/jsonchecker/pass3.json +0 -6
- data/ext/rj_schema/rapidjson/bin/jsonchecker/readme.txt +0 -3
- data/ext/rj_schema/rapidjson/bin/jsonschema/LICENSE +0 -19
- data/ext/rj_schema/rapidjson/bin/jsonschema/README.md +0 -148
- data/ext/rj_schema/rapidjson/bin/jsonschema/bin/jsonschema_suite +0 -283
- data/ext/rj_schema/rapidjson/bin/jsonschema/remotes/folder/folderInteger.json +0 -3
- data/ext/rj_schema/rapidjson/bin/jsonschema/remotes/integer.json +0 -3
- data/ext/rj_schema/rapidjson/bin/jsonschema/remotes/subSchemas.json +0 -8
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/additionalItems.json +0 -82
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/additionalProperties.json +0 -88
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/default.json +0 -49
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/dependencies.json +0 -108
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json +0 -80
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/divisibleBy.json +0 -60
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/enum.json +0 -71
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/extends.json +0 -94
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/items.json +0 -46
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxItems.json +0 -28
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json +0 -33
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maximum.json +0 -42
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/minItems.json +0 -28
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/minLength.json +0 -33
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/minimum.json +0 -42
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/optional/bignum.json +0 -107
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/optional/format.json +0 -222
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/optional/jsregex.json +0 -18
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/optional/zeroTerminatedFloats.json +0 -15
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/pattern.json +0 -34
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/patternProperties.json +0 -110
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/properties.json +0 -92
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/ref.json +0 -159
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/refRemote.json +0 -74
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/required.json +0 -53
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/type.json +0 -474
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/uniqueItems.json +0 -79
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/additionalItems.json +0 -82
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/additionalProperties.json +0 -88
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/allOf.json +0 -112
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/anyOf.json +0 -68
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/default.json +0 -49
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/definitions.json +0 -32
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/dependencies.json +0 -113
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/enum.json +0 -72
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/items.json +0 -46
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/maxItems.json +0 -28
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/maxLength.json +0 -33
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/maxProperties.json +0 -28
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/maximum.json +0 -42
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/minItems.json +0 -28
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/minLength.json +0 -33
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/minProperties.json +0 -28
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/minimum.json +0 -42
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/multipleOf.json +0 -60
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/not.json +0 -96
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/oneOf.json +0 -68
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/optional/bignum.json +0 -107
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/optional/format.json +0 -148
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/optional/zeroTerminatedFloats.json +0 -15
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/pattern.json +0 -34
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/patternProperties.json +0 -110
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/properties.json +0 -92
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/ref.json +0 -159
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/refRemote.json +0 -74
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/required.json +0 -39
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/type.json +0 -330
- data/ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/uniqueItems.json +0 -79
- data/ext/rj_schema/rapidjson/bin/jsonschema/tox.ini +0 -8
- data/ext/rj_schema/rapidjson/bin/types/booleans.json +0 -102
- data/ext/rj_schema/rapidjson/bin/types/floats.json +0 -102
- data/ext/rj_schema/rapidjson/bin/types/guids.json +0 -102
- data/ext/rj_schema/rapidjson/bin/types/integers.json +0 -102
- data/ext/rj_schema/rapidjson/bin/types/mixed.json +0 -592
- data/ext/rj_schema/rapidjson/bin/types/nulls.json +0 -102
- data/ext/rj_schema/rapidjson/bin/types/paragraphs.json +0 -102
- data/ext/rj_schema/rapidjson/bin/types/readme.txt +0 -1
- data/ext/rj_schema/rapidjson/contrib/natvis/LICENSE +0 -45
- data/ext/rj_schema/rapidjson/contrib/natvis/README.md +0 -7
- data/ext/rj_schema/rapidjson/contrib/natvis/rapidjson.natvis +0 -38
- data/ext/rj_schema/rapidjson/doc/CMakeLists.txt +0 -27
- data/ext/rj_schema/rapidjson/doc/Doxyfile.in +0 -2369
- data/ext/rj_schema/rapidjson/doc/Doxyfile.zh-cn.in +0 -2369
- data/ext/rj_schema/rapidjson/doc/diagram/architecture.dot +0 -50
- data/ext/rj_schema/rapidjson/doc/diagram/architecture.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/insituparsing.dot +0 -65
- data/ext/rj_schema/rapidjson/doc/diagram/insituparsing.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/iterative-parser-states-diagram.dot +0 -62
- data/ext/rj_schema/rapidjson/doc/diagram/iterative-parser-states-diagram.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/makefile +0 -8
- data/ext/rj_schema/rapidjson/doc/diagram/move1.dot +0 -47
- data/ext/rj_schema/rapidjson/doc/diagram/move1.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/move2.dot +0 -62
- data/ext/rj_schema/rapidjson/doc/diagram/move2.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/move3.dot +0 -60
- data/ext/rj_schema/rapidjson/doc/diagram/move3.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/normalparsing.dot +0 -56
- data/ext/rj_schema/rapidjson/doc/diagram/normalparsing.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/simpledom.dot +0 -54
- data/ext/rj_schema/rapidjson/doc/diagram/simpledom.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/tutorial.dot +0 -58
- data/ext/rj_schema/rapidjson/doc/diagram/tutorial.png +0 -0
- data/ext/rj_schema/rapidjson/doc/diagram/utilityclass.dot +0 -73
- data/ext/rj_schema/rapidjson/doc/diagram/utilityclass.png +0 -0
- data/ext/rj_schema/rapidjson/doc/dom.md +0 -280
- data/ext/rj_schema/rapidjson/doc/dom.zh-cn.md +0 -284
- data/ext/rj_schema/rapidjson/doc/encoding.md +0 -146
- data/ext/rj_schema/rapidjson/doc/encoding.zh-cn.md +0 -152
- data/ext/rj_schema/rapidjson/doc/faq.md +0 -289
- data/ext/rj_schema/rapidjson/doc/faq.zh-cn.md +0 -290
- data/ext/rj_schema/rapidjson/doc/features.md +0 -104
- data/ext/rj_schema/rapidjson/doc/features.zh-cn.md +0 -103
- data/ext/rj_schema/rapidjson/doc/internals.md +0 -368
- data/ext/rj_schema/rapidjson/doc/internals.zh-cn.md +0 -363
- data/ext/rj_schema/rapidjson/doc/logo/rapidjson.png +0 -0
- data/ext/rj_schema/rapidjson/doc/logo/rapidjson.svg +0 -119
- data/ext/rj_schema/rapidjson/doc/misc/DoxygenLayout.xml +0 -194
- data/ext/rj_schema/rapidjson/doc/misc/doxygenextra.css +0 -274
- data/ext/rj_schema/rapidjson/doc/misc/footer.html +0 -11
- data/ext/rj_schema/rapidjson/doc/misc/header.html +0 -24
- data/ext/rj_schema/rapidjson/doc/npm.md +0 -31
- data/ext/rj_schema/rapidjson/doc/performance.md +0 -26
- data/ext/rj_schema/rapidjson/doc/performance.zh-cn.md +0 -26
- data/ext/rj_schema/rapidjson/doc/pointer.md +0 -234
- data/ext/rj_schema/rapidjson/doc/pointer.zh-cn.md +0 -234
- data/ext/rj_schema/rapidjson/doc/sax.md +0 -509
- data/ext/rj_schema/rapidjson/doc/sax.zh-cn.md +0 -487
- data/ext/rj_schema/rapidjson/doc/schema.md +0 -505
- data/ext/rj_schema/rapidjson/doc/schema.zh-cn.md +0 -237
- data/ext/rj_schema/rapidjson/doc/stream.md +0 -429
- data/ext/rj_schema/rapidjson/doc/stream.zh-cn.md +0 -429
- data/ext/rj_schema/rapidjson/doc/tutorial.md +0 -536
- data/ext/rj_schema/rapidjson/doc/tutorial.zh-cn.md +0 -534
- data/ext/rj_schema/rapidjson/docker/debian/Dockerfile +0 -8
- data/ext/rj_schema/rapidjson/example/CMakeLists.txt +0 -45
- data/ext/rj_schema/rapidjson/example/archiver/archiver.cpp +0 -292
- data/ext/rj_schema/rapidjson/example/archiver/archiver.h +0 -145
- data/ext/rj_schema/rapidjson/example/archiver/archivertest.cpp +0 -287
- data/ext/rj_schema/rapidjson/example/capitalize/capitalize.cpp +0 -67
- data/ext/rj_schema/rapidjson/example/condense/condense.cpp +0 -32
- data/ext/rj_schema/rapidjson/example/filterkey/filterkey.cpp +0 -135
- data/ext/rj_schema/rapidjson/example/filterkeydom/filterkeydom.cpp +0 -170
- data/ext/rj_schema/rapidjson/example/jsonx/jsonx.cpp +0 -207
- data/ext/rj_schema/rapidjson/example/lookaheadparser/lookaheadparser.cpp +0 -350
- data/ext/rj_schema/rapidjson/example/messagereader/messagereader.cpp +0 -105
- data/ext/rj_schema/rapidjson/example/parsebyparts/parsebyparts.cpp +0 -176
- data/ext/rj_schema/rapidjson/example/pretty/pretty.cpp +0 -30
- data/ext/rj_schema/rapidjson/example/prettyauto/prettyauto.cpp +0 -56
- data/ext/rj_schema/rapidjson/example/schemavalidator/schemavalidator.cpp +0 -78
- data/ext/rj_schema/rapidjson/example/serialize/serialize.cpp +0 -173
- data/ext/rj_schema/rapidjson/example/simpledom/simpledom.cpp +0 -29
- data/ext/rj_schema/rapidjson/example/simplepullreader/simplepullreader.cpp +0 -53
- data/ext/rj_schema/rapidjson/example/simplereader/simplereader.cpp +0 -42
- data/ext/rj_schema/rapidjson/example/simplewriter/simplewriter.cpp +0 -36
- data/ext/rj_schema/rapidjson/example/tutorial/tutorial.cpp +0 -151
- data/ext/rj_schema/rapidjson/include/rapidjson/allocators.h +0 -284
- data/ext/rj_schema/rapidjson/include/rapidjson/cursorstreamwrapper.h +0 -78
- data/ext/rj_schema/rapidjson/include/rapidjson/document.h +0 -2648
- data/ext/rj_schema/rapidjson/include/rapidjson/encodedstream.h +0 -299
- data/ext/rj_schema/rapidjson/include/rapidjson/encodings.h +0 -716
- data/ext/rj_schema/rapidjson/include/rapidjson/error/en.h +0 -74
- data/ext/rj_schema/rapidjson/include/rapidjson/error/error.h +0 -161
- data/ext/rj_schema/rapidjson/include/rapidjson/filereadstream.h +0 -99
- data/ext/rj_schema/rapidjson/include/rapidjson/filewritestream.h +0 -104
- data/ext/rj_schema/rapidjson/include/rapidjson/fwd.h +0 -151
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/biginteger.h +0 -290
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/diyfp.h +0 -271
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/dtoa.h +0 -245
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/ieee754.h +0 -78
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/itoa.h +0 -308
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/meta.h +0 -186
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/pow10.h +0 -55
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/regex.h +0 -732
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/stack.h +0 -231
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/strfunc.h +0 -69
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/strtod.h +0 -290
- data/ext/rj_schema/rapidjson/include/rapidjson/internal/swap.h +0 -46
- data/ext/rj_schema/rapidjson/include/rapidjson/istreamwrapper.h +0 -113
- data/ext/rj_schema/rapidjson/include/rapidjson/memorybuffer.h +0 -70
- data/ext/rj_schema/rapidjson/include/rapidjson/memorystream.h +0 -71
- data/ext/rj_schema/rapidjson/include/rapidjson/msinttypes/inttypes.h +0 -316
- data/ext/rj_schema/rapidjson/include/rapidjson/msinttypes/stdint.h +0 -300
- data/ext/rj_schema/rapidjson/include/rapidjson/ostreamwrapper.h +0 -81
- data/ext/rj_schema/rapidjson/include/rapidjson/pointer.h +0 -1357
- data/ext/rj_schema/rapidjson/include/rapidjson/prettywriter.h +0 -277
- data/ext/rj_schema/rapidjson/include/rapidjson/rapidjson.h +0 -630
- data/ext/rj_schema/rapidjson/include/rapidjson/reader.h +0 -2230
- data/ext/rj_schema/rapidjson/include/rapidjson/schema.h +0 -2494
- data/ext/rj_schema/rapidjson/include/rapidjson/stream.h +0 -223
- data/ext/rj_schema/rapidjson/include/rapidjson/stringbuffer.h +0 -121
- data/ext/rj_schema/rapidjson/include/rapidjson/writer.h +0 -710
- data/ext/rj_schema/rapidjson/include_dirs.js +0 -2
- data/ext/rj_schema/rapidjson/library.json +0 -15
- data/ext/rj_schema/rapidjson/license.txt +0 -57
- data/ext/rj_schema/rapidjson/package.json +0 -24
- data/ext/rj_schema/rapidjson/rapidjson.autopkg +0 -77
- data/ext/rj_schema/rapidjson/readme.md +0 -160
- data/ext/rj_schema/rapidjson/readme.zh-cn.md +0 -152
- data/ext/rj_schema/rapidjson/test/CMakeLists.txt +0 -20
- data/ext/rj_schema/rapidjson/test/perftest/CMakeLists.txt +0 -28
- data/ext/rj_schema/rapidjson/test/perftest/misctest.cpp +0 -974
- data/ext/rj_schema/rapidjson/test/perftest/perftest.cpp +0 -24
- data/ext/rj_schema/rapidjson/test/perftest/perftest.h +0 -185
- data/ext/rj_schema/rapidjson/test/perftest/platformtest.cpp +0 -166
- data/ext/rj_schema/rapidjson/test/perftest/rapidjsontest.cpp +0 -472
- data/ext/rj_schema/rapidjson/test/perftest/schematest.cpp +0 -223
- data/ext/rj_schema/rapidjson/test/unittest/CMakeLists.txt +0 -92
- data/ext/rj_schema/rapidjson/test/unittest/allocatorstest.cpp +0 -100
- data/ext/rj_schema/rapidjson/test/unittest/bigintegertest.cpp +0 -138
- data/ext/rj_schema/rapidjson/test/unittest/cursorstreamwrappertest.cpp +0 -115
- data/ext/rj_schema/rapidjson/test/unittest/documenttest.cpp +0 -672
- data/ext/rj_schema/rapidjson/test/unittest/dtoatest.cpp +0 -98
- data/ext/rj_schema/rapidjson/test/unittest/encodedstreamtest.cpp +0 -313
- data/ext/rj_schema/rapidjson/test/unittest/encodingstest.cpp +0 -451
- data/ext/rj_schema/rapidjson/test/unittest/filestreamtest.cpp +0 -112
- data/ext/rj_schema/rapidjson/test/unittest/fwdtest.cpp +0 -230
- data/ext/rj_schema/rapidjson/test/unittest/istreamwrappertest.cpp +0 -181
- data/ext/rj_schema/rapidjson/test/unittest/itoatest.cpp +0 -160
- data/ext/rj_schema/rapidjson/test/unittest/jsoncheckertest.cpp +0 -143
- data/ext/rj_schema/rapidjson/test/unittest/namespacetest.cpp +0 -70
- data/ext/rj_schema/rapidjson/test/unittest/ostreamwrappertest.cpp +0 -92
- data/ext/rj_schema/rapidjson/test/unittest/pointertest.cpp +0 -1529
- data/ext/rj_schema/rapidjson/test/unittest/prettywritertest.cpp +0 -373
- data/ext/rj_schema/rapidjson/test/unittest/readertest.cpp +0 -2190
- data/ext/rj_schema/rapidjson/test/unittest/regextest.cpp +0 -638
- data/ext/rj_schema/rapidjson/test/unittest/schematest.cpp +0 -2072
- data/ext/rj_schema/rapidjson/test/unittest/simdtest.cpp +0 -219
- data/ext/rj_schema/rapidjson/test/unittest/strfunctest.cpp +0 -30
- data/ext/rj_schema/rapidjson/test/unittest/stringbuffertest.cpp +0 -192
- data/ext/rj_schema/rapidjson/test/unittest/strtodtest.cpp +0 -132
- data/ext/rj_schema/rapidjson/test/unittest/unittest.cpp +0 -51
- data/ext/rj_schema/rapidjson/test/unittest/unittest.h +0 -140
- data/ext/rj_schema/rapidjson/test/unittest/valuetest.cpp +0 -1851
- data/ext/rj_schema/rapidjson/test/unittest/writertest.cpp +0 -598
- data/ext/rj_schema/rapidjson/test/valgrind.supp +0 -17
- data/ext/rj_schema/rapidjson/thirdparty/gtest/CMakeLists.txt +0 -16
- data/ext/rj_schema/rapidjson/thirdparty/gtest/README.md +0 -141
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/CHANGES +0 -126
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt +0 -202
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/CONTRIBUTORS +0 -40
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/LICENSE +0 -28
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/Makefile.am +0 -224
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/README.md +0 -333
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/configure.ac +0 -146
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/CheatSheet.md +0 -562
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/CookBook.md +0 -3675
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/DesignDoc.md +0 -280
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/DevGuide.md +0 -132
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/Documentation.md +0 -12
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/ForDummies.md +0 -439
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/FrequentlyAskedQuestions.md +0 -628
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/docs/KnownIssues.md +0 -19
- 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/googlemock/include/gmock/gmock-actions.h +0 -1205
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-cardinalities.h +0 -147
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h +0 -2377
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-actions.h.pump +0 -794
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h +0 -1095
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-function-mockers.h.pump +0 -291
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h +0 -2179
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-matchers.h.pump +0 -672
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h +0 -397
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-generated-nice-strict.h.pump +0 -161
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-matchers.h +0 -4399
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-actions.h +0 -246
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-more-matchers.h +0 -58
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock-spec-builders.h +0 -1847
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/gmock.h +0 -94
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h +0 -8
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-generated-actions.h.pump +0 -10
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-matchers.h +0 -39
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/custom/gmock-port.h +0 -46
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h +0 -279
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-generated-internal-utils.h.pump +0 -136
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-internal-utils.h +0 -511
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/include/gmock/internal/gmock-port.h +0 -91
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/make/Makefile +0 -101
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.sln +0 -32
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock.vcproj +0 -191
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_config.vsprops +0 -15
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_main.vcproj +0 -187
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2005/gmock_test.vcproj +0 -201
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.sln +0 -32
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock.vcxproj +0 -82
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_config.props +0 -19
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_main.vcxproj +0 -88
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2010/gmock_test.vcxproj +0 -101
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.sln +0 -32
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock.vcxproj +0 -84
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_config.props +0 -19
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_main.vcxproj +0 -90
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/msvc/2015/gmock_test.vcxproj +0 -103
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/fuse_gmock_files.py +0 -240
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/LICENSE +0 -203
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README +0 -35
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/README.cppclean +0 -115
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/__init__.py +0 -0
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/ast.py +0 -1733
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class.py +0 -227
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/gmock_class_test.py +0 -448
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/keywords.py +0 -59
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/tokenize.py +0 -287
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/cpp/utils.py +0 -41
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/generator/gmock_gen.py +0 -31
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/gmock-config.in +0 -303
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/gmock_doctor.py +0 -640
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/upload.py +0 -1387
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/scripts/upload_gmock.py +0 -78
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-all.cc +0 -47
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-cardinalities.cc +0 -156
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-internal-utils.cc +0 -174
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-matchers.cc +0 -498
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock-spec-builders.cc +0 -823
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock.cc +0 -183
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/src/gmock_main.cc +0 -54
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-actions_test.cc +0 -1411
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-cardinalities_test.cc +0 -428
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-actions_test.cc +0 -1228
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-function-mockers_test.cc +0 -622
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-internal-utils_test.cc +0 -127
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-generated-matchers_test.cc +0 -1286
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-internal-utils_test.cc +0 -699
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-matchers_test.cc +0 -5648
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-more-actions_test.cc +0 -708
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-nice-strict_test.cc +0 -424
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-port_test.cc +0 -43
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock-spec-builders_test.cc +0 -2644
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_all_test.cc +0 -51
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_ex_test.cc +0 -81
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test.py +0 -108
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_leak_test_.cc +0 -100
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link2_test.cc +0 -40
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.cc +0 -40
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_link_test.h +0 -669
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test.py +0 -180
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_.cc +0 -291
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_output_test_golden.txt +0 -310
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_stress_test.cc +0 -322
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_test.cc +0 -220
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googlemock/test/gmock_test_utils.py +0 -112
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/CHANGES +0 -157
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt +0 -286
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/CONTRIBUTORS +0 -37
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/LICENSE +0 -28
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/Makefile.am +0 -310
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/README.md +0 -280
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/cmake/internal_utils.cmake +0 -242
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest.cbproj +0 -138
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest.groupproj +0 -54
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest_all.cc +0 -38
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest_link.cc +0 -40
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest_main.cbproj +0 -82
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/codegear/gtest_unittest.cbproj +0 -88
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/configure.ac +0 -68
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/AdvancedGuide.md +0 -2182
- 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/FAQ.md +0 -1087
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/Primer.md +0 -502
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/PumpManual.md +0 -177
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/docs/Samples.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/docs/XcodeGuide.md +0 -93
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-death-test.h +0 -294
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-message.h +0 -250
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h +0 -1444
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-param-test.h.pump +0 -510
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-printers.h +0 -993
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-spi.h +0 -232
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-test-part.h +0 -179
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest-typed-test.h +0 -263
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest.h +0 -2236
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_pred_impl.h +0 -358
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest_prod.h +0 -58
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-port.h +0 -69
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest-printers.h +0 -42
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/custom/gtest.h +0 -41
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-death-test-internal.h +0 -319
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-filepath.h +0 -206
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-internal.h +0 -1238
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-linked_ptr.h +0 -243
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h +0 -5146
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util-generated.h.pump +0 -286
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-param-util.h +0 -731
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port-arch.h +0 -93
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-port.h +0 -2554
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-string.h +0 -167
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h +0 -1020
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-tuple.h.pump +0 -347
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h +0 -3331
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/include/gtest/internal/gtest-type-util.h.pump +0 -297
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/m4/acx_pthread.m4 +0 -363
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/m4/gtest.m4 +0 -74
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/make/Makefile +0 -82
- 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/googletest/samples/prime_tables.h +0 -123
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample1.cc +0 -68
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample1.h +0 -43
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample10_unittest.cc +0 -144
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample1_unittest.cc +0 -153
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample2.cc +0 -56
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample2.h +0 -85
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample2_unittest.cc +0 -109
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample3-inl.h +0 -172
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample3_unittest.cc +0 -151
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample4.cc +0 -46
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample4.h +0 -53
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample4_unittest.cc +0 -45
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample5_unittest.cc +0 -199
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample6_unittest.cc +0 -224
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample7_unittest.cc +0 -130
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample8_unittest.cc +0 -173
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/samples/sample9_unittest.cc +0 -160
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/common.py +0 -83
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/fuse_gtest_files.py +0 -253
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/gen_gtest_pred_impl.py +0 -730
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/gtest-config.in +0 -274
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/pump.py +0 -855
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/release_docs.py +0 -158
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/test/Makefile +0 -59
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/upload.py +0 -1387
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/scripts/upload_gtest.py +0 -78
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-all.cc +0 -48
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-death-test.cc +0 -1342
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-filepath.cc +0 -387
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-internal-inl.h +0 -1183
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-port.cc +0 -1259
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-printers.cc +0 -373
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-test-part.cc +0 -110
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest-typed-test.cc +0 -118
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest.cc +0 -5388
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/src/gtest_main.cc +0 -38
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_ex_test.cc +0 -93
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-death-test_test.cc +0 -1427
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-filepath_test.cc +0 -662
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-linked_ptr_test.cc +0 -154
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-listener_test.cc +0 -311
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-message_test.cc +0 -159
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-options_test.cc +0 -215
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test2_test.cc +0 -65
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.cc +0 -1055
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-param-test_test.h +0 -57
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-port_test.cc +0 -1304
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-printers_test.cc +0 -1635
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-test-part_test.cc +0 -208
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-tuple_test.cc +0 -320
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test2_test.cc +0 -45
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.cc +0 -380
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-typed-test_test.h +0 -66
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest-unittest-api_test.cc +0 -341
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_all_test.cc +0 -47
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest.py +0 -212
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_break_on_failure_unittest_.cc +0 -88
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test.py +0 -237
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_catch_exceptions_test_.cc +0 -311
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test.py +0 -130
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_color_test_.cc +0 -71
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test.py +0 -117
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_env_var_test_.cc +0 -126
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_environment_test.cc +0 -192
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest.py +0 -636
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_filter_unittest_.cc +0 -140
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test.py +0 -172
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_help_test_.cc +0 -46
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest.py +0 -207
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_list_tests_unittest_.cc +0 -157
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_main_unittest.cc +0 -45
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_no_test_unittest.cc +0 -56
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test.py +0 -340
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_.cc +0 -1062
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_output_test_golden_lin.txt +0 -743
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_pred_impl_unittest.cc +0 -2427
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_premature_exit_test.cc +0 -127
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_prod_test.cc +0 -57
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_repeat_test.cc +0 -253
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test.py +0 -325
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_shuffle_test_.cc +0 -103
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_sole_header_test.cc +0 -57
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_stress_test.cc +0 -256
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_test_utils.py +0 -320
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_ex_test.cc +0 -92
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test.py +0 -171
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_throw_on_failure_test_.cc +0 -72
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test.py +0 -70
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_uninitialized_test_.cc +0 -43
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_unittest.cc +0 -7706
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile1_test_.cc +0 -49
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfile2_test_.cc +0 -49
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_outfiles_test.py +0 -132
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest.py +0 -308
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_output_unittest_.cc +0 -181
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/gtest_xml_test_utils.py +0 -194
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/production.cc +0 -36
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/test/production.h +0 -55
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/DebugProject.xcconfig +0 -30
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/FrameworkTarget.xcconfig +0 -17
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/General.xcconfig +0 -41
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/ReleaseProject.xcconfig +0 -32
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/StaticLibraryTarget.xcconfig +0 -18
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Config/TestTarget.xcconfig +0 -8
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Resources/Info.plist +0 -30
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/Info.plist +0 -28
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj +0 -457
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/runtests.sh +0 -62
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.cc +0 -63
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.h +0 -59
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget_test.cc +0 -68
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/runtests.sh +0 -65
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/Scripts/versiongenerate.py +0 -100
- data/ext/rj_schema/rapidjson/thirdparty/gtest/googletest/xcode/gtest.xcodeproj/project.pbxproj +0 -1135
- data/ext/rj_schema/rapidjson/thirdparty/gtest/travis.sh +0 -15
- data/ext/rj_schema/rapidjson/travis-doxygen.sh +0 -121
@@ -1,662 +0,0 @@
|
|
1
|
-
// Copyright 2008, 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
|
-
// Authors: keith.ray@gmail.com (Keith Ray)
|
31
|
-
//
|
32
|
-
// Google Test filepath utilities
|
33
|
-
//
|
34
|
-
// This file tests classes and functions used internally by
|
35
|
-
// Google Test. They are subject to change without notice.
|
36
|
-
//
|
37
|
-
// This file is #included from gtest_unittest.cc, to avoid changing
|
38
|
-
// build or make-files for some existing Google Test clients. Do not
|
39
|
-
// #include this file anywhere else!
|
40
|
-
|
41
|
-
#include "gtest/internal/gtest-filepath.h"
|
42
|
-
#include "gtest/gtest.h"
|
43
|
-
|
44
|
-
// Indicates that this translation unit is part of Google Test's
|
45
|
-
// implementation. It must come before gtest-internal-inl.h is
|
46
|
-
// included, or there will be a compiler error. This trick is to
|
47
|
-
// prevent a user from accidentally including gtest-internal-inl.h in
|
48
|
-
// his code.
|
49
|
-
#define GTEST_IMPLEMENTATION_ 1
|
50
|
-
#include "src/gtest-internal-inl.h"
|
51
|
-
#undef GTEST_IMPLEMENTATION_
|
52
|
-
|
53
|
-
#if GTEST_OS_WINDOWS_MOBILE
|
54
|
-
# include <windows.h> // NOLINT
|
55
|
-
#elif GTEST_OS_WINDOWS
|
56
|
-
# include <direct.h> // NOLINT
|
57
|
-
#endif // GTEST_OS_WINDOWS_MOBILE
|
58
|
-
|
59
|
-
namespace testing {
|
60
|
-
namespace internal {
|
61
|
-
namespace {
|
62
|
-
|
63
|
-
#if GTEST_OS_WINDOWS_MOBILE
|
64
|
-
// TODO(wan@google.com): Move these to the POSIX adapter section in
|
65
|
-
// gtest-port.h.
|
66
|
-
|
67
|
-
// Windows CE doesn't have the remove C function.
|
68
|
-
int remove(const char* path) {
|
69
|
-
LPCWSTR wpath = String::AnsiToUtf16(path);
|
70
|
-
int ret = DeleteFile(wpath) ? 0 : -1;
|
71
|
-
delete [] wpath;
|
72
|
-
return ret;
|
73
|
-
}
|
74
|
-
// Windows CE doesn't have the _rmdir C function.
|
75
|
-
int _rmdir(const char* path) {
|
76
|
-
FilePath filepath(path);
|
77
|
-
LPCWSTR wpath = String::AnsiToUtf16(
|
78
|
-
filepath.RemoveTrailingPathSeparator().c_str());
|
79
|
-
int ret = RemoveDirectory(wpath) ? 0 : -1;
|
80
|
-
delete [] wpath;
|
81
|
-
return ret;
|
82
|
-
}
|
83
|
-
|
84
|
-
#else
|
85
|
-
|
86
|
-
TEST(GetCurrentDirTest, ReturnsCurrentDir) {
|
87
|
-
const FilePath original_dir = FilePath::GetCurrentDir();
|
88
|
-
EXPECT_FALSE(original_dir.IsEmpty());
|
89
|
-
|
90
|
-
posix::ChDir(GTEST_PATH_SEP_);
|
91
|
-
const FilePath cwd = FilePath::GetCurrentDir();
|
92
|
-
posix::ChDir(original_dir.c_str());
|
93
|
-
|
94
|
-
# if GTEST_OS_WINDOWS
|
95
|
-
|
96
|
-
// Skips the ":".
|
97
|
-
const char* const cwd_without_drive = strchr(cwd.c_str(), ':');
|
98
|
-
ASSERT_TRUE(cwd_without_drive != NULL);
|
99
|
-
EXPECT_STREQ(GTEST_PATH_SEP_, cwd_without_drive + 1);
|
100
|
-
|
101
|
-
# else
|
102
|
-
|
103
|
-
EXPECT_EQ(GTEST_PATH_SEP_, cwd.string());
|
104
|
-
|
105
|
-
# endif
|
106
|
-
}
|
107
|
-
|
108
|
-
#endif // GTEST_OS_WINDOWS_MOBILE
|
109
|
-
|
110
|
-
TEST(IsEmptyTest, ReturnsTrueForEmptyPath) {
|
111
|
-
EXPECT_TRUE(FilePath("").IsEmpty());
|
112
|
-
}
|
113
|
-
|
114
|
-
TEST(IsEmptyTest, ReturnsFalseForNonEmptyPath) {
|
115
|
-
EXPECT_FALSE(FilePath("a").IsEmpty());
|
116
|
-
EXPECT_FALSE(FilePath(".").IsEmpty());
|
117
|
-
EXPECT_FALSE(FilePath("a/b").IsEmpty());
|
118
|
-
EXPECT_FALSE(FilePath("a\\b\\").IsEmpty());
|
119
|
-
}
|
120
|
-
|
121
|
-
// RemoveDirectoryName "" -> ""
|
122
|
-
TEST(RemoveDirectoryNameTest, WhenEmptyName) {
|
123
|
-
EXPECT_EQ("", FilePath("").RemoveDirectoryName().string());
|
124
|
-
}
|
125
|
-
|
126
|
-
// RemoveDirectoryName "afile" -> "afile"
|
127
|
-
TEST(RemoveDirectoryNameTest, ButNoDirectory) {
|
128
|
-
EXPECT_EQ("afile",
|
129
|
-
FilePath("afile").RemoveDirectoryName().string());
|
130
|
-
}
|
131
|
-
|
132
|
-
// RemoveDirectoryName "/afile" -> "afile"
|
133
|
-
TEST(RemoveDirectoryNameTest, RootFileShouldGiveFileName) {
|
134
|
-
EXPECT_EQ("afile",
|
135
|
-
FilePath(GTEST_PATH_SEP_ "afile").RemoveDirectoryName().string());
|
136
|
-
}
|
137
|
-
|
138
|
-
// RemoveDirectoryName "adir/" -> ""
|
139
|
-
TEST(RemoveDirectoryNameTest, WhereThereIsNoFileName) {
|
140
|
-
EXPECT_EQ("",
|
141
|
-
FilePath("adir" GTEST_PATH_SEP_).RemoveDirectoryName().string());
|
142
|
-
}
|
143
|
-
|
144
|
-
// RemoveDirectoryName "adir/afile" -> "afile"
|
145
|
-
TEST(RemoveDirectoryNameTest, ShouldGiveFileName) {
|
146
|
-
EXPECT_EQ("afile",
|
147
|
-
FilePath("adir" GTEST_PATH_SEP_ "afile").RemoveDirectoryName().string());
|
148
|
-
}
|
149
|
-
|
150
|
-
// RemoveDirectoryName "adir/subdir/afile" -> "afile"
|
151
|
-
TEST(RemoveDirectoryNameTest, ShouldAlsoGiveFileName) {
|
152
|
-
EXPECT_EQ("afile",
|
153
|
-
FilePath("adir" GTEST_PATH_SEP_ "subdir" GTEST_PATH_SEP_ "afile")
|
154
|
-
.RemoveDirectoryName().string());
|
155
|
-
}
|
156
|
-
|
157
|
-
#if GTEST_HAS_ALT_PATH_SEP_
|
158
|
-
|
159
|
-
// Tests that RemoveDirectoryName() works with the alternate separator
|
160
|
-
// on Windows.
|
161
|
-
|
162
|
-
// RemoveDirectoryName("/afile") -> "afile"
|
163
|
-
TEST(RemoveDirectoryNameTest, RootFileShouldGiveFileNameForAlternateSeparator) {
|
164
|
-
EXPECT_EQ("afile", FilePath("/afile").RemoveDirectoryName().string());
|
165
|
-
}
|
166
|
-
|
167
|
-
// RemoveDirectoryName("adir/") -> ""
|
168
|
-
TEST(RemoveDirectoryNameTest, WhereThereIsNoFileNameForAlternateSeparator) {
|
169
|
-
EXPECT_EQ("", FilePath("adir/").RemoveDirectoryName().string());
|
170
|
-
}
|
171
|
-
|
172
|
-
// RemoveDirectoryName("adir/afile") -> "afile"
|
173
|
-
TEST(RemoveDirectoryNameTest, ShouldGiveFileNameForAlternateSeparator) {
|
174
|
-
EXPECT_EQ("afile", FilePath("adir/afile").RemoveDirectoryName().string());
|
175
|
-
}
|
176
|
-
|
177
|
-
// RemoveDirectoryName("adir/subdir/afile") -> "afile"
|
178
|
-
TEST(RemoveDirectoryNameTest, ShouldAlsoGiveFileNameForAlternateSeparator) {
|
179
|
-
EXPECT_EQ("afile",
|
180
|
-
FilePath("adir/subdir/afile").RemoveDirectoryName().string());
|
181
|
-
}
|
182
|
-
|
183
|
-
#endif
|
184
|
-
|
185
|
-
// RemoveFileName "" -> "./"
|
186
|
-
TEST(RemoveFileNameTest, EmptyName) {
|
187
|
-
#if GTEST_OS_WINDOWS_MOBILE
|
188
|
-
// On Windows CE, we use the root as the current directory.
|
189
|
-
EXPECT_EQ(GTEST_PATH_SEP_, FilePath("").RemoveFileName().string());
|
190
|
-
#else
|
191
|
-
EXPECT_EQ("." GTEST_PATH_SEP_, FilePath("").RemoveFileName().string());
|
192
|
-
#endif
|
193
|
-
}
|
194
|
-
|
195
|
-
// RemoveFileName "adir/" -> "adir/"
|
196
|
-
TEST(RemoveFileNameTest, ButNoFile) {
|
197
|
-
EXPECT_EQ("adir" GTEST_PATH_SEP_,
|
198
|
-
FilePath("adir" GTEST_PATH_SEP_).RemoveFileName().string());
|
199
|
-
}
|
200
|
-
|
201
|
-
// RemoveFileName "adir/afile" -> "adir/"
|
202
|
-
TEST(RemoveFileNameTest, GivesDirName) {
|
203
|
-
EXPECT_EQ("adir" GTEST_PATH_SEP_,
|
204
|
-
FilePath("adir" GTEST_PATH_SEP_ "afile").RemoveFileName().string());
|
205
|
-
}
|
206
|
-
|
207
|
-
// RemoveFileName "adir/subdir/afile" -> "adir/subdir/"
|
208
|
-
TEST(RemoveFileNameTest, GivesDirAndSubDirName) {
|
209
|
-
EXPECT_EQ("adir" GTEST_PATH_SEP_ "subdir" GTEST_PATH_SEP_,
|
210
|
-
FilePath("adir" GTEST_PATH_SEP_ "subdir" GTEST_PATH_SEP_ "afile")
|
211
|
-
.RemoveFileName().string());
|
212
|
-
}
|
213
|
-
|
214
|
-
// RemoveFileName "/afile" -> "/"
|
215
|
-
TEST(RemoveFileNameTest, GivesRootDir) {
|
216
|
-
EXPECT_EQ(GTEST_PATH_SEP_,
|
217
|
-
FilePath(GTEST_PATH_SEP_ "afile").RemoveFileName().string());
|
218
|
-
}
|
219
|
-
|
220
|
-
#if GTEST_HAS_ALT_PATH_SEP_
|
221
|
-
|
222
|
-
// Tests that RemoveFileName() works with the alternate separator on
|
223
|
-
// Windows.
|
224
|
-
|
225
|
-
// RemoveFileName("adir/") -> "adir/"
|
226
|
-
TEST(RemoveFileNameTest, ButNoFileForAlternateSeparator) {
|
227
|
-
EXPECT_EQ("adir" GTEST_PATH_SEP_,
|
228
|
-
FilePath("adir/").RemoveFileName().string());
|
229
|
-
}
|
230
|
-
|
231
|
-
// RemoveFileName("adir/afile") -> "adir/"
|
232
|
-
TEST(RemoveFileNameTest, GivesDirNameForAlternateSeparator) {
|
233
|
-
EXPECT_EQ("adir" GTEST_PATH_SEP_,
|
234
|
-
FilePath("adir/afile").RemoveFileName().string());
|
235
|
-
}
|
236
|
-
|
237
|
-
// RemoveFileName("adir/subdir/afile") -> "adir/subdir/"
|
238
|
-
TEST(RemoveFileNameTest, GivesDirAndSubDirNameForAlternateSeparator) {
|
239
|
-
EXPECT_EQ("adir" GTEST_PATH_SEP_ "subdir" GTEST_PATH_SEP_,
|
240
|
-
FilePath("adir/subdir/afile").RemoveFileName().string());
|
241
|
-
}
|
242
|
-
|
243
|
-
// RemoveFileName("/afile") -> "\"
|
244
|
-
TEST(RemoveFileNameTest, GivesRootDirForAlternateSeparator) {
|
245
|
-
EXPECT_EQ(GTEST_PATH_SEP_, FilePath("/afile").RemoveFileName().string());
|
246
|
-
}
|
247
|
-
|
248
|
-
#endif
|
249
|
-
|
250
|
-
TEST(MakeFileNameTest, GenerateWhenNumberIsZero) {
|
251
|
-
FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"),
|
252
|
-
0, "xml");
|
253
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string());
|
254
|
-
}
|
255
|
-
|
256
|
-
TEST(MakeFileNameTest, GenerateFileNameNumberGtZero) {
|
257
|
-
FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"),
|
258
|
-
12, "xml");
|
259
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.string());
|
260
|
-
}
|
261
|
-
|
262
|
-
TEST(MakeFileNameTest, GenerateFileNameWithSlashNumberIsZero) {
|
263
|
-
FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_),
|
264
|
-
FilePath("bar"), 0, "xml");
|
265
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string());
|
266
|
-
}
|
267
|
-
|
268
|
-
TEST(MakeFileNameTest, GenerateFileNameWithSlashNumberGtZero) {
|
269
|
-
FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_),
|
270
|
-
FilePath("bar"), 12, "xml");
|
271
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.string());
|
272
|
-
}
|
273
|
-
|
274
|
-
TEST(MakeFileNameTest, GenerateWhenNumberIsZeroAndDirIsEmpty) {
|
275
|
-
FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"),
|
276
|
-
0, "xml");
|
277
|
-
EXPECT_EQ("bar.xml", actual.string());
|
278
|
-
}
|
279
|
-
|
280
|
-
TEST(MakeFileNameTest, GenerateWhenNumberIsNotZeroAndDirIsEmpty) {
|
281
|
-
FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"),
|
282
|
-
14, "xml");
|
283
|
-
EXPECT_EQ("bar_14.xml", actual.string());
|
284
|
-
}
|
285
|
-
|
286
|
-
TEST(ConcatPathsTest, WorksWhenDirDoesNotEndWithPathSep) {
|
287
|
-
FilePath actual = FilePath::ConcatPaths(FilePath("foo"),
|
288
|
-
FilePath("bar.xml"));
|
289
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string());
|
290
|
-
}
|
291
|
-
|
292
|
-
TEST(ConcatPathsTest, WorksWhenPath1EndsWithPathSep) {
|
293
|
-
FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_),
|
294
|
-
FilePath("bar.xml"));
|
295
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string());
|
296
|
-
}
|
297
|
-
|
298
|
-
TEST(ConcatPathsTest, Path1BeingEmpty) {
|
299
|
-
FilePath actual = FilePath::ConcatPaths(FilePath(""),
|
300
|
-
FilePath("bar.xml"));
|
301
|
-
EXPECT_EQ("bar.xml", actual.string());
|
302
|
-
}
|
303
|
-
|
304
|
-
TEST(ConcatPathsTest, Path2BeingEmpty) {
|
305
|
-
FilePath actual = FilePath::ConcatPaths(FilePath("foo"), FilePath(""));
|
306
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_, actual.string());
|
307
|
-
}
|
308
|
-
|
309
|
-
TEST(ConcatPathsTest, BothPathBeingEmpty) {
|
310
|
-
FilePath actual = FilePath::ConcatPaths(FilePath(""),
|
311
|
-
FilePath(""));
|
312
|
-
EXPECT_EQ("", actual.string());
|
313
|
-
}
|
314
|
-
|
315
|
-
TEST(ConcatPathsTest, Path1ContainsPathSep) {
|
316
|
-
FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_ "bar"),
|
317
|
-
FilePath("foobar.xml"));
|
318
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar" GTEST_PATH_SEP_ "foobar.xml",
|
319
|
-
actual.string());
|
320
|
-
}
|
321
|
-
|
322
|
-
TEST(ConcatPathsTest, Path2ContainsPathSep) {
|
323
|
-
FilePath actual = FilePath::ConcatPaths(
|
324
|
-
FilePath("foo" GTEST_PATH_SEP_),
|
325
|
-
FilePath("bar" GTEST_PATH_SEP_ "bar.xml"));
|
326
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar" GTEST_PATH_SEP_ "bar.xml",
|
327
|
-
actual.string());
|
328
|
-
}
|
329
|
-
|
330
|
-
TEST(ConcatPathsTest, Path2EndsWithPathSep) {
|
331
|
-
FilePath actual = FilePath::ConcatPaths(FilePath("foo"),
|
332
|
-
FilePath("bar" GTEST_PATH_SEP_));
|
333
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar" GTEST_PATH_SEP_, actual.string());
|
334
|
-
}
|
335
|
-
|
336
|
-
// RemoveTrailingPathSeparator "" -> ""
|
337
|
-
TEST(RemoveTrailingPathSeparatorTest, EmptyString) {
|
338
|
-
EXPECT_EQ("", FilePath("").RemoveTrailingPathSeparator().string());
|
339
|
-
}
|
340
|
-
|
341
|
-
// RemoveTrailingPathSeparator "foo" -> "foo"
|
342
|
-
TEST(RemoveTrailingPathSeparatorTest, FileNoSlashString) {
|
343
|
-
EXPECT_EQ("foo", FilePath("foo").RemoveTrailingPathSeparator().string());
|
344
|
-
}
|
345
|
-
|
346
|
-
// RemoveTrailingPathSeparator "foo/" -> "foo"
|
347
|
-
TEST(RemoveTrailingPathSeparatorTest, ShouldRemoveTrailingSeparator) {
|
348
|
-
EXPECT_EQ("foo",
|
349
|
-
FilePath("foo" GTEST_PATH_SEP_).RemoveTrailingPathSeparator().string());
|
350
|
-
#if GTEST_HAS_ALT_PATH_SEP_
|
351
|
-
EXPECT_EQ("foo", FilePath("foo/").RemoveTrailingPathSeparator().string());
|
352
|
-
#endif
|
353
|
-
}
|
354
|
-
|
355
|
-
// RemoveTrailingPathSeparator "foo/bar/" -> "foo/bar/"
|
356
|
-
TEST(RemoveTrailingPathSeparatorTest, ShouldRemoveLastSeparator) {
|
357
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar",
|
358
|
-
FilePath("foo" GTEST_PATH_SEP_ "bar" GTEST_PATH_SEP_)
|
359
|
-
.RemoveTrailingPathSeparator().string());
|
360
|
-
}
|
361
|
-
|
362
|
-
// RemoveTrailingPathSeparator "foo/bar" -> "foo/bar"
|
363
|
-
TEST(RemoveTrailingPathSeparatorTest, ShouldReturnUnmodified) {
|
364
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar",
|
365
|
-
FilePath("foo" GTEST_PATH_SEP_ "bar")
|
366
|
-
.RemoveTrailingPathSeparator().string());
|
367
|
-
}
|
368
|
-
|
369
|
-
TEST(DirectoryTest, RootDirectoryExists) {
|
370
|
-
#if GTEST_OS_WINDOWS // We are on Windows.
|
371
|
-
char current_drive[_MAX_PATH]; // NOLINT
|
372
|
-
current_drive[0] = static_cast<char>(_getdrive() + 'A' - 1);
|
373
|
-
current_drive[1] = ':';
|
374
|
-
current_drive[2] = '\\';
|
375
|
-
current_drive[3] = '\0';
|
376
|
-
EXPECT_TRUE(FilePath(current_drive).DirectoryExists());
|
377
|
-
#else
|
378
|
-
EXPECT_TRUE(FilePath("/").DirectoryExists());
|
379
|
-
#endif // GTEST_OS_WINDOWS
|
380
|
-
}
|
381
|
-
|
382
|
-
#if GTEST_OS_WINDOWS
|
383
|
-
TEST(DirectoryTest, RootOfWrongDriveDoesNotExists) {
|
384
|
-
const int saved_drive_ = _getdrive();
|
385
|
-
// Find a drive that doesn't exist. Start with 'Z' to avoid common ones.
|
386
|
-
for (char drive = 'Z'; drive >= 'A'; drive--)
|
387
|
-
if (_chdrive(drive - 'A' + 1) == -1) {
|
388
|
-
char non_drive[_MAX_PATH]; // NOLINT
|
389
|
-
non_drive[0] = drive;
|
390
|
-
non_drive[1] = ':';
|
391
|
-
non_drive[2] = '\\';
|
392
|
-
non_drive[3] = '\0';
|
393
|
-
EXPECT_FALSE(FilePath(non_drive).DirectoryExists());
|
394
|
-
break;
|
395
|
-
}
|
396
|
-
_chdrive(saved_drive_);
|
397
|
-
}
|
398
|
-
#endif // GTEST_OS_WINDOWS
|
399
|
-
|
400
|
-
#if !GTEST_OS_WINDOWS_MOBILE
|
401
|
-
// Windows CE _does_ consider an empty directory to exist.
|
402
|
-
TEST(DirectoryTest, EmptyPathDirectoryDoesNotExist) {
|
403
|
-
EXPECT_FALSE(FilePath("").DirectoryExists());
|
404
|
-
}
|
405
|
-
#endif // !GTEST_OS_WINDOWS_MOBILE
|
406
|
-
|
407
|
-
TEST(DirectoryTest, CurrentDirectoryExists) {
|
408
|
-
#if GTEST_OS_WINDOWS // We are on Windows.
|
409
|
-
# ifndef _WIN32_CE // Windows CE doesn't have a current directory.
|
410
|
-
|
411
|
-
EXPECT_TRUE(FilePath(".").DirectoryExists());
|
412
|
-
EXPECT_TRUE(FilePath(".\\").DirectoryExists());
|
413
|
-
|
414
|
-
# endif // _WIN32_CE
|
415
|
-
#else
|
416
|
-
EXPECT_TRUE(FilePath(".").DirectoryExists());
|
417
|
-
EXPECT_TRUE(FilePath("./").DirectoryExists());
|
418
|
-
#endif // GTEST_OS_WINDOWS
|
419
|
-
}
|
420
|
-
|
421
|
-
// "foo/bar" == foo//bar" == "foo///bar"
|
422
|
-
TEST(NormalizeTest, MultipleConsecutiveSepaparatorsInMidstring) {
|
423
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar",
|
424
|
-
FilePath("foo" GTEST_PATH_SEP_ "bar").string());
|
425
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar",
|
426
|
-
FilePath("foo" GTEST_PATH_SEP_ GTEST_PATH_SEP_ "bar").string());
|
427
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar",
|
428
|
-
FilePath("foo" GTEST_PATH_SEP_ GTEST_PATH_SEP_
|
429
|
-
GTEST_PATH_SEP_ "bar").string());
|
430
|
-
}
|
431
|
-
|
432
|
-
// "/bar" == //bar" == "///bar"
|
433
|
-
TEST(NormalizeTest, MultipleConsecutiveSepaparatorsAtStringStart) {
|
434
|
-
EXPECT_EQ(GTEST_PATH_SEP_ "bar",
|
435
|
-
FilePath(GTEST_PATH_SEP_ "bar").string());
|
436
|
-
EXPECT_EQ(GTEST_PATH_SEP_ "bar",
|
437
|
-
FilePath(GTEST_PATH_SEP_ GTEST_PATH_SEP_ "bar").string());
|
438
|
-
EXPECT_EQ(GTEST_PATH_SEP_ "bar",
|
439
|
-
FilePath(GTEST_PATH_SEP_ GTEST_PATH_SEP_ GTEST_PATH_SEP_ "bar").string());
|
440
|
-
}
|
441
|
-
|
442
|
-
// "foo/" == foo//" == "foo///"
|
443
|
-
TEST(NormalizeTest, MultipleConsecutiveSepaparatorsAtStringEnd) {
|
444
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_,
|
445
|
-
FilePath("foo" GTEST_PATH_SEP_).string());
|
446
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_,
|
447
|
-
FilePath("foo" GTEST_PATH_SEP_ GTEST_PATH_SEP_).string());
|
448
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_,
|
449
|
-
FilePath("foo" GTEST_PATH_SEP_ GTEST_PATH_SEP_ GTEST_PATH_SEP_).string());
|
450
|
-
}
|
451
|
-
|
452
|
-
#if GTEST_HAS_ALT_PATH_SEP_
|
453
|
-
|
454
|
-
// Tests that separators at the end of the string are normalized
|
455
|
-
// regardless of their combination (e.g. "foo\" =="foo/\" ==
|
456
|
-
// "foo\\/").
|
457
|
-
TEST(NormalizeTest, MixAlternateSeparatorAtStringEnd) {
|
458
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_,
|
459
|
-
FilePath("foo/").string());
|
460
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_,
|
461
|
-
FilePath("foo" GTEST_PATH_SEP_ "/").string());
|
462
|
-
EXPECT_EQ("foo" GTEST_PATH_SEP_,
|
463
|
-
FilePath("foo//" GTEST_PATH_SEP_).string());
|
464
|
-
}
|
465
|
-
|
466
|
-
#endif
|
467
|
-
|
468
|
-
TEST(AssignmentOperatorTest, DefaultAssignedToNonDefault) {
|
469
|
-
FilePath default_path;
|
470
|
-
FilePath non_default_path("path");
|
471
|
-
non_default_path = default_path;
|
472
|
-
EXPECT_EQ("", non_default_path.string());
|
473
|
-
EXPECT_EQ("", default_path.string()); // RHS var is unchanged.
|
474
|
-
}
|
475
|
-
|
476
|
-
TEST(AssignmentOperatorTest, NonDefaultAssignedToDefault) {
|
477
|
-
FilePath non_default_path("path");
|
478
|
-
FilePath default_path;
|
479
|
-
default_path = non_default_path;
|
480
|
-
EXPECT_EQ("path", default_path.string());
|
481
|
-
EXPECT_EQ("path", non_default_path.string()); // RHS var is unchanged.
|
482
|
-
}
|
483
|
-
|
484
|
-
TEST(AssignmentOperatorTest, ConstAssignedToNonConst) {
|
485
|
-
const FilePath const_default_path("const_path");
|
486
|
-
FilePath non_default_path("path");
|
487
|
-
non_default_path = const_default_path;
|
488
|
-
EXPECT_EQ("const_path", non_default_path.string());
|
489
|
-
}
|
490
|
-
|
491
|
-
class DirectoryCreationTest : public Test {
|
492
|
-
protected:
|
493
|
-
virtual void SetUp() {
|
494
|
-
testdata_path_.Set(FilePath(
|
495
|
-
TempDir() + GetCurrentExecutableName().string() +
|
496
|
-
"_directory_creation" GTEST_PATH_SEP_ "test" GTEST_PATH_SEP_));
|
497
|
-
testdata_file_.Set(testdata_path_.RemoveTrailingPathSeparator());
|
498
|
-
|
499
|
-
unique_file0_.Set(FilePath::MakeFileName(testdata_path_, FilePath("unique"),
|
500
|
-
0, "txt"));
|
501
|
-
unique_file1_.Set(FilePath::MakeFileName(testdata_path_, FilePath("unique"),
|
502
|
-
1, "txt"));
|
503
|
-
|
504
|
-
remove(testdata_file_.c_str());
|
505
|
-
remove(unique_file0_.c_str());
|
506
|
-
remove(unique_file1_.c_str());
|
507
|
-
posix::RmDir(testdata_path_.c_str());
|
508
|
-
}
|
509
|
-
|
510
|
-
virtual void TearDown() {
|
511
|
-
remove(testdata_file_.c_str());
|
512
|
-
remove(unique_file0_.c_str());
|
513
|
-
remove(unique_file1_.c_str());
|
514
|
-
posix::RmDir(testdata_path_.c_str());
|
515
|
-
}
|
516
|
-
|
517
|
-
void CreateTextFile(const char* filename) {
|
518
|
-
FILE* f = posix::FOpen(filename, "w");
|
519
|
-
fprintf(f, "text\n");
|
520
|
-
fclose(f);
|
521
|
-
}
|
522
|
-
|
523
|
-
// Strings representing a directory and a file, with identical paths
|
524
|
-
// except for the trailing separator character that distinquishes
|
525
|
-
// a directory named 'test' from a file named 'test'. Example names:
|
526
|
-
FilePath testdata_path_; // "/tmp/directory_creation/test/"
|
527
|
-
FilePath testdata_file_; // "/tmp/directory_creation/test"
|
528
|
-
FilePath unique_file0_; // "/tmp/directory_creation/test/unique.txt"
|
529
|
-
FilePath unique_file1_; // "/tmp/directory_creation/test/unique_1.txt"
|
530
|
-
};
|
531
|
-
|
532
|
-
TEST_F(DirectoryCreationTest, CreateDirectoriesRecursively) {
|
533
|
-
EXPECT_FALSE(testdata_path_.DirectoryExists()) << testdata_path_.string();
|
534
|
-
EXPECT_TRUE(testdata_path_.CreateDirectoriesRecursively());
|
535
|
-
EXPECT_TRUE(testdata_path_.DirectoryExists());
|
536
|
-
}
|
537
|
-
|
538
|
-
TEST_F(DirectoryCreationTest, CreateDirectoriesForAlreadyExistingPath) {
|
539
|
-
EXPECT_FALSE(testdata_path_.DirectoryExists()) << testdata_path_.string();
|
540
|
-
EXPECT_TRUE(testdata_path_.CreateDirectoriesRecursively());
|
541
|
-
// Call 'create' again... should still succeed.
|
542
|
-
EXPECT_TRUE(testdata_path_.CreateDirectoriesRecursively());
|
543
|
-
}
|
544
|
-
|
545
|
-
TEST_F(DirectoryCreationTest, CreateDirectoriesAndUniqueFilename) {
|
546
|
-
FilePath file_path(FilePath::GenerateUniqueFileName(testdata_path_,
|
547
|
-
FilePath("unique"), "txt"));
|
548
|
-
EXPECT_EQ(unique_file0_.string(), file_path.string());
|
549
|
-
EXPECT_FALSE(file_path.FileOrDirectoryExists()); // file not there
|
550
|
-
|
551
|
-
testdata_path_.CreateDirectoriesRecursively();
|
552
|
-
EXPECT_FALSE(file_path.FileOrDirectoryExists()); // file still not there
|
553
|
-
CreateTextFile(file_path.c_str());
|
554
|
-
EXPECT_TRUE(file_path.FileOrDirectoryExists());
|
555
|
-
|
556
|
-
FilePath file_path2(FilePath::GenerateUniqueFileName(testdata_path_,
|
557
|
-
FilePath("unique"), "txt"));
|
558
|
-
EXPECT_EQ(unique_file1_.string(), file_path2.string());
|
559
|
-
EXPECT_FALSE(file_path2.FileOrDirectoryExists()); // file not there
|
560
|
-
CreateTextFile(file_path2.c_str());
|
561
|
-
EXPECT_TRUE(file_path2.FileOrDirectoryExists());
|
562
|
-
}
|
563
|
-
|
564
|
-
TEST_F(DirectoryCreationTest, CreateDirectoriesFail) {
|
565
|
-
// force a failure by putting a file where we will try to create a directory.
|
566
|
-
CreateTextFile(testdata_file_.c_str());
|
567
|
-
EXPECT_TRUE(testdata_file_.FileOrDirectoryExists());
|
568
|
-
EXPECT_FALSE(testdata_file_.DirectoryExists());
|
569
|
-
EXPECT_FALSE(testdata_file_.CreateDirectoriesRecursively());
|
570
|
-
}
|
571
|
-
|
572
|
-
TEST(NoDirectoryCreationTest, CreateNoDirectoriesForDefaultXmlFile) {
|
573
|
-
const FilePath test_detail_xml("test_detail.xml");
|
574
|
-
EXPECT_FALSE(test_detail_xml.CreateDirectoriesRecursively());
|
575
|
-
}
|
576
|
-
|
577
|
-
TEST(FilePathTest, DefaultConstructor) {
|
578
|
-
FilePath fp;
|
579
|
-
EXPECT_EQ("", fp.string());
|
580
|
-
}
|
581
|
-
|
582
|
-
TEST(FilePathTest, CharAndCopyConstructors) {
|
583
|
-
const FilePath fp("spicy");
|
584
|
-
EXPECT_EQ("spicy", fp.string());
|
585
|
-
|
586
|
-
const FilePath fp_copy(fp);
|
587
|
-
EXPECT_EQ("spicy", fp_copy.string());
|
588
|
-
}
|
589
|
-
|
590
|
-
TEST(FilePathTest, StringConstructor) {
|
591
|
-
const FilePath fp(std::string("cider"));
|
592
|
-
EXPECT_EQ("cider", fp.string());
|
593
|
-
}
|
594
|
-
|
595
|
-
TEST(FilePathTest, Set) {
|
596
|
-
const FilePath apple("apple");
|
597
|
-
FilePath mac("mac");
|
598
|
-
mac.Set(apple); // Implement Set() since overloading operator= is forbidden.
|
599
|
-
EXPECT_EQ("apple", mac.string());
|
600
|
-
EXPECT_EQ("apple", apple.string());
|
601
|
-
}
|
602
|
-
|
603
|
-
TEST(FilePathTest, ToString) {
|
604
|
-
const FilePath file("drink");
|
605
|
-
EXPECT_EQ("drink", file.string());
|
606
|
-
}
|
607
|
-
|
608
|
-
TEST(FilePathTest, RemoveExtension) {
|
609
|
-
EXPECT_EQ("app", FilePath("app.cc").RemoveExtension("cc").string());
|
610
|
-
EXPECT_EQ("app", FilePath("app.exe").RemoveExtension("exe").string());
|
611
|
-
EXPECT_EQ("APP", FilePath("APP.EXE").RemoveExtension("exe").string());
|
612
|
-
}
|
613
|
-
|
614
|
-
TEST(FilePathTest, RemoveExtensionWhenThereIsNoExtension) {
|
615
|
-
EXPECT_EQ("app", FilePath("app").RemoveExtension("exe").string());
|
616
|
-
}
|
617
|
-
|
618
|
-
TEST(FilePathTest, IsDirectory) {
|
619
|
-
EXPECT_FALSE(FilePath("cola").IsDirectory());
|
620
|
-
EXPECT_TRUE(FilePath("koala" GTEST_PATH_SEP_).IsDirectory());
|
621
|
-
#if GTEST_HAS_ALT_PATH_SEP_
|
622
|
-
EXPECT_TRUE(FilePath("koala/").IsDirectory());
|
623
|
-
#endif
|
624
|
-
}
|
625
|
-
|
626
|
-
TEST(FilePathTest, IsAbsolutePath) {
|
627
|
-
EXPECT_FALSE(FilePath("is" GTEST_PATH_SEP_ "relative").IsAbsolutePath());
|
628
|
-
EXPECT_FALSE(FilePath("").IsAbsolutePath());
|
629
|
-
#if GTEST_OS_WINDOWS
|
630
|
-
EXPECT_TRUE(FilePath("c:\\" GTEST_PATH_SEP_ "is_not"
|
631
|
-
GTEST_PATH_SEP_ "relative").IsAbsolutePath());
|
632
|
-
EXPECT_FALSE(FilePath("c:foo" GTEST_PATH_SEP_ "bar").IsAbsolutePath());
|
633
|
-
EXPECT_TRUE(FilePath("c:/" GTEST_PATH_SEP_ "is_not"
|
634
|
-
GTEST_PATH_SEP_ "relative").IsAbsolutePath());
|
635
|
-
#else
|
636
|
-
EXPECT_TRUE(FilePath(GTEST_PATH_SEP_ "is_not" GTEST_PATH_SEP_ "relative")
|
637
|
-
.IsAbsolutePath());
|
638
|
-
#endif // GTEST_OS_WINDOWS
|
639
|
-
}
|
640
|
-
|
641
|
-
TEST(FilePathTest, IsRootDirectory) {
|
642
|
-
#if GTEST_OS_WINDOWS
|
643
|
-
EXPECT_TRUE(FilePath("a:\\").IsRootDirectory());
|
644
|
-
EXPECT_TRUE(FilePath("Z:/").IsRootDirectory());
|
645
|
-
EXPECT_TRUE(FilePath("e://").IsRootDirectory());
|
646
|
-
EXPECT_FALSE(FilePath("").IsRootDirectory());
|
647
|
-
EXPECT_FALSE(FilePath("b:").IsRootDirectory());
|
648
|
-
EXPECT_FALSE(FilePath("b:a").IsRootDirectory());
|
649
|
-
EXPECT_FALSE(FilePath("8:/").IsRootDirectory());
|
650
|
-
EXPECT_FALSE(FilePath("c|/").IsRootDirectory());
|
651
|
-
#else
|
652
|
-
EXPECT_TRUE(FilePath("/").IsRootDirectory());
|
653
|
-
EXPECT_TRUE(FilePath("//").IsRootDirectory());
|
654
|
-
EXPECT_FALSE(FilePath("").IsRootDirectory());
|
655
|
-
EXPECT_FALSE(FilePath("\\").IsRootDirectory());
|
656
|
-
EXPECT_FALSE(FilePath("/x").IsRootDirectory());
|
657
|
-
#endif
|
658
|
-
}
|
659
|
-
|
660
|
-
} // namespace
|
661
|
-
} // namespace internal
|
662
|
-
} // namespace testing
|