MCPcopy Create free account
hub / github.com/AdRoll/baker / TestColdCacheGet_BadCell

Function TestColdCacheGet_BadCell

pkg/buffercache/cold_test.go:41–47  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

39}
40
41func TestColdCacheGet_BadCell(t *testing.T) {
42 bucket := newBucket(32, 64)
43 // trying to retrieve the buffer in an 'out-of-bound' cell should panic
44 assertPanics(t, func() {
45 bucket.get(64)
46 })
47}
48
49func TestBufferCachePutDestination(t *testing.T) {
50 tests := []struct {

Callers

nothing calls this directly

Calls 3

newBucketFunction · 0.85
assertPanicsFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected