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

Function TEST

3rdparty/libprocess/src/tests/timeseries_tests.cpp:39–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38
39TEST(TimeSeriesTest, Set)
40{
41 TimeSeries<int> series;
42
43 ASSERT_TRUE(series.empty());
44
45 series.set(1);
46
47 ASSERT_FALSE(series.empty());
48
49 const Option<TimeSeries<int>::Value> latest = series.latest();
50
51 ASSERT_SOME(latest);
52 ASSERT_EQ(1, latest->data);
53}
54
55
56TEST(TimeSeriesTest, Sparsify)

Callers

nothing calls this directly

Calls 7

maxFunction · 0.85
SecondsClass · 0.85
toListFunction · 0.85
latestMethod · 0.80
emptyMethod · 0.45
setMethod · 0.45
truncateMethod · 0.45

Tested by

no test coverage detected