Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Sources/Testing/Running/Configuration.TestFilter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -283,18 +283,18 @@ extension Configuration.TestFilter.Operation {
case let .precomputed(selection, membership):
switch membership {
case .including:
return testGraph.mapValues { _, item in
return testGraph.mapValues { keyPath, item in
guard let item else {
return nil
}
return selection.contains(item.test) ? item : nil
return selection.contains(keyPath) ? item : nil
}
case .excluding:
return testGraph.mapValues { _, item in
return testGraph.mapValues { keyPath, item in
guard let item else {
return nil
}
return !selection.contains(item.test, inferAncestors: false) ? item : nil
return !selection.contains(keyPath, inferAncestors: false) ? item : nil
}
}
case let .function(function, membership):
Expand Down
Loading