MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / TEST

Function TEST

tests/unit/test_stream.cpp:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include "../tests_common.h"
16
17TEST(ConcatAndInsertTests, ConcatNoInsertionTest) {
18 char b1[] = {'a', 'b'};
19 char b2[] = {'c', 'd', 'e'};
20 auto res = stream::concat_and_insert(0, 2, std::string_view {b1, sizeof(b1)}, std::string_view {b2, sizeof(b2)});
21 auto expected = std::vector<uint8_t> {'a', 'b', 'c', 'd', 'e'};
22 ASSERT_EQ(res, expected);
23}
24
25TEST(ConcatAndInsertTests, ConcatLargeStrideTest) {
26 char b1[] = {'a', 'b'};

Callers

nothing calls this directly

Calls 1

concat_and_insertFunction · 0.85

Tested by

no test coverage detected