Skip to content

Commit 6dc9421

Browse files
coderabbitai[bot]CodeRabbit
andauthored
fix: apply CodeRabbit auto-fixes
Fixed 1 file(s) based on 1 unresolved review comment. Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
1 parent 0b08aa7 commit 6dc9421

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/auto/model/tst_storemodel.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,9 +566,10 @@ void tst_storemodel::dataEditRoleKeepsGpgExtension() {
566566

567567
void tst_storemodel::filterAcceptsNonGpgFileWhenRegexMatches() {
568568
QTemporaryDir tempDir;
569-
// A plain text file (no .gpg) should not pass the filter because its
570-
// name doesn't end in .gpg and won't match the default empty regex
571-
// after extension stripping — unless the regex explicitly matches it.
569+
// This test sets the filter to "readme" explicitly. A plain text file
570+
// without a .gpg extension should not pass the filter unless the filter
571+
// explicitly matches its basename. This test only covers the explicit
572+
// "readme" filter behavior.
572573
QFile f(tempDir.path() + "/readme.txt");
573574
QVERIFY2(f.open(QFile::WriteOnly), "Failed to open test file for writing");
574575
f.close();

0 commit comments

Comments
 (0)