(t *testing.T)
| 29 | } |
| 30 | |
| 31 | func TestParseAgentType(t *testing.T) { |
| 32 | tests := []struct { |
| 33 | firstArg string |
| 34 | agentTypeVar string |
| 35 | want AgentType |
| 36 | }{ |
| 37 | { |
| 38 | firstArg: "", |
| 39 | agentTypeVar: "", |
| 40 | want: AgentTypeCustom, |
| 41 | }, |
| 42 | { |
| 43 | firstArg: "claude", |
| 44 | agentTypeVar: "", |
| 45 | want: AgentTypeClaude, |
| 46 | }, |
| 47 | { |
| 48 | firstArg: "gemini", |
| 49 | agentTypeVar: "", |
| 50 | want: AgentTypeGemini, |
| 51 | }, |
| 52 | { |
| 53 | firstArg: "copilot", |
| 54 | agentTypeVar: "", |
| 55 | want: AgentTypeCopilot, |
| 56 | }, |
| 57 | { |
| 58 | firstArg: "cursor-agent", |
| 59 | agentTypeVar: "", |
| 60 | want: AgentTypeCursor, |
| 61 | }, |
| 62 | { |
| 63 | firstArg: "cursor", |
| 64 | agentTypeVar: "", |
| 65 | want: AgentTypeCursor, |
| 66 | }, |
| 67 | { |
| 68 | firstArg: "amazonq", |
| 69 | agentTypeVar: "", |
| 70 | want: AgentTypeAmazonQ, |
| 71 | }, |
| 72 | { |
| 73 | firstArg: "q", |
| 74 | agentTypeVar: "", |
| 75 | want: AgentTypeAmazonQ, |
| 76 | }, |
| 77 | { |
| 78 | firstArg: "opencode", |
| 79 | agentTypeVar: "", |
| 80 | want: AgentTypeOpencode, |
| 81 | }, |
| 82 | { |
| 83 | firstArg: "auggie", |
| 84 | agentTypeVar: "", |
| 85 | want: AgentTypeAuggie, |
| 86 | }, |
| 87 | { |
| 88 | firstArg: "amp", |
nothing calls this directly
no test coverage detected