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

Method invalidExpression

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

Source from the content-addressed store, hash-verified

145 }
146
147 @Test(expected = IllegalArgumentException.class)
148 public void invalidExpression() throws Exception {
149 Expression invalidExpression = Expression.Builder().build();
150 Query query = getDefaultQueryBuilder()
151 .setExpressions(Arrays.asList(invalidExpression)).build();
152 query.validate();
153 }
154
155 @Test(expected = IllegalArgumentException.class)
156 public void noSuchFilterIdInMetric() throws Exception {

Callers

nothing calls this directly

Calls 5

BuilderMethod · 0.95
validateMethod · 0.95
setExpressionsMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected