MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / test

Method test

concurrent/StreamExceptions.java:9–17  ·  view source on GitHub ↗
(String id, int failcount)

Source from the content-addressed store, hash-verified

7
8public class StreamExceptions {
9 static Stream<Breakable>
10 test(String id, int failcount) {
11 return
12 Stream.of(new Breakable(id, failcount))
13 .map(Breakable::work)
14 .map(Breakable::work)
15 .map(Breakable::work)
16 .map(Breakable::work);
17 }
18 public static void main(String[] args) {
19 // No operations are even applied ...
20 test("A", 1);

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected