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

Function TestPanicReadAt

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

Source from the content-addressed store, hash-verified

751}
752
753func TestPanicReadAt(t *testing.T) {
754 defer func() {
755 recover()
756 }()
757 buf := toBufferAt(New(5))
758 buf.ReadAt(nil, 0)
759 t.Error("expected a panic!")
760}
761
762func TestPanicWriteAt(t *testing.T) {
763 defer func() {

Callers

nothing calls this directly

Calls 3

toBufferAtFunction · 0.85
NewFunction · 0.85
ReadAtMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…