MCPcopy Create free account
hub / github.com/ElementsProject/elements / TEST

Function TEST

src/leveldb/util/no_destructor_test.cc:33–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31class NoDestructorTest {};
32
33TEST(NoDestructorTest, StackInstance) {
34 NoDestructor<DoNotDestruct> instance(kGoldenA, kGoldenB);
35 ASSERT_EQ(kGoldenA, instance.get()->a);
36 ASSERT_EQ(kGoldenB, instance.get()->b);
37}
38
39TEST(NoDestructorTest, StaticInstance) {
40 static NoDestructor<DoNotDestruct> instance(kGoldenA, kGoldenB);

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected