MCPcopy Create free account
hub / github.com/djherbis/buffer / WriteAt

Method WriteAt

buffer_test.go:776–776  ·  view source on GitHub ↗
(p []byte, off int64)

Source from the content-addressed store, hash-verified

774func (b badFile) Stat() (os.FileInfo, error) { return nil, errors.New("unsupported") }
775func (b badFile) ReadAt(p []byte, off int64) (int, error) { return 0, nil }
776func (b badFile) WriteAt(p []byte, off int64) (int, error) { return len(p), nil }
777func (b badFile) Close() error { return nil }
778
779func TestWrapioBreakout(t *testing.T) {

Callers 5

BufferAtTesterFunction · 0.45
TestMemFunction · 0.45
TestSwapAtFunction · 0.45
TestPanicWriteAtFunction · 0.45
TestPartitionAt3Function · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected