MCPcopy Create free account
hub / github.com/apache/mesos / MockDocker

Method MockDocker

src/tests/mock_docker.cpp:42–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40namespace tests {
41
42MockDocker::MockDocker(
43 const string& path,
44 const string& socket,
45 const Option<JSON::Object>& config)
46 : Docker(path, socket, config)
47{
48 EXPECT_CALL(*this, ps(_, _))
49 .WillRepeatedly(Invoke(this, &MockDocker::_ps));
50
51 EXPECT_CALL(*this, pull(_, _, _))
52 .WillRepeatedly(Invoke(this, &MockDocker::_pull));
53
54 EXPECT_CALL(*this, stop(_, _, _))
55 .WillRepeatedly(Invoke(this, &MockDocker::_stop));
56
57 EXPECT_CALL(*this, run(_, _, _))
58 .WillRepeatedly(Invoke(this, &MockDocker::_run));
59
60 EXPECT_CALL(*this, inspect(_, _))
61 .WillRepeatedly(Invoke(this, &MockDocker::_inspect));
62}
63
64
65MockDocker::~MockDocker() {}

Callers

nothing calls this directly

Calls 2

InvokeClass · 0.85
runFunction · 0.50

Tested by

no test coverage detected