Files
archie/internal/gate/gateextract/gateextract_test.go
T
sam f73b2d1c8c feat: memory manager sync/prefetch/scan/shutdown + broad in-flight epic work
Checkpoint commit covering concurrent work across several archie-core-abg
epics to avoid losing in-progress state:

- Memory manager (18.7-18.16): background sync pipeline, prefetch with
  timeout, memory-write notification, threat scanning, shutdown drain
  with abandoned-write tracking, frozen snapshot pattern. Wired
  ScanContent and NotifyMemoryToolWrite into HandleToolCall so scanning
  and notification actually apply to writes, not just exist as unused
  primitives.
- Fixed a literal unresolved merge-conflict that had been committed to
  internal/memory/scrubber/scrubber.go.
- Tool provider/registry, MCP client/transport (stdio, HTTP, SSE),
  multimodal results, disclosure.
- Pairing device auth store, rate limiting.
- Gateway compression, session store, tasks.
- Various workflow, plugin host, and agentexec updates.
2026-07-27 03:34:46 +10:00

51 lines
1.3 KiB
Go

package gateextract
import (
"reflect"
"testing"
)
func TestSymbolsContainsExpectedEntries(t *testing.T) {
pkgKey := "github.com/samcharles93/archie-core/internal/gate/gate"
pkg, ok := Symbols[pkgKey]
if !ok {
t.Fatalf("Symbols missing key %q", pkgKey)
}
// Blocking must be a function.
if v, ok := pkg["Blocking"]; !ok {
t.Error("Blocking not found in Symbols")
} else if v.Kind() != reflect.Func {
t.Errorf("Blocking kind = %v, want Func", v.Kind())
}
// Finding must be a pointer type.
if v, ok := pkg["Finding"]; !ok {
t.Error("Finding not found in Symbols")
} else if v.Kind() != reflect.Pointer {
t.Errorf("Finding kind = %v, want Ptr", v.Kind())
}
// GateContext must be a pointer type.
if v, ok := pkg["GateContext"]; !ok {
t.Error("GateContext not found in Symbols")
} else if v.Kind() != reflect.Pointer {
t.Errorf("GateContext kind = %v, want Ptr", v.Kind())
}
}
func TestSymbolsNoUnexpectedEntries(t *testing.T) {
pkgKey := "github.com/samcharles93/archie-core/internal/gate/gate"
pkg := Symbols[pkgKey]
expected := map[string]bool{
"Blocking": true,
"Finding": true,
"GateContext": true,
}
for name := range pkg {
if !expected[name] {
t.Errorf("unexpected symbol %q in gateextract Symbols", name)
}
}
}