| commit | dc8325b98d1811f4e8b458e8f4f9660e0bc588de | [log] [tgz] |
|---|---|---|
| author | cushon <cushon@google.com> | Mon Aug 07 16:26:53 2017 +0200 |
| committer | Marcel Hlopko <hlopko@google.com> | Tue Aug 08 13:02:01 2017 +0200 |
| tree | 399e399468dea82825b89fa1d1173c9f75525444 | |
| parent | 2f120f780b1e02e844403b337563fcfa77e43c4a [diff] |
Clean up expected exception tests
in preparation for a change[]
Previously calls to @CheckReturnValue-annotated methods were ignored in tests
that used ExpectedException. The enforcement is being changed to only ignore
calls that immediately follow a call to ExpectedException#expect to improve
performance.
Also note that using `assertThrows` or `expectThrows` instead of
`ExpectedException` is now strongly recommended:
[]
Tested:
TAP --sample for global presubmit queue
[]
PiperOrigin-RevId: 164457920
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel only rebuilds what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase and Continuous Integration system. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.