(t *testing.T)
| 482 | } |
| 483 | |
| 484 | func TestClient_BaseDirectory(t *testing.T) { |
| 485 | t.Run("should accept BaseDirectory option", func(t *testing.T) { |
| 486 | client := NewClient(&ClientOptions{ |
| 487 | BaseDirectory: "/custom/copilot/home", |
| 488 | }) |
| 489 | |
| 490 | if client.options.BaseDirectory != "/custom/copilot/home" { |
| 491 | t.Errorf("Expected BaseDirectory to be '/custom/copilot/home', got %q", client.options.BaseDirectory) |
| 492 | } |
| 493 | }) |
| 494 | |
| 495 | t.Run("should default BaseDirectory to empty string", func(t *testing.T) { |
| 496 | client := NewClient(&ClientOptions{}) |
| 497 | |
| 498 | if client.options.BaseDirectory != "" { |
| 499 | t.Errorf("Expected BaseDirectory to be empty, got %q", client.options.BaseDirectory) |
| 500 | } |
| 501 | }) |
| 502 | } |
| 503 | |
| 504 | func TestClient_EnvOptions(t *testing.T) { |
| 505 | t.Run("should store custom environment variables", func(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…