(t *testing.T)
| 1667 | } |
| 1668 | |
| 1669 | func TestCredentialPatternFromHost(t *testing.T) { |
| 1670 | // Given a Git host |
| 1671 | host := "github.com" |
| 1672 | |
| 1673 | // When its credential scope is derived |
| 1674 | credentialPattern := CredentialPatternFromHost(host) |
| 1675 | |
| 1676 | // Then credentials are scoped to that host over HTTPS |
| 1677 | assert.Equal(t, CredentialPattern{pattern: "https://github.com"}, credentialPattern) |
| 1678 | } |
| 1679 | |
| 1680 | func TestParsePushDefault(t *testing.T) { |
| 1681 | tests := []struct { |
nothing calls this directly
no test coverage detected