MCPcopy Create free account
hub / github.com/Facets-cloud/flow / TestRendersWholeTranscript

Function TestRendersWholeTranscript

internal/harness/claude/transcript_test.go:110–118  ·  view source on GitHub ↗

TestRendersWholeTranscript pins the no-cutoff contract: every user/assistant entry is rendered regardless of its timestamp, so a retrospective `--here` bind (session_started after all of these) still feeds the full conversation to the close-out sweep.

(t *testing.T)

Source from the content-addressed store, hash-verified

108// retrospective `--here` bind (session_started after all of these)
109// still feeds the full conversation to the close-out sweep.
110func TestRendersWholeTranscript(t *testing.T) {
111 out := renderToString(t, retroBindJSONL, false)
112
113 for _, want := range []string{"PRE-BIND chatter", "PRE-BIND reply", "MORE work, still before bind", "MORE reply"} {
114 if !strings.Contains(out, want) {
115 t.Errorf("entry dropped from full-render output; missing %q:\n%s", want, out)
116 }
117 }
118}
119
120// TestRendersEntriesWithoutTimestamp pins that entries lacking a
121// `timestamp` field still render — the renderer never inspects

Callers

nothing calls this directly

Calls 1

renderToStringFunction · 0.85

Tested by

no test coverage detected