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

Function TEST

tests/tests/path.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#endif
29
30TEST(lagi_path, invalid_token_name_throws_internal_error) {
31 Path p;
32
33 // These are InternalError because the tokens are currently always hardcoded
34 EXPECT_THROW(p.SetToken("no ?", "path"), agi::InternalError);
35 EXPECT_THROW(p.SetToken("?bad", "path"), agi::InternalError);
36}
37
38TEST(lagi_path, relative_path_clears_token) {
39 Path p;

Callers

nothing calls this directly

Calls 8

pathClass · 0.85
CurrentPathFunction · 0.85
SetTokenMethod · 0.80
stringMethod · 0.80
DecodeMethod · 0.80
MakeAbsoluteMethod · 0.80
MakeRelativeMethod · 0.80
EncodeMethod · 0.80

Tested by

no test coverage detected