MCPcopy Create free account
hub / github.com/astercloud/aster / newMockBackend

Function newMockBackend

pkg/middleware/agent_memory_test.go:20–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20func newMockBackend() *mockBackend {
21 return &mockBackend{
22 files: make(map[string]string),
23 shouldFail: false,
24 readCalled: 0,
25 }
26}
27
28func (m *mockBackend) ListInfo(ctx context.Context, path string) ([]backends.FileInfo, error) {
29 if m.shouldFail {

Calls

no outgoing calls

Tested by

no test coverage detected