MCPcopy Create free account
hub / github.com/apache/impala / TEST_F

Function TEST_F

be/src/util/system-state-info-test.cc:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31};
32
33TEST_F(SystemStateInfoTest, FirstCallReturnsZero) {
34 const SystemStateInfo::CpuUsageRatios& r = info.GetCpuUsageRatios();
35 EXPECT_EQ(0, r.user.Load() + r.system.Load() + r.iowait.Load());
36
37 const SystemStateInfo::NetworkUsage& n = info.GetNetworkUsage();
38 EXPECT_EQ(0, n.rx_rate.Load() + n.tx_rate.Load());
39}
40
41// Smoke test to make sure that we read non-zero values from /proc/stat.
42TEST_F(SystemStateInfoTest, ReadProcStat) {

Callers

nothing calls this directly

Calls 14

SubstituteFunction · 0.85
ReadCurrentProcStatMethod · 0.80
ReadCurrentProcNetDevMethod · 0.80
ReadProcStatStringMethod · 0.80
ReadProcNetDevStringMethod · 0.80
ComputeCpuRatiosMethod · 0.80
ComputeNetworkUsageMethod · 0.80
ComputeDiskStatsMethod · 0.80
LoadMethod · 0.45

Tested by

no test coverage detected