MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / TEST

Function TEST

common/memory-stream/test/test.cpp:69–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69TEST(MemoryStream, normalTest)
70{
71 unique_ptr<IStream> s( new_simplex_memory_stream(16) );
72 thread_create(&stream_writer, s.get());
73
74 string rst;
75 do_read_append(s.get(), 13, rst);
76 do_read_append(s.get(), 26, rst);
77 do_read_append(s.get(), 13, rst);
78 string std_rst = STR;
79 std_rst += STR;
80 EXPECT_EQ(rst, std_rst);
81 LOG_INFO("buffer read: '`'", rst);
82}
83
84int main(int argc, char **argv)
85{

Callers

nothing calls this directly

Calls 4

thread_createFunction · 0.85
do_read_appendFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected