(t *testing.T)
| 23 | } |
| 24 | |
| 25 | func TestCopilotEngine(t *testing.T) { |
| 26 | engine := NewCopilotEngine() |
| 27 | |
| 28 | // Test basic properties |
| 29 | if engine.GetID() != "copilot" { |
| 30 | t.Errorf("Expected copilot engine ID, got '%s'", engine.GetID()) |
| 31 | } |
| 32 | |
| 33 | if engine.GetDisplayName() != "GitHub Copilot CLI" { |
| 34 | t.Errorf("Expected 'GitHub Copilot CLI' display name, got '%s'", engine.GetDisplayName()) |
| 35 | } |
| 36 | |
| 37 | if engine.IsExperimental() { |
| 38 | t.Error("Expected copilot engine to not be experimental") |
| 39 | } |
| 40 | |
| 41 | capabilities := engine.GetCapabilities() |
| 42 | |
| 43 | if !capabilities.ToolsAllowlist { |
| 44 | t.Error("Expected copilot engine to support tools allowlist") |
| 45 | } |
| 46 | |
| 47 | if !capabilities.MaxTurns { |
| 48 | t.Error("Expected copilot engine to support max-turns") |
| 49 | } |
| 50 | |
| 51 | // Test declared output files (session files are copied to logs folder) |
| 52 | outputFiles := engine.GetDeclaredOutputFiles() |
| 53 | if len(outputFiles) != 1 { |
| 54 | t.Errorf("Expected 1 declared output file, got %d", len(outputFiles)) |
| 55 | } |
| 56 | |
| 57 | if outputFiles[0] != "/tmp/gh-aw/sandbox/agent/logs/" { |
| 58 | t.Errorf("Expected declared output file to be logs folder, got %s", outputFiles[0]) |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | func TestCopilotEngineDefaultDetectionModel(t *testing.T) { |
| 63 | engine := NewCopilotEngine() |
nothing calls this directly
no test coverage detected