| 159 | TEST_TRUE(exp_added == exp_original) |
| 160 | } |
| 161 | END_SECTION |
| 162 | |
| 163 | START_SECTION([EXTRA] bool isValid(const String & filename, std::ostream & os = std::cerr)) |
| 164 | { |
| 165 | std::string tmp_filename; |
| 166 | TraMLFile file; |
| 167 | TargetedExperiment e; |
| 168 | |
| 169 | //written empty file |
| 170 | NEW_TMP_FILE(tmp_filename); |
| 171 | file.store(tmp_filename, e); |
| 172 | TEST_EQUAL(file.isValid(tmp_filename, std::cerr), true); |
| 173 | |
| 174 | //written filled file |
| 175 | NEW_TMP_FILE(tmp_filename); |
| 176 | file.load(OPENMS_GET_TEST_DATA_PATH("ToyExample1.traML"), e); |
| 177 | file.store(tmp_filename, e); |
| 178 | TEST_EQUAL(file.isValid(tmp_filename, std::cerr), true); |
| 179 | } |
| 180 | END_SECTION |
| 181 | |
| 182 | START_SECTION(bool isSemanticallyValid(const String & filename, StringList & errors, StringList & warnings)) |
nothing calls this directly
no test coverage detected