(t *testing.T)
| 378 | } |
| 379 | |
| 380 | func TestInMemoryStore_InvalidNamespace(t *testing.T) { |
| 381 | store := NewInMemoryStore() |
| 382 | defer func() { _ = store.Close() }() |
| 383 | |
| 384 | ctx := context.Background() |
| 385 | |
| 386 | err := store.Save(ctx, &LogicMemory{ |
| 387 | Namespace: "", // 空 namespace |
| 388 | Key: "test", |
| 389 | }) |
| 390 | assert.ErrorIs(t, err, ErrInvalidNamespace) |
| 391 | } |
nothing calls this directly
no test coverage detected