MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / TEST_F

Function TEST_F

tests/src/Base/Stream.cpp:24–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22};
23
24TEST_F(TextOutputStreamTest, singleLineCharStar)
25{
26 // Arrange
27 const std::string testString("Single line const char *");
28 std::ostringstream ss;
29 Base::TextOutputStream tos(ss);
30
31 // Act
32 tos << testString;
33
34 // Assert - the number of newlines in the string, a colon, the string, a newline
35 EXPECT_EQ(std::string("0:") + testString + "\n", ss.str());
36}
37
38TEST_F(TextOutputStreamTest, multiLineCharStar)
39{

Callers

nothing calls this directly

Calls 7

strMethod · 0.45
writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
readMethod · 0.45
clearMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected