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

Function renderToString

internal/harness/claude/transcript_test.go:28–35  ·  view source on GitHub ↗

renderToString is a tiny test helper around RenderJSONL.

(t *testing.T, raw string, compact bool)

Source from the content-addressed store, hash-verified

26
27// renderToString is a tiny test helper around RenderJSONL.
28func renderToString(t *testing.T, raw string, compact bool) string {
29 t.Helper()
30 var buf bytes.Buffer
31 if err := RenderJSONL(strings.NewReader(raw), compact, &buf); err != nil {
32 t.Fatalf("RenderJSONL: %v", err)
33 }
34 return buf.String()
35}
36
37func TestRender(t *testing.T) {
38 out := renderToString(t, sampleSessionJSONL, false)

Callers 4

TestRenderFunction · 0.85
TestRenderCompactFunction · 0.85

Calls 2

RenderJSONLFunction · 0.85
StringMethod · 0.80

Tested by

no test coverage detected