bool MapAlignmentTransformer::storeOriginalRT_(MetaInfoInterface& meta_info, double original_rt) { if (meta_info.metaValueExists("original_RT")) return false; meta_info.setMetaValue("original_RT", original_rt); return true; }
mi.setMetaValue("a",1); mi.setMetaValue("d",1); mi.setMetaValue("x",1); mi.getKeys(vec); TEST_EQUAL(vec.size(),5) TEST_EQUAL(vec[0],3) TEST_EQUAL(vec[1],4) TEST_EQUAL(vec[2],1025) TEST_EQUAL(vec[3],1026) TEST_EQUAL(vec[4],1027) END_SECTION START_SECTION((bool metaValueExists(const String& name) const)) MetaInfoInterface mi4; TEST_EQUAL(mi4.metaValueExists("cluster_id"),false) mi4.setMetaValue("cluster_id",4712.1234); TEST_EQUAL(mi4.metaValueExists("cluster_id"),true) END_SECTION START_SECTION((bool metaValueExists(UInt index) const)) MetaInfoInterface mi4; TEST_EQUAL(mi4.metaValueExists(2),false) mi4.setMetaValue("cluster_id",4712.1234); TEST_EQUAL(mi4.metaValueExists(2),true) END_SECTION START_SECTION(([EXTRA] void getKeys(std::vector<String>& keys) const)) std::vector<String> keys; mi.getKeys(keys); TEST_EQUAL(keys.size(),2)