MCPcopy Create free account
hub / github.com/github/gh-aw / stubSyncWriteCloser

Struct stubSyncWriteCloser

pkg/fileutil/fileutil_test.go:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17)
18
19type stubSyncWriteCloser struct {
20 buf bytes.Buffer
21 writeErr error
22 syncErr error
23 closeErr error
24 closeCalls int
25}
26
27func (s *stubSyncWriteCloser) Write(p []byte) (int, error) {
28 if s.writeErr != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected