MCPcopy Create free account
hub / github.com/codehamr/codehamr / TestSlashModelRejectsUnknown

Function TestSlashModelRejectsUnknown

internal/tui/tui_test.go:832–839  ·  view source on GitHub ↗

TestSlashModelRejectsUnknown: unknown name is a quiet warn, not a switch.

(t *testing.T)

Source from the content-addressed store, hash-verified

830 llm: cloud-model
831 url: http://remote:9000
832 key: sk-r
833 context_size: 128000
834`)
835 if err := os.WriteFile(filepath.Join(m.cfg.Dir, "config.yaml"), yaml, 0o600); err != nil {
836 t.Fatal(err)
837 }
838 m.phase = phaseThinking
839 mm := typeInto(m, "/models ")
840 names := suggestNames(mm)
841 if slices.Contains(names, "remote") {
842 t.Fatalf("mid-turn popover transition must not reload config, got %v", names)

Callers

nothing calls this directly

Calls 2

newTestModelFunction · 0.85
runSlashMethod · 0.80

Tested by

no test coverage detected