(t *testing.T)
| 789 | } |
| 790 | |
| 791 | func TestInitCommandFlagValidation(t *testing.T) { |
| 792 | t.Parallel() |
| 793 | |
| 794 | cmd := NewInitCommand() |
| 795 | |
| 796 | // Test that no-mcp flag is a boolean |
| 797 | noMcpFlag := cmd.Flags().Lookup("no-mcp") |
| 798 | if noMcpFlag == nil { |
| 799 | t.Fatal("Expected 'no-mcp' flag to exist") |
| 800 | } |
| 801 | |
| 802 | if noMcpFlag.Value.Type() != "bool" { |
| 803 | t.Errorf("Expected no-mcp flag to be bool, got %s", noMcpFlag.Value.Type()) |
| 804 | } |
| 805 | |
| 806 | // Test verbose flag exists (inherited from parent command likely) |
| 807 | // Note: verbose flag might be added by parent command, not in init command itself |
| 808 | } |
| 809 | |
| 810 | func TestInitRepositoryErrorHandling(t *testing.T) { |
| 811 | tmpDir := testutil.TempDir(t, "test-*") |
nothing calls this directly
no test coverage detected