MCPcopy Create free account
hub / github.com/boutproject/BOUT-dev / TEST

Function TEST

tests/unit/include/bout/test_bout_enum_class.cxx:10–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8BOUT_ENUM_CLASS(TestEnum, foo, bar);
9
10TEST(BoutEnumClass, toString) {
11 EXPECT_EQ(toString(TestEnum::foo), "foo");
12 EXPECT_EQ(toString(TestEnum::bar), "bar");
13}
14
15TEST(BoutEnumClass, fromString) {
16 EXPECT_EQ(TestEnumFromString("foo"), TestEnum::foo);

Callers

nothing calls this directly

Calls 2

toStringFunction · 0.50
strMethod · 0.45

Tested by

no test coverage detected