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

Method testPass3

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

Source from the content-addressed store, hash-verified

136
137 // should pass -- catches E, but E thrown by method
138 public void testPass3() {
139 try {
140 for (int i = 0; i < 1000; i++)
141 for (int j = i; j < 1000; j++)
142 throwsNothing();
143 throwsException();
144 } catch (Exception e) {
145 dontTriggerEmptyExceptionHandler();
146 }
147 }
148
149 // should pass -- catches E, but E thrown by static method
150 public void testPass4() {

Callers

nothing calls this directly

Calls 3

throwsNothingMethod · 0.95
throwsExceptionMethod · 0.95

Tested by

no test coverage detected