Files
qdrant/lib
Sasha Denisov acbdbe334f test(edge-ffi): assert Match.Any/Except land in the correct AnyVariants arm (#9991)
The AnyVariants redesign's tests only checked `is_ok()`. Strengthen them to
pin the actual contract now that the strings-XOR-integers constraint is
type-enforced:

- destructure the converted `SegmentMatch` and assert the values land in the
  matching engine `AnyVariants` arm, in order (catches a mis-wired `From`);
- cover the previously-missing `Except` x `Strings` corner;
- assert `into_iter().collect()` into the engine's `IndexSet` dedups
  (first-seen order), matching the engine's own construction;
- pin empty-set validity for both `Any` (matches nothing) and `Except`
  (matches everything) — the one semantic the docstring promises and the old
  XOR guard used to reject.

Uses `let`-else rather than a wildcard match arm to satisfy the crate's
`wildcard_enum_match_arm` lint on engine enums. 3 tests -> 7; suite 122 -> 126.
2026-08-04 11:18:43 +02:00
..
2026-08-04 11:18:42 +02:00
2026-08-04 11:18:42 +02:00