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

Function TestPanicWriteAt

buffer_test.go:762–769  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

760}
761
762func TestPanicWriteAt(t *testing.T) {
763 defer func() {
764 recover()
765 }()
766 buf := toBufferAt(New(5))
767 buf.WriteAt(nil, 0)
768 t.Error("expected a panic!")
769}
770
771type badFile struct{}
772

Callers

nothing calls this directly

Calls 3

toBufferAtFunction · 0.85
NewFunction · 0.85
WriteAtMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…