| 17 | #include "bedrock/core/utility/binary_stream.h" |
| 18 | |
| 19 | TEST(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 | |
| 27 | TEST(ReadOnlyBinaryStreamTest, NonCopyBuffer) |
| 28 | { |
nothing calls this directly
no test coverage detected