diff options
author | Hardik Vala <hardikv@google.com> | 2022-08-22 13:42:26 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-08-22 13:42:57 (GMT) |
commit | 25cc5777a17820a6339204a3552aa1dd5e428669 (patch) | |
tree | 2c664b4206cd46fc774cc2b3d23222f3e476c75c /googlemock/test/gmock-matchers-comparisons_test.cc | |
parent | c0e032efe587efa99413dd9ac54c3953a7915588 (diff) | |
download | googletest-25cc5777a17820a6339204a3552aa1dd5e428669.zip googletest-25cc5777a17820a6339204a3552aa1dd5e428669.tar.gz googletest-25cc5777a17820a6339204a3552aa1dd5e428669.tar.bz2 |
Add support of 19-member structs to gmock UnpackStructImpl.
PiperOrigin-RevId: 469171380
Change-Id: Ic75fc0523924e40e620552d4c04b79dad22a68e0
Diffstat (limited to 'googlemock/test/gmock-matchers-comparisons_test.cc')
-rw-r--r-- | googlemock/test/gmock-matchers-comparisons_test.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/googlemock/test/gmock-matchers-comparisons_test.cc b/googlemock/test/gmock-matchers-comparisons_test.cc index 1c6cac6..0cf731f 100644 --- a/googlemock/test/gmock-matchers-comparisons_test.cc +++ b/googlemock/test/gmock-matchers-comparisons_test.cc @@ -1720,6 +1720,11 @@ TEST(FieldsAreTest, StructuredBindings) { }; EXPECT_THAT(MyVarType18{}, FieldsAre(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)); + struct MyVarType19 { + int a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s; + }; + EXPECT_THAT(MyVarType19{}, FieldsAre(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0)); } #endif |