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

Function newAgentCommandTestDeps

internal/cli/agent_kernel_test.go:760–772  ·  view source on GitHub ↗
(t *testing.T, client *stubClient)

Source from the content-addressed store, hash-verified

758}
759
760func newAgentCommandTestDeps(t *testing.T, client *stubClient) commandDeps {
761 t.Helper()
762
763 client.getSessionFn = func(_ context.Context, id string) (SessionRecord, error) {
764 if id != "sess-agent" {
765 return SessionRecord{}, session.ErrSessionNotFound
766 }
767 return agentCommandSessionRecord(), nil
768 }
769 deps := newTestDeps(t, client)
770 deps.getenv = agentCommandEnv
771 return deps
772}
773
774func newMissingAgentIdentityDeps(t *testing.T, client *stubClient) commandDeps {
775 t.Helper()

Calls 2

newTestDepsFunction · 0.85

Tested by

no test coverage detected