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

Function TestInMemoryTaskStore_LoadNotFound

pkg/a2a/store_test.go:33–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

31}
32
33func TestInMemoryTaskStore_LoadNotFound(t *testing.T) {
34 store := NewInMemoryTaskStore()
35
36 // 尝试加载不存在的任务
37 _, err := store.Load("agent-1", "nonexistent")
38 assert.Error(t, err)
39 assert.Contains(t, err.Error(), "task not found")
40}
41
42func TestInMemoryTaskStore_Delete(t *testing.T) {
43 store := NewInMemoryTaskStore()

Callers

nothing calls this directly

Calls 3

LoadMethod · 0.95
NewInMemoryTaskStoreFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected