TestSlashModelRejectsUnknown: unknown name is a quiet warn, not a switch.
(t *testing.T)
| 830 | |
| 831 | // TestSlashModelRejectsUnknown: unknown name is a quiet warn, not a switch. |
| 832 | func TestSlashModelRejectsUnknown(t *testing.T) { |
| 833 | m := newTestModel(t, func(http.ResponseWriter, *http.Request) {}) |
| 834 | before := m.cfg.Active |
| 835 | m2, _ := m.runSlash("/models ghost") |
| 836 | if m2.(Model).cfg.Active != before { |
| 837 | t.Fatal("unknown name must not change Active") |
| 838 | } |
| 839 | } |
| 840 | |
| 841 | func TestSlashClearResetsHistory(t *testing.T) { |
| 842 | m := newTestModel(t, func(http.ResponseWriter, *http.Request) {}) |
nothing calls this directly
no test coverage detected