src/utilities.jl
changed.
Showing 1 of 1 files from the diff.
@@ -311,6 +311,26 @@
Loading
311 | 311 | end |
|
312 | 312 | return out |
|
313 | 313 | end |
|
314 | + | _path_separator = "\\" |
|
315 | + | _path_separator_re = r"[/\\]+" |
|
316 | + | function _pathsep(paths::AbstractString...) |
|
317 | + | for path in paths |
|
318 | + | m = match(_path_separator_re, String(path)) |
|
319 | + | m !== nothing && return m.match[1:1] |
|
320 | + | end |
|
321 | + | return _path_separator |
|
322 | + | end |
|
323 | + | function joinpath(a::String, b::String) |
|
324 | + | isabspath(b) && return b |
|
325 | + | A, a = _splitdrive(a) |
|
326 | + | B, b = _splitdrive(b) |
|
327 | + | !isempty(B) && A != B && return string(B,b) |
|
328 | + | C = isempty(B) ? A : B |
|
329 | + | isempty(a) ? string(C,b) : |
|
330 | + | occursin(_path_separator_re, a[end:end]) ? string(C,a,b) : |
|
331 | + | string(C,a,_pathsep(a,b),b) |
|
332 | + | end |
|
333 | + | joinpath(a::AbstractString, b::AbstractString) = joinpath(String(a), String(b)) |
|
314 | 334 | end |
|
315 | 335 | ||
316 | 336 | @static if Sys.iswindows() && VERSION < v"1.3" |
Files | Coverage |
---|---|
src | 66.99% |
Project Totals (29 files) | 66.99% |
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.