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

Method testPass

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

Source from the content-addressed store, hash-verified

112
113 // should pass -- catches E, but E thrown
114 public void testPass() {
115 try {
116 for (int i = 0; i < 1000; i++)
117 for (int j = i; j < 1000; j++)
118 throwsNothing();
119 throw new Exception();
120 } catch (Exception e) {
121 dontTriggerEmptyExceptionHandler();
122 }
123 }
124
125 // should pass -- catches E, but E thrown indirectly
126 public void testPass2() {

Callers

nothing calls this directly

Calls 2

throwsNothingMethod · 0.95

Tested by

no test coverage detected