Files
tantivy/src
Kanishk Sachan 70a8e56ee5 test(postings): add unit tests for TermFrequencyRecorder
Closes #2285

The TermFrequencyRecorder was completely untested. Add five focused tests:

- term_frequency_recorder_has_term_freq: verifies the recorder
  correctly advertises term-frequency support via has_term_freq()
- term_frequency_recorder_zero_docs: term_doc_freq() returns Some(0)
  before any documents are recorded
- term_frequency_recorder_term_doc_freq_single_doc: one document with
  two occurrences yields term_doc_freq() == Some(1)
- term_frequency_recorder_term_doc_freq_multiple_docs: three documents
  with varying term frequencies yield term_doc_freq() == Some(3),
  confirming the count tracks documents, not occurrences
- term_frequency_recorder_single_occurrence_per_doc: each of three
  documents has exactly one occurrence
- term_frequency_recorder_high_frequency_doc: a single document with
  1000 occurrences still yields term_doc_freq() == Some(1)
2026-06-06 14:44:51 +08:00
..
2026-06-01 14:39:44 +02:00
2026-03-18 17:28:59 +01:00
2026-06-01 14:39:44 +02:00
2026-03-18 17:28:59 +01:00
2025-10-23 10:23:34 +02:00
2025-07-02 11:25:03 +02:00
2026-01-02 12:40:42 +01:00
2026-01-27 09:22:11 +01:00
2026-06-01 14:39:44 +02:00
2026-03-18 17:28:59 +01:00
2025-12-01 15:38:57 +01:00
2025-12-01 12:15:41 +01:00
2024-10-22 09:26:54 +08:00