MCPcopy Create free account
hub / github.com/BirolLab/abyss / TEST

Function TEST

Unittest/Common/HistogramTest.cpp:6–14  ·  view source on GitHub ↗

test Histogram.empty()

Source from the content-addressed store, hash-verified

4
5// test Histogram.empty()
6TEST(emptyTest, base_cases)
7{
8 Histogram hi;
9 EXPECT_TRUE(hi.empty());
10 hi.insert(2);
11 EXPECT_FALSE(hi.empty());
12 hi.insert(4);
13 EXPECT_FALSE(hi.empty());
14}
15
16// test Histogram.count()
17TEST(countTest, non_negative_cases)

Callers

nothing calls this directly

Calls 6

removeNoiseMethod · 0.80
emptyMethod · 0.45
insertMethod · 0.45
sizeMethod · 0.45
countMethod · 0.45
sumMethod · 0.45

Tested by

no test coverage detected