(t *testing.T)
| 108 | } |
| 109 | |
| 110 | func TestClientAuthenticatedCommandRejectsEmptyCredentialPattern(t *testing.T) { |
| 111 | // Given a client and an empty host-scoped credential pattern |
| 112 | client := Client{GitPath: "path/to/git"} |
| 113 | |
| 114 | // When an authenticated command is created |
| 115 | cmd, err := client.AuthenticatedCommand(t.Context(), CredentialPattern{}, "fetch") |
| 116 | |
| 117 | // Then the insecure ambiguous scope is rejected |
| 118 | require.EqualError(t, err, "empty credential pattern is not allowed unless provided explicitly") |
| 119 | assert.Nil(t, cmd) |
| 120 | } |
| 121 | |
| 122 | func TestClientRemotesReturnsSortedRemotesWithResolutions(t *testing.T) { |
| 123 | // Given remotes with resolution metadata |
nothing calls this directly
no test coverage detected