Skip to content

Commit

Permalink
Plan of campaign
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGilham committed Jul 24, 2024
1 parent a33b41c commit 772b7a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions AltCover.Engine/Cobertura.fs
Original file line number Diff line number Diff line change
Expand Up @@ -131,21 +131,21 @@ module internal Cobertura =
|> Seq.distinct
|> Seq.sort

let groupable =
let groupable = // (directory, facet list)
rawsources |> Seq.map (fun x -> (x, splitPath x))

let groups =
let groups = // lead facet, (directory, facet list) seq
groupable |> Seq.groupBy (snd >> grouping)

let results =
let results = // throws away everything but the sources
groups |> Seq.map (snd >> extractSource)

results
|> Seq.iter (fun f ->
target.Descendants("sources".X)
|> Seq.iter _.Add(XElement("source".X, XText(f))))

results
results // TODO - make look-up table
|> Seq.map (fun p -> p.Replace('\\', '/').Trim('/'))

let internal nCover (report: XDocument) (packages: XElement) =
Expand Down

0 comments on commit 772b7a0

Please sign in to comment.