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

Function TEST_F

tests/test_sshfsmount.cpp:127–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125} // namespace
126
127TEST_F(SshfsMount, throws_when_sshfs_does_not_exist)
128{
129 bool invoked{false};
130 auto request_exec = make_exec_that_fails_for("which sshfs", invoked);
131 REPLACE(ssh_channel_request_exec, request_exec);
132
133 EXPECT_THROW(make_sshfsmount(), mp::SSHFSMissingError);
134 EXPECT_TRUE(invoked);
135}
136
137TEST_F(SshfsMount, throws_when_unable_to_make_target_dir)
138{

Callers

nothing calls this directly

Calls 6

return_exit_codeMethod · 0.80
waitMethod · 0.80
signalMethod · 0.80
wait_forMethod · 0.80
EXPECT_THROWFunction · 0.70
findMethod · 0.45

Tested by

no test coverage detected