MCPcopy Create free account
hub / github.com/OpenTSDB/opentsdb / configureFromQuery

Method configureFromQuery

test/core/TestTsdbQuery.java:211–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209 }
210
211 @Test
212 public void configureFromQuery() throws Exception {
213 setDataPointStorage();
214 final TSQuery ts_query = getTSQuery();
215 ts_query.validateAndSetQuery();
216 query = new TsdbQuery(tsdb);
217 query.configureFromQuery(ts_query, 0).joinUninterruptibly();
218
219 assertArrayEquals(METRIC_BYTES, ForTesting.getMetric(query));
220 assertEquals(1, ForTesting.getFilters(query).size());
221 assertArrayEquals(TAGK_BYTES, ForTesting.getGroupBys(query).get(0));
222 assertEquals(1, ForTesting.getGroupBys(query).size());
223 assertNotNull(ForTesting.getRateOptions(query));
224 }
225
226 @Test
227 public void configureFromQueryWithRate() throws Exception {

Callers

nothing calls this directly

Calls 10

getTSQueryMethod · 0.95
validateAndSetQueryMethod · 0.95
getMetricMethod · 0.95
getFiltersMethod · 0.95
getGroupBysMethod · 0.95
getRateOptionsMethod · 0.95
setDataPointStorageMethod · 0.80
configureFromQueryMethod · 0.65
sizeMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected