MCPcopy Index your code
hub / github.com/apache/groovy / testIterator

Method testIterator

src/test/groovy/groovy/lang/TupleTest.java:106–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 }
105
106 public void testIterator() {
107 final Tuple<Object> t = new Tuple<>(1, 2, 3);
108 assertEquals(6, DefaultGroovyMethods.sum(t.iterator()));
109 final Tuple3<Integer, Integer, Integer> t3 = new Tuple3<>(1, 2, 3);
110 Iterator iterator = t3.iterator();
111 assertEquals(6, DefaultGroovyMethods.sum(iterator));
112 }
113
114 public void testTuple1() {
115 Tuple1<Integer> t = new Tuple1<>(1);

Callers

nothing calls this directly

Calls 3

sumMethod · 0.95
iteratorMethod · 0.65
assertEqualsMethod · 0.45

Tested by

no test coverage detected