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

Function TEST

3rdparty/stout/tests/proc_tests.cpp:41–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40
41TEST(ProcTest, Pids)
42{
43 Try<set<pid_t>> pids = proc::pids();
44
45 ASSERT_SOME(pids);
46 EXPECT_FALSE(pids->empty());
47 EXPECT_EQ(1u, pids->count(getpid()));
48 EXPECT_EQ(1u, pids->count(1));
49}
50
51
52TEST(ProcTest, Cpus)

Callers

nothing calls this directly

Calls 12

statusFunction · 0.85
getppidFunction · 0.85
SecondsClass · 0.85
MillisecondsClass · 0.85
joinMethod · 0.65
pidsFunction · 0.50
cpusFunction · 0.50
threadsFunction · 0.50
sleepFunction · 0.50
emptyMethod · 0.45
countMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected