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

Function TEST

tests/unit/sys/test_msg_stack.cxx:11–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include <string>
10
11TEST(MsgStackTest, BasicTest) {
12 MsgStack msg_stack;
13
14 msg_stack.push("First");
15 auto first = msg_stack.getDump();
16 auto first_dump = "====== Back trace ======\n -> First\n";
17
18 EXPECT_EQ(first_dump, first);
19}
20
21TEST(MsgStackTest, PopTest) {
22 MsgStack msg_stack;

Callers

nothing calls this directly

Calls 8

to_stringFunction · 0.85
IsSubStringFunction · 0.85
pushMethod · 0.80
getDumpMethod · 0.80
popMethod · 0.80
dumpMethod · 0.80
clearMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected