(t *testing.T)
| 482 | } |
| 483 | |
| 484 | func TestTemporalFactStoreAdapter_Add(t *testing.T) { |
| 485 | temporal := NewTemporalStore() |
| 486 | adapter := NewTemporalFactStoreAdapter(temporal) |
| 487 | |
| 488 | atom := ast.NewAtom("admin", name("/charlie")) |
| 489 | |
| 490 | // Add through adapter should create eternal fact |
| 491 | if !adapter.Add(atom) { |
| 492 | t.Error("Adapter.Add should return true") |
| 493 | } |
| 494 | |
| 495 | // Should be queryable at any time |
| 496 | testTime := ast.Date(2024, 6, 15) |
| 497 | if !temporal.ContainsAt(atom, testTime) { |
| 498 | t.Error("Fact added through adapter should be eternal") |
| 499 | } |
| 500 | } |
| 501 | |
| 502 | func TestTemporalStore_ListPredicates(t *testing.T) { |
| 503 | store := NewTemporalStore() |
nothing calls this directly
no test coverage detected