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

Class TestStruct

tests/fl/stl/list.cpp:571–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569
570FL_TEST_CASE("fl::list - with non-POD types") {
571 struct TestStruct {
572 int value;
573 TestStruct(int v) : value(v) {}
574 TestStruct(const TestStruct&) = default;
575 TestStruct& operator=(const TestStruct&) = default;
576 bool operator==(const TestStruct& other) const {
577 return value == other.value;
578 }
579 };
580
581 list<TestStruct> lst;
582 lst.push_back(TestStruct(10));

Callers 1

FL_TEST_FILEFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected