MCPcopy Create free account
hub / github.com/aria2/aria2 / testResolveAuthConfig_ignoreDefault

Method testResolveAuthConfig_ignoreDefault

test/NetrcAuthResolverTest.cc:76–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void NetrcAuthResolverTest::testResolveAuthConfig_ignoreDefault()
77{
78 resolver_->ignoreDefault();
79 auto authConfig = resolver_->resolveAuthConfig("mirror");
80 CPPUNIT_ASSERT_EQUAL(std::string("foo:bar"), authConfig->getAuthText());
81
82 resolver_->useDefault();
83 auto defAuthConfig = resolver_->resolveAuthConfig("mirror");
84 CPPUNIT_ASSERT_EQUAL(std::string("default:defaultpasswd"),
85 defAuthConfig->getAuthText());
86}
87
88} // namespace aria2

Callers

nothing calls this directly

Calls 4

ignoreDefaultMethod · 0.80
getAuthTextMethod · 0.80
useDefaultMethod · 0.80
resolveAuthConfigMethod · 0.45

Tested by

no test coverage detected