(t *testing.T, client *stubClient)
| 758 | } |
| 759 | |
| 760 | func 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 | |
| 774 | func newMissingAgentIdentityDeps(t *testing.T, client *stubClient) commandDeps { |
| 775 | t.Helper() |
no test coverage detected