-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
go-coverage-action
committed
May 18, 2024
1 parent
1083dd3
commit 6913835
Showing
8 changed files
with
170 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
mode: set | ||
cointoss/main.go:10.13,11.27 1 1 | ||
cointoss/main.go:11.27,13.3 1 1 | ||
cointoss/main.go:13.8,15.3 1 0 | ||
cointoss/main.go:11.27,13.3 1 0 | ||
cointoss/main.go:13.8,15.3 1 1 | ||
cointoss/main.go:17.2,17.32 1 1 | ||
cointoss/main.go:20.24,21.23 1 1 | ||
cointoss/main.go:21.23,23.3 1 1 | ||
cointoss/main.go:23.8,25.3 1 0 | ||
cointoss/main.go:21.23,23.3 1 0 | ||
cointoss/main.go:23.8,25.3 1 1 | ||
cointoss/main.go:28.19,29.21 1 1 | ||
cointoss/main.go:29.21,31.3 1 1 | ||
cointoss/main.go:31.8,33.3 1 0 |
69 changes: 69 additions & 0 deletions
69
go-test-app-02/revisions/1fbf664a7d3b692d52dace575a583973f6e91675-inc.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> | ||
<meta http-equiv="Pragma" content="no-cache" /> | ||
<meta http-equiv="Expires" content="0" /> | ||
<title>cointoss: Go Coverage Report</title> | ||
<script src="../index.js?0427da24e69fa8b8d01f59e705306ed0"></script> | ||
</head> | ||
<body> | ||
<div id="topbar"> | ||
<div id="nav"> | ||
<select id="files"> | ||
|
||
<option value="file0">cointoss/main.go (50.0%)</option> | ||
|
||
</select> | ||
</div> | ||
<div id="legend"> | ||
<span>not tracked</span> | ||
|
||
<span class="cov0">not covered</span> | ||
<span class="cov8">covered</span> | ||
|
||
</div> | ||
</div> | ||
<div id="content"> | ||
|
||
<pre class="file" id="file0" style="display: none">package main | ||
|
||
import ( | ||
"fmt" | ||
"math/rand" | ||
) | ||
|
||
const side = "right" | ||
|
||
func main() { | ||
if tossCoin() == "heads" <span class="cov0" title="0">{ | ||
fmt.Println("Heads") | ||
}</span> else<span class="cov8" title="1"> { | ||
fmt.Println("Tails") | ||
}</span> | ||
|
||
fmt.Println("Maybe:", maybe()) | ||
} | ||
|
||
func tossCoin() string { | ||
if rand.Intn(2) == 0 <span class="cov0" title="0">{ | ||
return "heads" | ||
}</span> else<span class="cov8" title="1"> { | ||
return "tails" | ||
}</span> | ||
} | ||
|
||
func maybe() bool { | ||
if side == "right" { | ||
return true | ||
} else { | ||
return false | ||
} | ||
} | ||
</pre> | ||
|
||
</div> | ||
</body> | ||
</html> |
5 changes: 5 additions & 0 deletions
5
go-test-app-02/revisions/1fbf664a7d3b692d52dace575a583973f6e91675-inc.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mode: set | ||
cointoss/main.go:11.27,13.3 1 0 | ||
cointoss/main.go:13.8,15.3 1 1 | ||
cointoss/main.go:21.23,23.3 1 0 | ||
cointoss/main.go:23.8,25.3 1 1 |
4 changes: 4 additions & 0 deletions
4
go-test-app-02/revisions/1fbf664a7d3b692d52dace575a583973f6e91675-inc.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cointoss/main.go:10: main 50.0% | ||
cointoss/main.go:20: tossCoin 50.0% | ||
cointoss/main.go:28: maybe 0.0% | ||
total: (statements) 50.0% |
69 changes: 69 additions & 0 deletions
69
go-test-app-02/revisions/1fbf664a7d3b692d52dace575a583973f6e91675.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> | ||
<meta http-equiv="Pragma" content="no-cache" /> | ||
<meta http-equiv="Expires" content="0" /> | ||
<title>cointoss: Go Coverage Report</title> | ||
<script src="../index.js?0427da24e69fa8b8d01f59e705306ed0"></script> | ||
</head> | ||
<body> | ||
<div id="topbar"> | ||
<div id="nav"> | ||
<select id="files"> | ||
|
||
<option value="file0">cointoss/main.go (70.0%)</option> | ||
|
||
</select> | ||
</div> | ||
<div id="legend"> | ||
<span>not tracked</span> | ||
|
||
<span class="cov0">not covered</span> | ||
<span class="cov8">covered</span> | ||
|
||
</div> | ||
</div> | ||
<div id="content"> | ||
|
||
<pre class="file" id="file0" style="display: none">package main | ||
|
||
import ( | ||
"fmt" | ||
"math/rand" | ||
) | ||
|
||
const side = "right" | ||
|
||
func main() <span class="cov8" title="1">{ | ||
if tossCoin() == "heads" </span><span class="cov0" title="0">{ | ||
fmt.Println("Heads") | ||
}</span> else<span class="cov8" title="1"> { | ||
fmt.Println("Tails") | ||
}</span> | ||
|
||
<span class="cov8" title="1">fmt.Println("Maybe:", maybe())</span> | ||
} | ||
|
||
func tossCoin() string <span class="cov8" title="1">{ | ||
if rand.Intn(2) == 0 </span><span class="cov0" title="0">{ | ||
return "heads" | ||
}</span> else<span class="cov8" title="1"> { | ||
return "tails" | ||
}</span> | ||
} | ||
|
||
func maybe() bool <span class="cov8" title="1">{ | ||
if side == "right" </span><span class="cov8" title="1">{ | ||
return true | ||
}</span> else<span class="cov0" title="0"> { | ||
return false | ||
}</span> | ||
} | ||
</pre> | ||
|
||
</div> | ||
</body> | ||
</html> |
11 changes: 11 additions & 0 deletions
11
go-test-app-02/revisions/1fbf664a7d3b692d52dace575a583973f6e91675.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
mode: set | ||
cointoss/main.go:10.13,11.27 1 1 | ||
cointoss/main.go:11.27,13.3 1 0 | ||
cointoss/main.go:13.8,15.3 1 1 | ||
cointoss/main.go:17.2,17.32 1 1 | ||
cointoss/main.go:20.24,21.23 1 1 | ||
cointoss/main.go:21.23,23.3 1 0 | ||
cointoss/main.go:23.8,25.3 1 1 | ||
cointoss/main.go:28.19,29.21 1 1 | ||
cointoss/main.go:29.21,31.3 1 1 | ||
cointoss/main.go:31.8,33.3 1 0 |
4 changes: 4 additions & 0 deletions
4
go-test-app-02/revisions/1fbf664a7d3b692d52dace575a583973f6e91675.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cointoss/main.go:10: main 75.0% | ||
cointoss/main.go:20: tossCoin 66.7% | ||
cointoss/main.go:28: maybe 66.7% | ||
total: (statements) 70.0% |