This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
SisMaker
/
rebar3
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
62
Wiki
Activity
Browse Source
Fix coverage percentage on modules with 0 lines to be covered
pull/1604/head
Vitor Enes Duarte
7 years ago
parent
21246698fb
commit
77c85cb994
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/rebar_prv_cover.erl
+ 1
- 1
src/rebar_prv_cover.erl
View File
@ -248,7 +248,7 @@ calculate_total(Stats) ->
Stats
)
)
.
percentage
(
{
0
,
0
}
)
-
>
"
0%
"
;
percentage
(
{
_
,
0
}
)
-
>
"
10
0%
"
;
percentage
(
{
Cov
,
Not
}
)
-
>
integer_to_list
(
trunc
(
(
Cov
/
(
Cov
+
Not
)
)
*
100
)
)
++
"
%
"
.
write_index
(
State
,
Coverage
)
-
>
Write
Preview
Loading…
Cancel
Save