MCPcopy Create free account
hub / github.com/baidu/babylon / ArrayTest

Class ArrayTest

test/serialization/test_array.cpp:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using ::babylon::SerializeTraits;
13
14struct ArrayTest : public ::testing::Test {
15 ::std::string string;
16 ::std::mt19937_64 gen {::std::random_device {}()};
17
18 template <typename T, size_t N>
19 void assert_eq(T (&left)[N], T (&right)[N]) {
20 for (size_t i = 0; i < N; ++i) {
21 ASSERT_EQ(left[i], right[i]);
22 }
23 }
24};
25
26template <typename T, size_t N>
27bool eq(T (&left)[N], T (&right)[N]) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected