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

Method testStepInt

src/test/groovy/groovy/lang/EmptyRangeTest.java:383–391  ·  view source on GitHub ↗

Test method for groovy.lang.EmptyRange#step(int).

()

Source from the content-addressed store, hash-verified

381 * Test method for {@link groovy.lang.EmptyRange#step(int)}.
382 */
383 public void testStepInt() {
384 List result = range.step(1);
385 assertTrue("too many elements", result.isEmpty());
386
387 // make sure a new list is returned each time
388 result.add(1);
389 result = range.step(1);
390 assertTrue("too many elements", result.isEmpty());
391 }
392}

Callers

nothing calls this directly

Calls 3

stepMethod · 0.65
addMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected