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

Method SetUp

src/tests/containerizer/port_mapping_tests.cpp:1901–1922  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1899{
1900public:
1901 virtual void SetUp()
1902 {
1903 ContainerizerTest<MesosContainerizer>::SetUp();
1904
1905 // Guess the name of the public interface.
1906 Result<string> _eth0 = link::eth0();
1907 ASSERT_SOME(_eth0) << "Failed to guess the name of the public interface";
1908
1909 eth0 = _eth0.get();
1910
1911 LOG(INFO) << "Using " << eth0 << " as the public interface";
1912
1913 // Guess the name of the loopback interface.
1914 Result<string> _lo = link::lo();
1915 ASSERT_SOME(_lo) << "Failed to guess the name of the loopback interface";
1916
1917 lo = _lo.get();
1918
1919 LOG(INFO) << "Using " << lo << " as the loopback interface";
1920
1921 cleanup(eth0, lo);
1922 }
1923
1924 virtual void TearDown()
1925 {

Callers

nothing calls this directly

Calls 4

eth0Function · 0.85
loFunction · 0.85
cleanupFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected