MCPcopy Index your code
hub / github.com/codehamr/codehamr / TestStreamingShownInLiveView

Function TestStreamingShownInLiveView

internal/tui/tui_test.go:2832–2838  ·  view source on GitHub ↗

TestStreamingShownInLiveView: the streaming buffer is rendered above the prompt by View() while content is in flight, so the user sees tokens immediately even before the block flushes to scrollback.

(t *testing.T)

Source from the content-addressed store, hash-verified

2830 om := out.(Model)
2831 joined := stripANSI(strings.Join(om.outbox, "\n"))
2832 if !strings.Contains(joined, "hamr") {
2833 t.Fatalf("splash should be queued on first size: %s", joined)
2834 }
2835 if !strings.Contains(joined, "codehamr test") {
2836 t.Fatalf("splash should carry version/profile line: %s", joined)
2837 }
2838 if !strings.Contains(joined, "AI systems can make mistakes") {
2839 t.Fatalf("splash should carry AI safety notice: %s", joined)
2840 }
2841 if !strings.Contains(joined, "devcontainer or VM") {

Callers

nothing calls this directly

Calls 3

newTestModelFunction · 0.85
stripANSIFunction · 0.85
ViewMethod · 0.45

Tested by

no test coverage detected