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

Function TestBashTimeoutOverflowClamped

internal/tools/bash_test.go:166–178  ·  view source on GitHub ↗

TestBashTimeoutOverflowClamped: extreme floats must be clamped BEFORE the Duration multiply. `time.Duration(1e18) * time.Second` overflows int64 to a negative deadline, firing context.WithTimeout instantly: the command would "succeed" without running. Clamp up front to avoid it.

(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

ExecuteFunction · 0.85

Tested by

no test coverage detected