[GH-ISSUE #2600] Make Recursor and RecursorDnsHandle generic #1024

Closed
opened 2026-03-16 01:18:21 +03:00 by kerem · 0 comments
Owner

Originally created by @divergentdave on GitHub (Nov 21, 2024).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2600

Adding a generic type parameter for a runtime provider to Recursor and RecursorDnsHandle would improve the recursor's testability. This would allow use of a mock runtime in unit tests, simulating multiple remote name servers, which would let us test scenarios that can currently only be tested in the conformance test. This would also let us write tests that inspect the state of the recursor's cache after handling queries.

Originally created by @divergentdave on GitHub (Nov 21, 2024). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/2600 Adding a generic type parameter for a runtime provider to `Recursor` and `RecursorDnsHandle` would improve the recursor's testability. This would allow use of a mock runtime in unit tests, simulating multiple remote name servers, which would let us test scenarios that can currently only be tested in the conformance test. This would also let us write tests that inspect the state of the recursor's cache after handling queries.
kerem 2026-03-16 01:18:21 +03:00
  • closed this issue
  • added the
    cleanup
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#1024
No description provided.