MCPcopy Index your code
hub / github.com/coder/agentapi / logOutput

Function logOutput

e2e/echo_test.go:435–441  ·  view source on GitHub ↗

logOutput logs process output with prefix

(t testing.TB, prefix string, r io.Reader)

Source from the content-addressed store, hash-verified

433
434// logOutput logs process output with prefix
435func logOutput(t testing.TB, prefix string, r io.Reader) {
436 t.Helper()
437 scanner := bufio.NewScanner(r)
438 for scanner.Scan() {
439 t.Logf("[%s] %s", prefix, scanner.Text())
440 }
441}
442
443// waitForServer waits for a server to be ready
444func waitForServer(ctx context.Context, t testing.TB, url string, timeout time.Duration) error {

Callers 1

setupFunction · 0.85

Calls 1

TextMethod · 0.65

Tested by

no test coverage detected