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

Function TestReadFileRefusesNonRegular

internal/tools/nonregular_unix_test.go:37–49  ·  view source on GitHub ↗

TestReadFileRefusesNonRegular: read_file on a FIFO would block forever in open(2) waiting for a writer, leaking the tool goroutine past Ctrl+C (which cancels the turn but cannot unblock the read); an endless device file would grow the buffer without bound. The Stat guard must refuse without opening.

(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 3

mkfifoFunction · 0.85
ReadFileFunction · 0.85
timeoutCFunction · 0.85

Tested by

no test coverage detected