test: expand passwordconfig and filecontent test suites#1498
Conversation
passwordconfig: 9 → 22 tests — adds character-set invariant checks: ALLCHARS contains letters/digits/specials; ALPHANUMERIC contains digits and letters; ALPHABETICAL contains upper and lower; ALLCHARS ⊇ ALPHANUMERIC ⊇ ALPHABETICAL; no duplicate characters in any preset. filecontent: 24 → 34 tests — adds NamedValues default constructor, NamedValue equality/inequality by name and value, takeValue removes only the first match, unicode password and field values, field with spaces around colon (allFields mode), and getRemainingData empty when all fields match the template. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds new Qt tests: filecontent tests for NamedValues parsing/comparison, Unicode and parsing edge cases, and getRemainingData; passwordconfig tests for charset composition, subset/superset relationships, duplicate-free constraints, and size invariants. ChangesFileContent and NamedValues Unit Tests
PasswordConfiguration Character Set Validation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/auto/passwordconfig/tst_passwordconfig.cpp`:
- Around line 222-223: The test uses QSet<QChar> (the variable named "seen" and
the loop "for (QChar c : chars)") without including its header; add an explicit
`#include` <QSet> near the other Qt includes at the top of the test file that
contains these symbols to avoid relying on transitive includes.
🪄 Autofix (Beta)
✅ Autofix completed
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: ASSERTIVE
Plan: Pro
Run ID: 2a10b212-d4ee-440e-8bbc-d36ad8097293
📒 Files selected for processing (2)
tests/auto/filecontent/tst_filecontent.cpptests/auto/passwordconfig/tst_passwordconfig.cpp
|
Note Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it. Fixes Applied SuccessfullyFixed 1 file(s) based on 1 unresolved review comment. Files modified:
Commit: The changes have been pushed to the Time taken: |
Fixed 1 file(s) based on 1 unresolved review comment. Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
Summary
passwordconfig: 9 → 22 tests — character-set invariant checks:
filecontent: 24 → 34 tests —
NamedValuesand edge cases:NamedValuesdefault constructor creates an empty listNamedValueequality operator (positive, name mismatch, value mismatch)takeValueremoves only the first match when duplicate keys existallFieldsmodegetRemainingDatais empty when all fields match the templateTest plan
tst_passwordconfig: 22 passed, 0 failedtst_filecontent: 34 passed, 0 failed (was 24)clang-formatapplied🤖 Generated with Claude Code
Summary by CodeRabbit