Skip bytecode inference of the actual value for `assume`.

To do so, I've generalized our existing support for skipping bytecode inference, which I had originally set up for `ExpectFailure` in https://github.com/google/truth/commit/3caa0e845575c2c6f17ee62716f7064584b79efb + https://github.com/google/truth/commit/24b5a310fd899b5554ded8287f33c826f5d7778b.

This change improves the performance of failed assumptions. It makes the messages of the resulting `AssumptionViolatedException` somewhat worse, but my sense is that no one really looks at those. As discussed in b/478281659, we could go further by also avoiding cleaning stack traces, which probably also no one looks at.

RELNOTES=n/a
PiperOrigin-RevId: 860538616
8 files changed
tree: ff7416888480e23a39e3cc0f76a4023e06e7ce06
  1. .github/
  2. core/
  3. extensions/
  4. javadoc-link/
  5. refactorings/
  6. util/
  7. .gitignore
  8. CONTRIBUTING.md
  9. LICENSE
  10. overview.html
  11. pom.xml
  12. README.md
README.md

Main Site Build Status Maven Release Stackoverflow

What is Truth?

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.