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

Method validate

test/core/TestTSSubQuery.java:40–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 }
39
40 @Test
41 public void validate() {
42 TSSubQuery sub = getMetricForValidate();
43 sub.validateAndSetQuery();
44 assertEquals("sys.cpu.0", sub.getMetric());
45 assertEquals("wildcard(*)", sub.getTags().get("host"));
46 assertEquals("literal_or(lga)", sub.getTags().get("dc"));
47 assertEquals(Aggregators.SUM, sub.aggregator());
48 assertEquals(Aggregators.AVG, sub.downsampler());
49 assertEquals(300000, sub.downsampleInterval());
50 }
51
52 @Test
53 public void validateTS() {

Callers

nothing calls this directly

Calls 8

getMetricForValidateMethod · 0.95
validateAndSetQueryMethod · 0.95
getMetricMethod · 0.95
getTagsMethod · 0.95
aggregatorMethod · 0.95
downsamplerMethod · 0.95
downsampleIntervalMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected