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

Method ctor

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

Source from the content-addressed store, hash-verified

92 }
93
94 @Test
95 public void ctor() throws Exception {
96 final TSQuery query = new TSQuery();
97 query.setStart("1h-ago");
98 final QueryStats stats = new QueryStats(remote, query, headers);
99 assertNotNull(stats);
100 final Map<String, Object> map = QueryStats.getRunningAndCompleteStats();
101 assertNotNull(map);
102 assertEquals(1, ((List<Object>)map.get("running")).size());
103 assertEquals(0, ((Collection<QueryStats>)map.get("completed")).size());
104 assertSame(headers, stats.getRequestHeaders());
105 }
106
107 @Test
108 public void ctorDuplicate() throws Exception {

Callers

nothing calls this directly

Calls 5

setStartMethod · 0.95
getRequestHeadersMethod · 0.95
sizeMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected