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

Method getUIDMetaExists

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

Source from the content-addressed store, hash-verified

155 }
156
157 @Test
158 public void getUIDMetaExists() throws Exception {
159 meta = UIDMeta.getUIDMeta(tsdb, UniqueIdType.METRIC, "000001")
160 .joinUninterruptibly();
161 assertEquals(UniqueIdType.METRIC, meta.getType());
162 assertEquals("sys.cpu.0", meta.getName());
163 assertEquals("000001", meta.getUID());
164 assertEquals("MyNotes", meta.getNotes());
165 }
166
167 @Test (expected = NoSuchUniqueId.class)
168 public void getUIDMetaNoSuch() throws Exception {

Callers

nothing calls this directly

Calls 5

getUIDMetaMethod · 0.95
getNameMethod · 0.65
getTypeMethod · 0.45
getUIDMethod · 0.45
getNotesMethod · 0.45

Tested by

no test coverage detected