David Pursehouse
6690a3d191
T0003_BasicTest: Fix incorrect usage of ExpectedException
There should only be one statement after the expect(...) method. Any additional statements after the statement that is expected to throw will never be executed in a passing test. This can lead to inappropriately passing tests where later incorrect assertions are skipped by the thrown exception. See https://errorprone.info/bugpattern/ExpectedExceptionChecker Change-Id: I20fecf8fb7a243e9da097e6d03fbf8cd69151bf0 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com> |
5 лет назад | |
---|---|---|
.. | ||
dfs | Allow overriding DfsPackDescription comparator for scanning packs | 6 лет назад |
file | T0003_BasicTest: Fix incorrect usage of ExpectedException | 5 лет назад |
pack | Return parsed objects from TestRepository.commit/tree/blob() | 6 лет назад |
reftable | Make Reftable seek* and has* method names more consistent | 5 лет назад |
reftree | Remove 'final' in parameter lists | 6 лет назад |