Enforce feature isolation and expand copy_count test coverage
- Gate env_logger init behind #[cfg(feature = "bin-logging")] in
records.rs main() so the binary respects the feature flag
- Set default-features = false on the dev-dependency self-reference
in Cargo.toml; previously default features were silently re-enabled
during tests, making feature isolation accidental rather than real
- Bind guid.to_string() once per card in user_data.rs deck loop and
reuse it via clone, replacing three allocations per locked card
- Add per-field help text to the Track subcommand args clarifying
human-readable names ("Laguna Seca", "Dry") vs raw codes
- Document write_details_csv DashMap snapshot memory tradeoff
(full clone, roughly doubled peak memory during the write)
- Extend my_cars fixture test: duplicate guids count as 2 copies
with per-copy configs, and incomplete-tune cards still count in
copy_count
This commit is contained in:
parent
1a844e7aa8
commit
ec8be9d138
5 changed files with 35 additions and 9 deletions
|
|
@ -32,7 +32,7 @@ bin-logging = ["dep:env_logger"]
|
|||
test-utils = []
|
||||
|
||||
[dev-dependencies]
|
||||
top_drives = { path = ".", features = ["test-utils"] }
|
||||
top_drives = { path = ".", features = ["test-utils"], default-features = false }
|
||||
tempfile = "3.10.1"
|
||||
proptest = "1"
|
||||
mockito = "1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue