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

Method testResolveAuthConfig_with_userDefined

test/DefaultAuthResolverTest.cc:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void DefaultAuthResolverTest::testResolveAuthConfig_with_userDefined()
41{
42 resolver_->setUserDefinedCred("myname", "mypasswd");
43 auto authConfig = resolver_->resolveAuthConfig("localhost");
44 CPPUNIT_ASSERT_EQUAL(std::string("myname:mypasswd"),
45 authConfig->getAuthText());
46}
47
48} // namespace aria2

Callers

nothing calls this directly

Calls 3

setUserDefinedCredMethod · 0.80
getAuthTextMethod · 0.80
resolveAuthConfigMethod · 0.45

Tested by

no test coverage detected