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

Method TestParser3

src/CompositeChat.cpp:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 void TestParser3(void)
63 {
64 cCompositeChat Msg;
65 Msg.ParseText("http://links.starting the text");
66 const cCompositeChat::cParts & Parts = Msg.GetParts();
67 assert_test(Parts.size() == 2);
68 assert_test(Parts[0]->m_PartType == cCompositeChat::ptUrl);
69 assert_test(Parts[1]->m_PartType == cCompositeChat::ptText);
70 assert_test(Parts[0]->m_Style == "");
71 assert_test(Parts[1]->m_Style == "");
72 }
73
74 void TestParser4(void)
75 {

Callers

nothing calls this directly

Calls 2

ParseTextMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected