MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / TEST

Function TEST

tests/tests/mru.cpp:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24static const char conf_ok[] = "data/mru_ok.json";
25
26TEST(lagi_mru, load_from_file) {
27 ASSERT_NO_THROW(agi::MRUManager mru(conf_ok, default_mru));
28 agi::MRUManager mru(conf_ok, default_mru);
29 ASSERT_NO_THROW(mru.Get("Video"));
30 ASSERT_EQ(2u, mru.Get("Video")->size());
31 auto entry = mru.Get("Video")->begin();
32 EXPECT_STREQ("Entry One", (*entry++).string().c_str());
33 EXPECT_STREQ("Entry Two", (*entry++).string().c_str());
34 EXPECT_TRUE(mru.Get("Video")->end() == entry);
35}
36
37TEST(lagi_mru, load_from_default_string) {
38 agi::fs::Remove("data/mru_tmp");

Callers

nothing calls this directly

Calls 8

stringMethod · 0.80
CopyFunction · 0.50
GetMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
AddMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected