Test the execution example in Go

This commit is contained in:
2026-11-03 01:37:16 +00:00
parent 7bbdb55888
commit 8896d8733b
3 changed files with 48 additions and 14 deletions

View File

@@ -88,6 +88,10 @@ Validation: format changed Go files and run
`go test ./examples/go-library/run`. Confirm the test executes the workflow,
not just the summary type. These expected values describe this fixture only.
Completion: extracted the execution workflow and JSON encoding into a helper
with explicit context, resource directory, and writer. The focused Go test
executes the workflow and checks its summary; it passed on Go 1.27.0.
## Stage 2: Test Preparation With Explicit Resource Context
Scope: `examples/go-library/prepare/main.go` and its new `main_test.go`.