MCPcopy Create free account
hub / github.com/canonical/multipass / TEST

Function TEST

tests/test_ssh_session.cpp:28–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26using namespace testing;
27
28TEST(SSHSession, throws_when_unable_to_allocate_session)
29{
30 REPLACE(ssh_new, []() { return nullptr; });
31 EXPECT_THROW(mp::SSHSession("theanswertoeverything", 42), std::runtime_error);
32}
33
34TEST(SSHSession, throws_when_unable_to_set_option)
35{

Callers

nothing calls this directly

Calls 3

EXPECT_THROWFunction · 0.70
SSHSessionClass · 0.50
execMethod · 0.45

Tested by

no test coverage detected