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

Method testNumericLiteral

src/test/java/pascal/taie/ir/LiteralTest.java:38–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36public class LiteralTest {
37
38 @Test
39 void testNumericLiteral() {
40 Random random = new Random();
41 for (int i = 0; i < 100; ++i) {
42 testIntLiteral(random.nextInt());
43 testLongLiteral(random.nextLong());
44 testFloatLiteral(random.nextFloat());
45 testDoubleLiteral(random.nextDouble());
46 }
47 }
48
49 private static void testIntLiteral(int i) {
50 assertEquals(IntLiteral.get(i).getValue(), i);

Callers

nothing calls this directly

Calls 4

testIntLiteralMethod · 0.95
testLongLiteralMethod · 0.95
testFloatLiteralMethod · 0.95
testDoubleLiteralMethod · 0.95

Tested by

no test coverage detected