Support unions in FieldRef matcher
commit9e93e470a091ff91ed89f8d85c37dcea9a27a312
authorShai Szulanski <iahs@meta.com>
Sat, 11 May 2024 01:07:22 +0000 (10 18:07 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Sat, 11 May 2024 01:07:22 +0000 (10 18:07 -0700)
tree76c3cb14433d0561df307aac4e402a244bd7ef71
parent28ea2af8d07c047795da1f632f87a3c122e8e128
Support unions in FieldRef matcher

Summary:
In generic code we often treat unions just like structs with all
optional fields. Allow doing so in tests as well.

Reviewed By: thedavekwon

Differential Revision: D57234011

fbshipit-source-id: 77fafa787f2aba591699fd4f0437abb1a630986b
third-party/thrift/src/thrift/lib/cpp2/util/gtest/Matcher-inl.h
third-party/thrift/src/thrift/lib/cpp2/util/gtest/Matcher.h
third-party/thrift/src/thrift/lib/cpp2/util/gtest/test/MatcherTest.cpp