MCPcopy Create free account
hub / github.com/spotbugs/spotbugs / testFail4

Method testFail4

spotbugsTestCases/src/java/RECTest.java:77–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75
76 // should fail -- catches E, but E not thrown
77 public void testFail4() {
78 try {
79 for (int i = 0; i < 1000; i++)
80 for (int j = i; j < 1000; j++)
81 throwsNothing();
82 throwsIOException();
83 } catch (Exception e) {
84 dontTriggerEmptyExceptionHandler();
85 }
86 }
87
88 // should fail -- catches E, but E not thrown
89 public void testFail5() {

Callers

nothing calls this directly

Calls 3

throwsNothingMethod · 0.95
throwsIOExceptionMethod · 0.95

Tested by

no test coverage detected