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

Method validateNoDS

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

Source from the content-addressed store, hash-verified

66 }
67
68 @Test
69 public void validateNoDS() {
70 TSSubQuery sub = getMetricForValidate();
71 sub.setDownsample(null);
72 sub.validateAndSetQuery();
73 assertEquals("sys.cpu.0", sub.getMetric());
74 assertEquals("wildcard(*)", sub.getTags().get("host"));
75 assertEquals("literal_or(lga)", sub.getTags().get("dc"));
76 assertEquals(Aggregators.SUM, sub.aggregator());
77 assertNull(sub.downsampler());
78 assertEquals(0, sub.downsampleInterval());
79 }
80
81 @Test (expected = IllegalArgumentException.class)
82 public void validateNullAgg() {

Callers

nothing calls this directly

Calls 9

getMetricForValidateMethod · 0.95
setDownsampleMethod · 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