Skip to content

test(config): add similarity_threshold upper-bound validation test in PlanCacheConfig#2096

Merged
bug-ops merged 1 commit intomainfrom
feat-issue-2095-tier-config-similarity-threshold
Mar 21, 2026
Merged

test(config): add similarity_threshold upper-bound validation test in PlanCacheConfig#2096
bug-ops merged 1 commit intomainfrom
feat-issue-2095-tier-config-similarity-threshold

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Mar 21, 2026

Summary

  • Adds a unit test for the similarity_threshold > 1.0 rejection path in PlanCacheConfig::validate() that was previously uncovered
  • Sets similarity_threshold = 1.1 and asserts the call returns an error

Test plan

  • cargo nextest run -p zeph-config --lib — 41 tests pass
  • cargo nextest run --workspace --features full --lib --bins — 6300 tests pass (+1)
  • cargo +nightly fmt --check — clean
  • cargo clippy --workspace --features full -- -D warnings — clean

Closes #2095

@github-actions github-actions bot added tests Test-related changes rust Rust code changes size/S Small PR (11-50 lines) and removed tests Test-related changes labels Mar 21, 2026
… PlanCacheConfig

Add a unit test asserting that `similarity_threshold = 1.1` returns a
validation error from `PlanCacheConfig::validate()`, covering the
`similarity_threshold > 1.0` rejection path that was previously untested.

Closes #2095
@bug-ops bug-ops force-pushed the feat-issue-2095-tier-config-similarity-threshold branch from 8da1604 to 041ada0 Compare March 21, 2026 23:18
@github-actions github-actions bot added the tests Test-related changes label Mar 21, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 21, 2026 23:18
@bug-ops bug-ops merged commit 5cbe515 into main Mar 21, 2026
43 of 45 checks passed
@bug-ops bug-ops deleted the feat-issue-2095-tier-config-similarity-threshold branch March 21, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Rust code changes size/S Small PR (11-50 lines) tests Test-related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(config): add similarity_threshold upper-bound validation test in TierConfig

1 participant