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

Method testPass4

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

Source from the content-addressed store, hash-verified

148
149 // should pass -- catches E, but E thrown by static method
150 public void testPass4() {
151 try {
152 for (int i = 0; i < 1000; i++)
153 for (int j = i; j < 1000; j++)
154 throwsNothing();
155 staticThrowsException();
156 } catch (Exception e) {
157 dontTriggerEmptyExceptionHandler();
158 }
159 }
160
161 // should pass -- catches E, but RuntimeException caught first
162 public void testPass5() {

Callers

nothing calls this directly

Calls 3

throwsNothingMethod · 0.95
staticThrowsExceptionMethod · 0.95

Tested by

no test coverage detected