()
| 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 { |
nothing calls this directly
no test coverage detected