MCPcopy Create free account
hub / github.com/compozy/agh / assertAutonomyReason

Function assertAutonomyReason

internal/task/manager_test.go:9525–9531  ·  view source on GitHub ↗
(t *testing.T, err error, want AutonomyReasonCode)

Source from the content-addressed store, hash-verified

9523}
9524
9525func assertAutonomyReason(t *testing.T, err error, want AutonomyReasonCode) {
9526 t.Helper()
9527 reason, ok := AutonomyReasonOf(err)
9528 if !ok || reason != want {
9529 t.Fatalf("AutonomyReasonOf(%v) = %q/%v, want %q", err, reason, ok, want)
9530 }
9531}
9532
9533func createRunningRunForWakeTest(
9534 t *testing.T,

Callers 1

Calls 1

AutonomyReasonOfFunction · 0.85

Tested by

no test coverage detected