MCPcopy Create free account
hub / github.com/FastLED/FastLED / Counter

Class Counter

tests/fl/stl/assert.cpp:244–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242
243 FL_SUBCASE("class method checks") {
244 class Counter {
245 public:
246 Counter() : count(0) {}
247 void increment() { count++; }
248 int get() const { return count; }
249 private:
250 int count;
251 };
252
253 Counter c;
254 FL_ASSERT(c.get() == 0, "initial count is zero");

Callers 6

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
load_baselineFunction · 0.85
diff_against_baselineFunction · 0.85

Calls

no outgoing calls

Tested by 4

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68