john-okeefe
08b32c7b30
test: add comprehensive tests for unified search endpoint
- Add search_unified_test.go with 8 test cases:
- Fuzzy author filter (asimov → Asimov, Isaac)
- Fuzzy genre filter (scifi → Sci-Fi)
- Exact match with quotes ("Foundation and Empire")
- Combined search + filters (q=foundation&author_filter=asimov)
- Field-specific search for dropdown authors (returns values with counts)
- Year range filter (exact match)
- Boolean filter (has_cover=true)
- Missing library_id validation (400 error)
- Remove filtering_test.go (covered by new tests)
- Uses setupDeviceTest helper following PROJECT_GUIDELINES.md
- Tests both media item search and field value search endpoints
- Validates fuzzy matching, exact matching, and combined queries
2026-03-23 22:38:06 -04:00
..
2026-02-22 01:57:22 -05:00
2026-01-28 16:13:50 -05:00
2026-02-22 01:57:22 -05:00
2026-02-22 01:57:22 -05:00
2026-02-22 01:57:22 -05:00
2026-01-31 11:45:52 -05:00
2026-02-22 01:57:22 -05:00
2026-02-22 01:57:22 -05:00
2026-02-22 11:21:00 -05:00
2026-02-13 21:50:03 -05:00
2026-02-22 11:21:00 -05:00
2026-02-01 14:11:17 -05:00
2026-03-21 22:37:19 -04:00
2026-03-06 01:52:19 -05:00
2026-02-27 17:09:05 -05:00
2026-03-06 01:52:19 -05:00
2026-02-22 01:57:22 -05:00
2026-01-30 20:55:20 -05:00
2026-02-23 17:03:03 -05:00
2026-03-06 14:15:04 -05:00
2026-01-28 16:13:50 -05:00
2026-02-01 13:21:32 -05:00
2026-02-22 01:57:22 -05:00
2026-03-06 01:52:19 -05:00
2026-03-06 14:00:56 -05:00
2026-02-22 01:57:28 -05:00
2026-02-22 11:21:00 -05:00
2026-02-22 11:21:00 -05:00
2026-02-15 00:29:01 -05:00
2026-03-06 01:52:19 -05:00
2026-02-25 11:30:47 -05:00
2026-03-06 01:52:19 -05:00
2026-03-23 22:38:06 -04:00
2026-03-06 14:00:56 -05:00
2026-02-14 00:12:28 -05:00
2026-01-28 12:50:42 -05:00
2026-02-22 11:21:00 -05:00
2026-02-13 20:04:47 -05:00
2026-02-15 00:29:20 -05:00
2026-02-28 14:09:06 -05:00
2026-03-06 14:15:04 -05:00
2026-03-21 00:16:10 -04:00
2026-01-28 12:50:42 -05:00
2026-02-22 11:43:42 -05:00
2026-03-06 15:03:21 -05:00
2026-03-06 11:09:45 -05:00