MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / testOfLongValue

Method testOfLongValue

test/core/TestMutableDataPoint.java:83–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81 }
82
83 @Test
84 public void testOfLongValue() {
85 MutableDataPoint dp = MutableDataPoint.ofLongValue(19L, 1717171L);
86 assertTrue(dp.isInteger());
87 assertEquals(1717171L, dp.longValue());
88 assertEquals(19L, dp.timestamp());
89 assertEquals(1717171L, dp.toDouble(), 0);
90 }
91
92 @Test(expected = ClassCastException.class)
93 public void testDoubleValue_castException() {

Callers

nothing calls this directly

Calls 5

ofLongValueMethod · 0.95
isIntegerMethod · 0.95
longValueMethod · 0.95
timestampMethod · 0.95
toDoubleMethod · 0.95

Tested by

no test coverage detected