Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve UseCorrectAssertInTests handling for primitive equality compa…
…risons Recommended via[] assert a == 1; // usage to fix assertThat(a).isSameInstanceAs(1); // old transform assertThat(a).isEqualTo(1); // new behavior Performed a blaze_error_prone run on a sample directory to validate my own CUJ: unknown commit. I also started going down other related cleanups to tackle some other primitive comparison cases like "assert a == false" (to use isFalse) or "assert a > 0" (to use isGreaterThan), but there are so few usages that I don't think it's worth polishing and complicating this logic for such edge cases. PiperOrigin-RevId: 518859546
- Loading branch information
1 parent
e5cff75
commit ba51498
Showing
2 changed files
with
64 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters