File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -566,9 +566,10 @@ void tst_storemodel::dataEditRoleKeepsGpgExtension() {
566566
567567void 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 ();
You can’t perform that action at this time.
0 commit comments