MCPcopy Create free account
hub / github.com/Kitware/CMake / ReadFromJSONFile

Method ReadFromJSONFile

Source/CTest/cmCTestResourceSpec.cxx:124–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124bool cmCTestResourceSpec::ReadFromJSONFile(std::string const& filename)
125{
126 Json::Value root;
127
128 this->parseState = cmJSONState(filename, &root);
129 if (!this->parseState.errors.empty()) {
130 return false;
131 }
132
133 TopVersion version;
134 bool result;
135 if ((result = RootVersionHelper(version, &root, &parseState)) != true) {
136 return result;
137 }
138 if (version.Version.Major != 1 || version.Version.Minor != 0) {
139 return false;
140 }
141
142 return RootHelper(*this, &root, &parseState);
143}
144
145bool cmCTestResourceSpec::operator==(cmCTestResourceSpec const& other) const
146{

Callers 3

testSpecFunction · 0.80
doVerifyFunction · 0.80
InitResourceAllocatorMethod · 0.80

Calls 2

cmJSONStateClass · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected