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

Method parseFromColumnWithUIDMeta

test/meta/TestTSMeta.java:412–426  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

410 }
411
412 @Test
413 public void parseFromColumnWithUIDMeta() throws Exception {
414 final KeyValue column = mock(KeyValue.class);
415 when(column.key()).thenReturn(TSUID);
416 when(column.value()).thenReturn(storage.getColumn(META_TABLE,
417 TSUID,
418 NAME_FAMILY,
419 "ts_meta".getBytes(MockBase.ASCII())));
420 final TSMeta meta = TSMeta.parseFromColumn(tsdb, column, true)
421 .joinUninterruptibly();
422 assertNotNull(meta);
423 assertEquals("000001000001000001", meta.getTSUID());
424 assertNotNull(meta.getMetric());
425 assertEquals("sys.cpu.0", meta.getMetric().getName());
426 }
427
428 @Test (expected = NoSuchUniqueId.class)
429 public void parseFromColumnWithUIDMetaNSU() throws Exception {

Callers

nothing calls this directly

Calls 9

ASCIIMethod · 0.95
parseFromColumnMethod · 0.95
getTSUIDMethod · 0.95
getMetricMethod · 0.95
getColumnMethod · 0.80
keyMethod · 0.65
getNameMethod · 0.65
valueMethod · 0.45
getBytesMethod · 0.45

Tested by

no test coverage detected