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

Function newTestModel

internal/tui/tui_test.go:30–50  ·  view source on GitHub ↗

newTestModel wires a model against a mock OpenAI SSE server so we can exercise submit → stream → done without the real stack. The server is torn down via t.Cleanup.

(t *testing.T, handler http.HandlerFunc)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 6

BootstrapFunction · 0.92
NewFunction · 0.92
ActiveProfileMethod · 0.80
SaveMethod · 0.80
NewFunction · 0.70
UpdateMethod · 0.45

Tested by

no test coverage detected