Skip to content

Commit 086e4f7

Browse files
committed
C#: Adjust test for LGTM_INDEX_FILTERS
1 parent 59d239b commit 086e4f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

csharp/extractor/Semmle.Extraction.Tests/FilePathFilter.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ public void TestFiltersWithIncludeExcludeExcludeFirst()
165165
{
166166
(var testSubject, var progressMonitor, var files) = TestSetup();
167167

168+
// NOTE: the ordering DOES matter, later filters takes priority, so the exclude will end up not mattering at all.
168169
Environment.SetEnvironmentVariable("LGTM_INDEX_FILTERS", """
169170
exclude:c/x/z
170171
include:c/x
@@ -174,7 +175,8 @@ public void TestFiltersWithIncludeExcludeExcludeFirst()
174175

175176
var expected = GetExpected(
176177
[
177-
"/a/b/c/x/y/i.cs"
178+
"/a/b/c/x/y/i.cs",
179+
"/a/b/c/x/z/i.cs"
178180
]);
179181

180182
AssertFileInfoEquivalence(expected, filtered);

0 commit comments

Comments
 (0)