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

Method run

test/core/TestSplitRollupQuery.java:232–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230 }
231
232 @Test
233 public void run() {
234 TsdbQuery rawQuery = spy(new TsdbQuery(tsdb));
235 Whitebox.setInternalState(queryUnderTest, "rawQuery", rawQuery);
236
237 doReturn(Deferred.fromResult(new DataPoints[0])).when(rollupQuery).runAsync();
238 doReturn(Deferred.fromResult(new DataPoints[0])).when(rawQuery).runAsync();
239
240 DataPoints[] actualPoints = queryUnderTest.run();
241
242 verify(rollupQuery).runAsync();
243 verify(rawQuery).runAsync();
244
245 assertEquals(0, actualPoints.length);
246 }
247
248 @Test
249 public void runHistogram() {

Callers

nothing calls this directly

Calls 2

runAsyncMethod · 0.65
runMethod · 0.65

Tested by

no test coverage detected