Skip to content

Commit

Permalink
Switch branch reporting off at source, rather than after the fact
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGilham committed Jun 14, 2018
1 parent 3fbc083 commit 999deb9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions AltCover.PowerShell/CoverageFormats.fs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ type ConvertFromNCoverCommand(outputFile:String) =
let assemblies = self.Assembly
|> Seq.filter(fun p -> identities.ContainsKey paths.[p])

// ensure default state -- this switches branch recording off
AltCover.Main.init()

#if NETCOREAPP2_0
AltCover.Visitor.Visit visitors assemblies
#else
Expand All @@ -282,10 +285,6 @@ type ConvertFromNCoverCommand(outputFile:String) =
AltCover.Visitor.Visit(visitors, assemblies)
#endif
#endif
// Clear branch points
rewrite.Descendants(XName.Get "BranchPoint")
|> Seq.toList |> Seq.iter(fun n -> n.Remove())

let parse s = Int32.TryParse(s,
System.Globalization.NumberStyles.Integer,
System.Globalization.CultureInfo.InvariantCulture) |> snd
Expand Down

0 comments on commit 999deb9

Please sign in to comment.