()
| 282 | } |
| 283 | |
| 284 | @Test |
| 285 | public void getStat() throws Exception { |
| 286 | final TSQuery query = new TSQuery(); |
| 287 | query.setStart("1h-ago"); |
| 288 | final QueryStats stats = new QueryStats(remote, query, headers); |
| 289 | stats.addStat(QueryStat.AGGREGATED_SIZE, 42); |
| 290 | stats.markSerializationSuccessful(); |
| 291 | assertEquals(42, stats.getStat(QueryStat.AGGREGATED_SIZE)); |
| 292 | assertEquals(-1, stats.getStat(QueryStat.BYTES_FROM_STORAGE)); |
| 293 | } |
| 294 | |
| 295 | @Test |
| 296 | public void getStatTime() throws Exception { |
nothing calls this directly
no test coverage detected