MCPcopy Create free account
hub / github.com/EndstoneMC/endstone / TEST

Function TEST

tests/bedrock/test_binary_stream.cpp:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17#include "bedrock/core/utility/binary_stream.h"
18
19TEST(ReadOnlyBinaryStreamTest, CopyBuffer)
20{
21 std::string buffer = "Hello, World!";
22 ReadOnlyBinaryStream stream(buffer, true);
23 EXPECT_EQ(stream.getView(), buffer);
24 EXPECT_NE(stream.getView().data(), buffer.data());
25}
26
27TEST(ReadOnlyBinaryStreamTest, NonCopyBuffer)
28{

Callers

nothing calls this directly

Calls 9

getViewMethod · 0.80
getReadPointerMethod · 0.80
ignoreErrorMethod · 0.80
valueMethod · 0.80
getUnreadLengthMethod · 0.80
getUnsignedVarIntMethod · 0.80
hasOverflowedMethod · 0.80
dataMethod · 0.45
getByteMethod · 0.45

Tested by

no test coverage detected