commit | b50d878b75b3b8b81246389cd39e5cd731b531f8 | [log] [tgz] |
---|---|---|
author | otjdavies <otjdavies@google.com> | Thu Nov 21 00:11:15 2019 -0800 |
committer | Nick Glorioso <nick@nickglorioso.com> | Thu Nov 21 10:04:40 2019 -0500 |
tree | 4721d383e73dc140deb3ad2f51d1ff52c2328bf2 | |
parent | efaac0648728e49692f8972a03b122a92994a42e [diff] |
Roll forward from 2eb500240d0b71d54500afdd7f3eb82e445e31bc after fixing field scope issues: - Add checks for FieldScope for * google.protobuf.Any.type_url * google.protobuf.Any.value - Add new tests for field scope and field absence. - Added workaround for b/144793871 ---- ProtoTruth: Unpack Any before comparing RELNOTES: - `ProtoTruthMessageDifferencer`: Unpacks Any messages before comparing the unpacked message. Using a user supplied TypeRegister in the FluentEqualityConfig. If the message descriptors can not be found in the TypeRegister that it reverts to the original behaviour of comparing the Any messages value ByteString. - `ProtoSubject`: added `usingTypeRegistry(TypeRegistry)` method to allow the user to provide a TypeRegistry for processing the Any fields it encounters. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=281689011
Truth makes your test assertions and failure messages more readable. Similar to AssertJ, it natively supports many JDK and Guava types, and it is extensible to others.
Truth is owned and maintained by the Guava team. It is used in the majority of the tests in Google’s own codebase.
Read more at the main website.