PandaPipelinePath implements PipelinePath { @Override public long getTotalHandleTime() { return StreamUtils.sumLongs(pipelines.values(), Pipeline::getHandleTime); } PandaPipelinePath(); @Override Pipeline<P> computeIfAbsent(PipelineComponent<P> component); @Override boolean hasPipeline(PipelineComponent<?> component); @Override @SuppressWarnings("unchecked") Pipeline<P> getPipeline(PipelineComponent<P> component); @Override long getTotalHandleTime(); @Override Collection<String> names();  }
@Test void getTotalHandleTime() { assertTrue(defaultPath.getPipeline(TEST_COMPONENT) .handle(new PandaContext(), new PandaLocalChannel(), PandaTokenInfo.of(TokenTypes.UNKNOWN, "test").toSnippet()) .isErr()); assertTrue(defaultPath.getTotalHandleTime() > 0); }