MCPcopy Create free account
hub / github.com/LFYSec/MScan / testGet

Method testGet

src/test/java/pascal/taie/util/IndexerTest.java:46–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 }
45
46 @Test
47 void testGet() {
48 Indexer<String> i = new SimpleIndexer<>();
49 assertEquals(0, i.getIndex("0"));
50 assertEquals(0, i.getIndex("0"));
51 assertEquals(1, i.getIndex("1"));
52 assertEquals(2, i.getIndex("2"));
53 }
54
55 @Test
56 void testGetNull() {

Callers

nothing calls this directly

Calls 1

getIndexMethod · 0.95

Tested by

no test coverage detected