Skip to content

Commit

Permalink
Also return the srcrefs that weren't found in flowrs nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasPietzschmann committed Nov 23, 2024
1 parent 957e65c commit ab4dd97
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -231,20 +231,24 @@ get_coverered_and_sliced_srcrefs <- function(slc_coverage) { # nolint: object_le
all <- c()
covered <- c()
sliced <- c()
unsure_sliced <- c()
for (srcref in names(slc_coverage)) {
elem <- slc_coverage[[srcref]]
all <- c(all, srcref)
if (was_executed(elem)) {
covered <- c(covered, srcref)
}
if (elem$in_slice) {
if (is.null(elem$in_slice)) {
unsure_sliced <- c(unsure_sliced, srcref)
} else if (isTRUE(elem$in_slice)) {
sliced <- c(sliced, srcref)
}
}
return(list(
all = all,
covered = covered,
sliced = sliced
sliced = sliced,
unsure_sliced = unsure_sliced
))
}

Expand Down

0 comments on commit ab4dd97

Please sign in to comment.