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

Function cacheFile

src/tests/class_tests/openms/source/CachedMzMLHandler_test.cpp:27–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using namespace std;
26
27void cacheFile(CachedMzMLHandler& cache, std::string & tmp_filename, PeakMap& exp)
28{
29 NEW_TMP_FILE(tmp_filename);
30
31 // Load experiment
32 MzMLFile().load(OPENMS_GET_TEST_DATA_PATH("MzMLFile_1.mzML"), exp);
33 TEST_EQUAL(exp.getNrSpectra() > 0, true)
34 TEST_EQUAL(exp.getNrChromatograms() > 0, true)
35
36 // Cache the experiment to a temporary file
37 cache.writeMemdump(exp, tmp_filename);
38 // Create the index from the given file
39 cache.createMemdumpIndex(tmp_filename);
40}
41
42START_TEST(CachedMzMLHandler, "$Id$")
43

Callers 1

Calls 7

MzMLFileClass · 0.85
TEST_EQUALFunction · 0.85
writeMemdumpMethod · 0.80
createMemdumpIndexMethod · 0.80
loadMethod · 0.45
getNrSpectraMethod · 0.45
getNrChromatogramsMethod · 0.45

Tested by

no test coverage detected