Skip to content

Commit f76d7bb

Browse files
authored
Merge pull request #67 from JuliaCI/tp/export-process-coverage
export process_coverage, clean up docstring
2 parents bf409d5 + 3e91a98 commit f76d7bb

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LocalCoverage"
22
uuid = "5f6e1e16-694c-5876-87ef-16b5274f298e"
33
authors = ["Tamas K. Papp <[email protected]>"]
4-
version = "0.8.3"
4+
version = "0.8.4"
55

66
[deps]
77
Coverage = "a2441757-f6aa-5fb2-8edb-039e3f45d037"

src/LocalCoverage.jl

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import Dates
1111
using EzXML
1212
using OrderedCollections
1313

14-
export generate_coverage, clean_coverage, report_coverage_and_exit, html_coverage,
15-
generate_xml, write_lcov_to_xml
14+
export generate_coverage, process_coverage, clean_coverage, report_coverage_and_exit,
15+
html_coverage, generate_xml, write_lcov_to_xml
1616

1717
####
1818
#### helper functions and constants
@@ -256,12 +256,17 @@ end
256256
"""
257257
$(SIGNATURES)
258258
259-
Process coverage files for a package within folder.
259+
Process coverage files.
260260
261-
Called by [`generate_coverage`](@ref).
261+
`pkg` is a string specifying the package, `nothing` (the default) will use the package
262+
that corresponds to the active project.
262263
264+
The keyword arguments `folder_list` and `file_list` should be vectors of strings,
265+
specifying relative paths (eg `"src"`) within the package.
266+
267+
Note: this function is called by [`generate_coverage`](@ref) automatically.
263268
"""
264-
function process_coverage(pkg=nothing;
269+
function process_coverage(pkg::Union{Nothing,AbstractString}=nothing;
265270
folder_list=["src"],
266271
file_list=[])::PackageCoverage
267272
package_dir = pkgdir(pkg)

0 commit comments

Comments
 (0)