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

Method testTuple1

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

Source from the content-addressed store, hash-verified

112 }
113
114 public void testTuple1() {
115 Tuple1<Integer> t = new Tuple1<>(1);
116
117 assertEquals(1, t.size());
118 assertEquals(Integer.valueOf(1), t.getV1());
119 assertEquals(1, t.get(0));
120 assertEquals(t, t.subTuple(0, t.size()));
121 }
122
123 public void testTuple2() {
124 Tuple2<Integer, Integer> t = new Tuple2<>(1, 2);

Callers

nothing calls this directly

Calls 6

getV1Method · 0.95
subTupleMethod · 0.80
sizeMethod · 0.65
getMethod · 0.65
assertEqualsMethod · 0.45
valueOfMethod · 0.45

Tested by

no test coverage detected