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

Method invalidMetric

test/query/pojo/TestQuery.java:131–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129 }
130
131 @Test(expected = IllegalArgumentException.class)
132 public void invalidMetric() throws Exception {
133 Metric invalidMetric = Metric.Builder().build();
134 Query query = getDefaultQueryBuilder()
135 .setMetrics(Arrays.asList(invalidMetric)).build();
136 query.validate();
137 }
138
139 @Test(expected = IllegalArgumentException.class)
140 public void invalidFilter() throws Exception {

Callers

nothing calls this directly

Calls 5

BuilderMethod · 0.95
validateMethod · 0.95
setMetricsMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected