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

Method executed

test/stats/TestQueryStats.java:244–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242 }
243
244 @Test
245 public void executed() throws Exception {
246 final TSQuery query = new TSQuery();
247 query.setStart("1h-ago");
248 final QueryStats stats = new QueryStats(remote, query, headers);
249 stats.markSerialized(HttpResponseStatus.REQUEST_TIMEOUT, null);
250 final Map<String, Object> map = QueryStats.getRunningAndCompleteStats();
251 assertNotNull(map);
252 assertEquals(0, ((List<Object>)map.get("running")).size());
253 assertEquals(1, ((Collection<QueryStats>)map.get("completed")).size());
254 final QueryStats completed = ((Collection<QueryStats>)map.get("completed"))
255 .iterator().next();
256 assertEquals(1, completed.getExecuted());
257 }
258
259 @Test
260 public void executedTwice() throws Exception {

Callers

nothing calls this directly

Calls 8

setStartMethod · 0.95
markSerializedMethod · 0.95
getExecutedMethod · 0.95
sizeMethod · 0.65
nextMethod · 0.65
iteratorMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected