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

Method ctorNullHeaders

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

Source from the content-addressed store, hash-verified

137 }
138
139 @Test
140 public void ctorNullHeaders() throws Exception {
141 final TSQuery query = new TSQuery();
142 query.setStart("1h-ago");
143 final QueryStats stats = new QueryStats(remote, query, null);
144 assertNotNull(stats);
145 final Map<String, Object> map = QueryStats.getRunningAndCompleteStats();
146 assertNotNull(map);
147 assertEquals(1, ((List<Object>)map.get("running")).size());
148 assertEquals(0, ((Collection<QueryStats>)map.get("completed")).size());
149 }
150
151 @Test
152 public void testHashCodeandEquals() throws Exception {

Callers

nothing calls this directly

Calls 4

setStartMethod · 0.95
sizeMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected