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

Function TestInlineStatusRuneBoundaryTruncate

internal/tools/bash_test.go:270–279  ·  view source on GitHub ↗

TestInlineStatusRuneBoundaryTruncate: truncating a long non-ASCII command at a fixed byte offset can split a multi-byte rune, leaving an orphan continuation byte the TUI prints as invalid UTF-8. The cut must snap back to a rune boundary, trading a couple chars off the byte budget for valid UTF-8.

(t *testing.T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

InlineStatusFunction · 0.85

Tested by

no test coverage detected