| 122 | } |
| 123 | |
| 124 | bool 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 | |
| 145 | bool cmCTestResourceSpec::operator==(cmCTestResourceSpec const& other) const |
| 146 | { |
no test coverage detected