MCPcopy Create free account
hub / github.com/baidu/babylon / SetUp

Method SetUp

test/anyflow/test_processor.cpp:770–784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768
769struct ProcessorRunTest : public ::testing::Test {
770 virtual void SetUp() override {
771 {
772 auto& vertex = builder.add_vertex([] {
773 return ::std::unique_ptr<GraphProcessor>(new HookedProcessor);
774 });
775 vertex.option(&control);
776 vertex.named_emit("x").to("A");
777 }
778 executor.initialize(4, 128);
779 builder.set_executor(executor);
780 builder.finish();
781 graph = builder.build();
782 a = graph->find_data("A");
783 p = control.processor;
784 }
785
786 ThreadPoolGraphExecutor executor;
787 GraphBuilder builder;

Callers

nothing calls this directly

Calls 7

find_dataMethod · 0.80
optionMethod · 0.45
named_emitMethod · 0.45
initializeMethod · 0.45
set_executorMethod · 0.45
finishMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected