MCPcopy
hub / github.com/keploy/keploy / TestChunkIsZero

Function TestChunkIsZero

pkg/agent/proxy/fakeconn/chunk_test.go:25–39  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23}
24
25func TestChunkIsZero(t *testing.T) {
26 t.Parallel()
27 var c Chunk
28 if !c.IsZero() {
29 t.Errorf("zero Chunk reported non-zero")
30 }
31 c.Bytes = []byte("x")
32 if c.IsZero() {
33 t.Errorf("Chunk with bytes reported zero")
34 }
35 c = Chunk{ReadAt: time.Now()}
36 if c.IsZero() {
37 t.Errorf("Chunk with ReadAt reported zero")
38 }
39}

Callers

nothing calls this directly

Calls 1

IsZeroMethod · 0.95

Tested by

no test coverage detected