MCPcopy Create free account
hub / github.com/cuberite/cuberite / TestParser4

Method TestParser4

src/CompositeChat.cpp:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 void TestParser4(void)
75 {
76 cCompositeChat Msg;
77 Msg.ParseText("links finishing the text: http://some.server");
78 const cCompositeChat::cParts & Parts = Msg.GetParts();
79 assert_test(Parts.size() == 2);
80 assert_test(Parts[0]->m_PartType == cCompositeChat::ptText);
81 assert_test(Parts[1]->m_PartType == cCompositeChat::ptUrl);
82 assert_test(Parts[0]->m_Style == "");
83 assert_test(Parts[1]->m_Style == "");
84 }
85
86 void TestParser5(void)
87 {

Callers

nothing calls this directly

Calls 2

ParseTextMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected