Lines Matching refs:Unpack
12 bool Unpack(std::tuple<Args...> *Tuple, std::initializer_list<uint8_t> data) { in Unpack() function
14 return Unpack(V.data(), V.size(), Tuple); in Unpack()
17 TEST(Unpack, Bool) { in TEST() argument
19 EXPECT_TRUE(Unpack(&T, {1})); in TEST()
22 EXPECT_TRUE(Unpack(&T, {0})); in TEST()
25 EXPECT_FALSE(Unpack(&T, {})); in TEST()
28 TEST(Unpack, BoolBool) { in TEST() argument
30 EXPECT_TRUE(Unpack(&T, {1, 0})); in TEST()
34 EXPECT_TRUE(Unpack(&T, {0, 1})); in TEST()
38 EXPECT_FALSE(Unpack(&T, {})); in TEST()
39 EXPECT_FALSE(Unpack(&T, {10})); in TEST()
42 TEST(Unpack, BoolInt) { in TEST() argument
44 EXPECT_TRUE(Unpack(&T, {1, 16, 2, 0, 0})); in TEST()
48 EXPECT_FALSE(Unpack(&T, {1, 2})); in TEST()
51 TEST(Unpack, Vector) { in TEST() argument
55 EXPECT_FALSE(Unpack(&T, {})); in TEST()
57 EXPECT_TRUE(Unpack(&T, {0})); in TEST()
60 EXPECT_TRUE(Unpack(&T, {0, 1, 2, 3})); in TEST()
63 EXPECT_TRUE(Unpack(&T, {2})); in TEST()
66 EXPECT_TRUE(Unpack(&T, {2, 3})); in TEST()
70 EXPECT_TRUE(Unpack(&T, {2, 9, 8})); in TEST()
76 TEST(Unpack, String) { in TEST() argument
80 EXPECT_TRUE(Unpack(&T, {2, 3})); in TEST()