#include "StarDataStreamDevices.hpp" #include "gtest/gtest.h" using namespace Star; template void testMap(T const& map) { auto byteArray = DataStreamBuffer::serializeMapContainer(map); auto mapOut = DataStreamBuffer::deserializeMapContainer(byteArray); EXPECT_EQ(map, mapOut); } TEST(DataStreamTest, All) { Map map1 = { {1, 2}, {3, 4}, {5, 6}, }; Map map2 = { {"asdf", 1}, {"asdf1", 2}, {"omg", 2}, }; Map map3 = {}; testMap(map1); testMap(map2); testMap(map3); }