MCPcopy Create free account
hub / github.com/GoogleChrome/webstatus.dev / MockRawBytesDataCacher

Struct MockRawBytesDataCacher

backend/pkg/httpserver/cache_test.go:27–35  ·  view source on GitHub ↗

MockRawBytesDataCacher is a mock implementation of RawBytesDataCacher for testing.

Source from the content-addressed store, hash-verified

25
26// MockRawBytesDataCacher is a mock implementation of RawBytesDataCacher for testing.
27type MockRawBytesDataCacher struct {
28 t *testing.T
29 expectedCacheCalls []*ExpectedCacheCall
30 expectedGetCalls []*ExpectedGetCall
31 actualCacheCalls []*ActualCacheCall
32 actualGetCalls []*ActualGetCall
33 currentCacheCallIdx int
34 currentGetCallIdx int
35}
36
37// NewMockRawBytesDataCacher creates a new MockRawBytesDataCacher.
38func NewMockRawBytesDataCacher(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected