(t *testing.T)
| 16 | ) |
| 17 | |
| 18 | func TestEncodeAuth(t *testing.T) { |
| 19 | newAuthConfig := &types.AuthConfig{Username: "ken", Password: "test"} |
| 20 | authStr := encodeAuth(newAuthConfig) |
| 21 | |
| 22 | expected := &types.AuthConfig{} |
| 23 | var err error |
| 24 | expected.Username, expected.Password, err = decodeAuth(authStr) |
| 25 | assert.NilError(t, err) |
| 26 | assert.Check(t, is.DeepEqual(expected, newAuthConfig)) |
| 27 | } |
| 28 | |
| 29 | func TestProxyConfig(t *testing.T) { |
| 30 | var ( |
nothing calls this directly
no test coverage detected
searching dependent graphs…