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

Method testPass2

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

Source from the content-addressed store, hash-verified

124
125 // should pass -- catches E, but E thrown indirectly
126 public void testPass2() {
127 try {
128 for (int i = 0; i < 1000; i++)
129 for (int j = i; j < 1000; j++)
130 throwsNothing();
131 throw anException;
132 } catch (Exception e) {
133 dontTriggerEmptyExceptionHandler();
134 }
135 }
136
137 // should pass -- catches E, but E thrown by method
138 public void testPass3() {

Callers

nothing calls this directly

Calls 2

throwsNothingMethod · 0.95

Tested by

no test coverage detected