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

Method process

test/anyflow/test_processor.cpp:469–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467TEST_F(ProcessorTest, depend_essential) {
468 struct F : public GraphProcessor {
469 virtual int process() noexcept override {
470 if (a) {
471 *x.emit() = 1;
472 } else {
473 *x.emit() = 0;
474 }
475 return 0;
476 }
477 ANYFLOW_INTERFACE(ANYFLOW_DEPEND_DATA(int, a, 0) // essential = 0
478 ANYFLOW_EMIT_DATA(int, x))
479 };

Callers

nothing calls this directly

Calls 1

emitMethod · 0.80

Tested by

no test coverage detected