Pierre Warnier
|
3ed6188aea
|
tests: add proptest, edge cases, fuzz targets, integration tests, docs
Fixes #11 — tests/by-util/test_passwd.rs: 15 integration tests
following uutils convention (status format, exit codes, lock/unlock
cycle, aging, lifecycle, quiet mode, error cases).
Fixes #12 — fuzz targets for all parsers:
fuzz_passwd_parse, fuzz_shadow_parse, fuzz_login_defs_parse,
fuzz_validate_username. All must not panic on any input.
Fixes #15 — proptest round-trip tests for PasswdEntry, ShadowEntry:
generate random valid entries, serialize, parse back, compare.
Fixes #16 — parser edge case tests:
wrong field counts, empty files, roundtrip via file I/O, negative
values, boundary values, unicode rejection, null bytes, mixed
whitespace, duplicate keys, key-only lines.
Also: CONTRIBUTING.md, SECURITY.md created. README.md and CLAUDE.md
updated to reflect uucore integration and current project state.
142 tests passing on Debian/Alpine/Fedora, zero clippy warnings.
|
2026-03-23 14:11:19 +01:00 |
|