mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-07-09 17:28:58 +00:00
20 lines
527 B
Go
20 lines
527 B
Go
package main
|
|
|
|
import "testing"
|
|
|
|
func TestParseReviewFlagsModelOverride(t *testing.T) {
|
|
opts, err := parseReviewFlags([]string{"--model", "claude-opus-4-6"})
|
|
if err != nil {
|
|
t.Fatalf("parseReviewFlags: %v", err)
|
|
}
|
|
|
|
if opts.model != "claude-opus-4-6" {
|
|
t.Errorf("model = %q, want %q", opts.model, "claude-opus-4-6")
|
|
}
|
|
if opts.outputFormat != "text" {
|
|
t.Errorf("outputFormat = %q, want %q", opts.outputFormat, "text")
|
|
}
|
|
if opts.audience != "human" {
|
|
t.Errorf("audience = %q, want %q", opts.audience, "human")
|
|
}
|
|
}
|