()
| 293 | } |
| 294 | |
| 295 | @Test |
| 296 | public void getStatTime() throws Exception { |
| 297 | final TSQuery query = new TSQuery(); |
| 298 | query.setStart("1h-ago"); |
| 299 | final QueryStats stats = new QueryStats(remote, query, headers); |
| 300 | stats.markSerializationSuccessful(); |
| 301 | assertEquals(1000.0, stats.getTimeStat(QueryStat.PROCESSING_PRE_WRITE_TIME), 0.001); |
| 302 | assertEquals(Double.NaN, stats.getTimeStat(QueryStat.AVG_AGGREGATION_TIME), 0.001); |
| 303 | } |
| 304 | } |
nothing calls this directly
no test coverage detected