diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2026-01-26 16:44:09 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2026-01-26 17:04:48 +0000 |
| commit | e7922f79bc8da0b8ef96a080e463141bb5e79694 (patch) | |
| tree | 2f5905aae03c3cfd1b657d755668db6565f07972 /pkg/aflow/flow.go | |
| parent | cf894e043b8ae1ea6e4093d14f327ad678fa4cf3 (diff) | |
pkg/aflow: add helper for tool testing
Add simple codeeditor tests to test testing.
Diffstat (limited to 'pkg/aflow/flow.go')
| -rw-r--r-- | pkg/aflow/flow.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/pkg/aflow/flow.go b/pkg/aflow/flow.go index 4073a6de1..f2b536bc7 100644 --- a/pkg/aflow/flow.go +++ b/pkg/aflow/flow.go @@ -87,12 +87,7 @@ func registerOne[Inputs, Outputs any](all map[string]*Flow, flow *Flow) error { if all[flow.Name] != nil { return fmt.Errorf("flow %v is already registered", flow.Name) } - ctx := &verifyContext{ - inputs: true, - outputs: true, - state: make(map[string]*varState), - models: make(map[string]bool), - } + ctx := newVerifyContext() provideOutputs[Inputs](ctx, "flow inputs") flow.Root.verify(ctx) requireInputs[Outputs](ctx, "flow outputs") |
