MCPcopy Create free account
hub / github.com/compozy/agh / TestDaemonMemoryProviderService

Function TestDaemonMemoryProviderService

internal/daemon/memory_runtime_test.go:141–161  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

139}
140
141func TestDaemonMemoryProviderService(t *testing.T) {
142 t.Parallel()
143
144 t.Run("Should preserve missing provider sentinels for settings validation", func(t *testing.T) {
145 t.Parallel()
146
147 registry := extensionpkg.NewMemoryProviderRegistry()
148 service := daemonMemoryProviderService{registry: registry}
149
150 _, err := service.Get(testutil.Context(t), "", "missing-provider")
151 if err == nil {
152 t.Fatal("Get(missing-provider) error = nil, want not found")
153 }
154 if !errors.Is(err, os.ErrNotExist) {
155 t.Fatalf("Get(missing-provider) error = %v, want os.ErrNotExist", err)
156 }
157 if !errors.Is(err, extensionpkg.ErrMemoryProviderNotFound) {
158 t.Fatalf("Get(missing-provider) error = %v, want ErrMemoryProviderNotFound", err)
159 }
160 })
161}
162
163func TestForkedMemoryExtractor(t *testing.T) {
164 t.Parallel()

Callers

nothing calls this directly

Calls 4

GetMethod · 0.95
ContextFunction · 0.92
RunMethod · 0.65
IsMethod · 0.45

Tested by

no test coverage detected