MCPcopy Create free account
hub / github.com/SmingHub/Sming / check

Method check

tests/HostTests/modules/Stream.cpp:222–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220
221private:
222 void check(TemplateStream& stream, const FlashString& ref)
223 {
224 MemoryDataStream mem;
225 mem.copyFrom(&stream, 1024);
226 String tmpl;
227 REQUIRE(mem.moveString(tmpl));
228 debug_i("tmpl: %s", tmpl.c_str());
229 debug_i(" ref: %s", String(ref).c_str());
230 REQUIRE(ref == tmpl);
231 }
232};
233
234void REGISTER_TEST(Stream)

Callers 1

checkCallbackTimerMethod · 0.45

Calls 4

StringClass · 0.50
copyFromMethod · 0.45
moveStringMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected