MCPcopy Create free account
hub / github.com/alibaba/open-code-review / TestSetConfigValueModel

Function TestSetConfigValueModel

cmd/opencodereview/config_cmd_test.go:71–80  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

69}
70
71func TestSetConfigValueModel(t *testing.T) {
72 cfg := &Config{}
73
74 if err := setConfigValue(cfg, "model", "claude-opus-4-6"); err != nil {
75 t.Fatalf("setConfigValue: %v", err)
76 }
77 if cfg.Model != "claude-opus-4-6" {
78 t.Errorf("Model = %q, want %q", cfg.Model, "claude-opus-4-6")
79 }
80}
81
82func TestSetConfigValueMaxTokens(t *testing.T) {
83 cfg := &Config{}

Callers

nothing calls this directly

Calls 1

setConfigValueFunction · 0.70

Tested by

no test coverage detected