Summary
Two public trait implementations in crates/whitaker_clones_core/src/index/fragment_id.rs introduced in PR #218 have no test coverage of any kind:
| Item |
Status |
impl fmt::Display for FragmentId |
No unit test, no doctest |
impl AsRef<str> for FragmentId |
No unit test, no doctest |
Both are single-line delegations to as_str, so the risk is low, but coverage should be present to meet the project standard of not treating warnings as optional.
Proposed resolution
Add one inline /// # Examples doctest block to each implementation's declaration site in crates/whitaker_clones_core/src/index/fragment_id.rs:
Display doctest — assert that format!("{id}") produces the same string as the underlying value.
AsRef<str> doctest — assert that .as_ref() returns the same slice as .as_str().
References
Summary
Two public trait implementations in
crates/whitaker_clones_core/src/index/fragment_id.rsintroduced in PR #218 have no test coverage of any kind:impl fmt::Display for FragmentIdimpl AsRef<str> for FragmentIdBoth are single-line delegations to
as_str, so the risk is low, but coverage should be present to meet the project standard of not treating warnings as optional.Proposed resolution
Add one inline
/// # Examplesdoctest block to each implementation's declaration site incrates/whitaker_clones_core/src/index/fragment_id.rs:Displaydoctest — assert thatformat!("{id}")produces the same string as the underlying value.AsRef<str>doctest — assert that.as_ref()returns the same slice as.as_str().References