MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / START_SECTION

Function START_SECTION

src/tests/class_tests/openms/source/TraMLFile_test.cpp:161–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159 TEST_TRUE(exp_added == exp_original)
160}
161END_SECTION
162
163START_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}
180END_SECTION
181
182START_SECTION(bool isSemanticallyValid(const String & filename, StringList & errors, StringList & warnings))

Callers

nothing calls this directly

Calls 6

TEST_EQUALFunction · 0.85
storeMethod · 0.45
isValidMethod · 0.45
loadMethod · 0.45
isSemanticallyValidMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected