Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cpputest/cpputest
/ TEST
Function
TEST
examples/AllTests/PrinterTest.cpp:47–53 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
45
};
46
47
TEST(Printer, PrintConstCharStar)
48
{
49
printer->Print(
"hello"
);
50
printer->Print(
"hello\n"
);
51
const char* expected =
"hellohello\n"
;
52
CHECK_EQUAL(expected, mockPrinter->getOutput());
53
}
54
55
TEST(Printer, PrintLong)
56
{
Callers
nothing calls this directly
Calls
2
getOutput
Method · 0.80
Print
Method · 0.45
Tested by
no test coverage detected