MCPcopy Create free account
hub / github.com/dropbox/dbxcli / TestSpoolStdinToTemp_ReadError

Function TestSpoolStdinToTemp_ReadError

cmd/stdin_test.go:66–73  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

64}
65
66func TestSpoolStdinToTemp_ReadError(t *testing.T) {
67 r := &failingReader{err: io.ErrUnexpectedEOF}
68
69 _, _, _, err := spoolStdinToTemp(r)
70 if err == nil {
71 t.Fatal("expected error for failing reader")
72 }
73}
74
75func TestSpoolStdinToTemp_ReadErrorReportsCleanupFailure(t *testing.T) {
76 readErr := io.ErrUnexpectedEOF

Callers

nothing calls this directly

Calls 1

spoolStdinToTempFunction · 0.85

Tested by

no test coverage detected