Skip to content

Commit

Permalink
Don't exclude too much
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGilham committed Apr 6, 2024
1 parent 8789bca commit 41e724a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions AltCover.Tests/Tests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,16 @@ module AltCoverTests =
let ShouldGetForeignPdbWithFallback () =
let path =
Path.Combine(SolutionDir(), "packages")

let exclude =
Path.Combine(path, "altcover")

// Looking for the Mono.Options symbols
let files =
Directory.GetFiles(path, "*.pdb", SearchOption.AllDirectories)

files
|> Seq.filter (_.ToLowerInvariant().Contains("altcover") >> not)
|> Seq.filter (_.StartsWith(exclude, StringComparison.OrdinalIgnoreCase) >> not)
|> Seq.filter (fun p -> Path.ChangeExtension(p, ".dll") |> File.Exists)
|> Seq.iter (fun p ->
let dll = Path.ChangeExtension(p, ".dll")
Expand Down Expand Up @@ -335,12 +339,16 @@ module AltCoverTests =

let path =
Path.Combine(SolutionDir(), "packages")

let exclude =
Path.Combine(path, "altcover")

// Looking for the Mono.Options symbols
let files =
Directory.GetFiles(path, "*.pdb", SearchOption.AllDirectories)

files
|> Seq.filter (_.ToLowerInvariant().Contains("altcover") >> not)
|> Seq.filter (_.StartsWith(exclude, StringComparison.OrdinalIgnoreCase) >> not)
|> Seq.filter (fun p -> Path.ChangeExtension(p, ".dll") |> File.Exists)
|> Seq.iter (fun p ->
let dll0 = Path.ChangeExtension(p, ".dll")
Expand Down

0 comments on commit 41e724a

Please sign in to comment.