Skip to content

Commit 2e747bf

Browse files
committed
Add proptest as dev-dependency
Pinned at 1.11.0 (~7 weeks old at landing). Used in module-local `mod proptests` blocks for the four candidates identified by the property-testing investigation: topological_sort_bottom_up, glob_to_regex, split_scope_segments, and the macOS platform_case_compare collation.
1 parent 70788b0 commit 2e747bf

3 files changed

Lines changed: 76 additions & 3 deletions

File tree

Cargo.lock

Lines changed: 65 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/desktop/src-tauri/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,11 @@ env_logger = "0.11.10"
213213
# For test-only cryptographic key generation (compatible with ed25519-dalek's rand_core 0.6)
214214
rand_core = { version = "0.6", features = ["getrandom"] }
215215
tempfile = "3"
216+
# Property-based testing. Used for algorithmic functions where the input space
217+
# is too large for example tests to cover meaningfully (parser, glob→regex,
218+
# topological sort, Unicode collation). Pinned at 1.11.0 (published 2026-03-24,
219+
# ~7 weeks old at landing). MIT OR Apache-2.0.
220+
proptest = "1.11.0"
216221
# HTTP mock server for AI client integration tests. Verifies request shape (temperature
217222
# present on chat/completions, omitted on /v1/responses) and parsing without burning
218223
# real API quota. Pinned at 0.6.5 (latest stable, published 2025-08-24).

apps/desktop/src-tauri/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
#[cfg(test)]
1717
use criterion as _;
1818
//noinspection RsUnusedImport
19+
// Property-based testing. Used in module-local `mod proptests` blocks; the
20+
// crate-root marker keeps `unused_crate_dependencies` quiet for builds that
21+
// happen to compile a subset of test modules.
22+
#[cfg(test)]
23+
use proptest as _;
24+
//noinspection RsUnusedImport
1925
// Dev-only log-routing shim. Used by the phase4 bench's optional
2026
// `env_logger::try_init()` (commented-in when collecting wire traces) and by
2127
// ad-hoc debug-logging in tests. Harmless otherwise.

0 commit comments

Comments
 (0)