MCPcopy Create free account
hub / github.com/dfranx/SHADERed / TEST

Function TEST

libs/cppdap/src/content_stream_test.cpp:43–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41} // namespace
42
43TEST(ContentStreamTest, Write) {
44 auto sb = dap::StringBuffer::create();
45 auto ptr = sb.get();
46 dap::ContentWriter cw(std::move(sb));
47 cw.write("Content payload number one");
48 cw.write("Content payload number two");
49 cw.write("Content payload number three");
50 ASSERT_EQ(ptr->string(),
51 "Content-Length: 26\r\n\r\nContent payload number one"
52 "Content-Length: 26\r\n\r\nContent payload number two"
53 "Content-Length: 28\r\n\r\nContent payload number three");
54}
55
56TEST(ContentStreamTest, Read) {
57 auto sb = dap::StringBuffer::create();

Callers

nothing calls this directly

Calls 5

createFunction · 0.50
getMethod · 0.45
writeMethod · 0.45
stringMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected