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

Method constructor3

test/meta/TestUIDMeta.java:96–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94 }
95
96 @Test
97 public void constructor3() {
98 meta = new UIDMeta(UniqueIdType.METRIC, new byte[] {0, 0, 5}, "sys.cpu.5");
99 assertNotNull(meta);
100 assertEquals(UniqueIdType.METRIC, meta.getType());
101 assertEquals("000005", meta.getUID());
102 assertEquals("sys.cpu.5", meta.getName());
103 assertEquals(System.currentTimeMillis() / 1000, meta.getCreated());
104 }
105
106 @Test
107 public void createConstructor() {

Callers

nothing calls this directly

Calls 5

getNameMethod · 0.65
getTypeMethod · 0.45
getUIDMethod · 0.45
currentTimeMillisMethod · 0.45
getCreatedMethod · 0.45

Tested by

no test coverage detected