Add support of 18-member structs to gmock UnpackStructImpl.
PiperOrigin-RevId: 463961734 Change-Id: Ib62e320a745c190955f181c1f4f12e4cd407ef22
This commit is contained in:
committed by
Copybara-Service
parent
3bc8fb3723
commit
dd7a9d29a3
@@ -1710,6 +1710,16 @@ TEST(FieldsAreTest, StructuredBindings) {
|
||||
};
|
||||
EXPECT_THAT(MyVarType16{},
|
||||
FieldsAre(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
|
||||
struct MyVarType17 {
|
||||
int a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q;
|
||||
};
|
||||
EXPECT_THAT(MyVarType17{},
|
||||
FieldsAre(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
|
||||
struct MyVarType18 {
|
||||
int a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r;
|
||||
};
|
||||
EXPECT_THAT(MyVarType18{},
|
||||
FieldsAre(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user