Files
Memoh/internal/memory/qdrant_store_test.go
T
BBQ 5a35ef34ac feat: channel gateway implementation and multi-bot refactor
- Refactor channel manager with support for Sender/Receiver interfaces and hot-swappable adapters.
- Implement identity routing and pre-authentication logic for inbound messages.
- Update database schema to support bot pre-auth keys and extended channel session metadata.
- Add Telegram and Feishu channel configuration and adapter enhancements.
- Update Swagger documentation and internal handlers for channel management.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-06 14:41:54 +08:00

19 lines
349 B
Go

package memory
import "testing"
func TestBuildQdrantFilter(t *testing.T) {
t.Parallel()
filter := buildQdrantFilter(map[string]any{
"userId": "u1",
"score": map[string]any{"gte": 0.5},
})
if filter == nil {
t.Fatalf("expected filter")
}
if len(filter.Must) != 2 {
t.Fatalf("expected two conditions, got %d", len(filter.Must))
}
}