(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func TestNewAuthManagerWithPassword(t *testing.T) { |
| 68 | httpClient := &HTTPClient{baseURL: "https://test.example.com"} |
| 69 | logger := testutils.NewTestLogger() |
| 70 | |
| 71 | authManager := NewAuthManagerWithPassword(httpClient, "testuser", "testpass", logger) |
| 72 | |
| 73 | assert.NotNil(t, authManager) |
| 74 | assert.Equal(t, httpClient, authManager.httpClient) |
| 75 | assert.Equal(t, "testuser", authManager.username) |
| 76 | assert.Equal(t, "testpass", authManager.password) |
| 77 | assert.Empty(t, authManager.token) |
| 78 | assert.Equal(t, logger, authManager.logger) |
| 79 | assert.False(t, authManager.IsTokenAuth()) |
| 80 | } |
| 81 | |
| 82 | func TestNewAuthManagerWithToken(t *testing.T) { |
| 83 | httpClient := &HTTPClient{baseURL: "https://test.example.com"} |
nothing calls this directly
no test coverage detected