diff --git a/go-test-app-02/head/head.html b/go-test-app-02/head/head.html
index 0bbe75d..c9c2df3 100644
--- a/go-test-app-02/head/head.html
+++ b/go-test-app-02/head/head.html
@@ -79,9 +79,9 @@
const side = "right"
func main() {
- if tossCoin() == "heads" {
+ if tossCoin() == "heads" {
fmt.Println("Heads")
- } else {
+ } else {
fmt.Println("Tails")
}
@@ -89,9 +89,9 @@
}
func tossCoin() string {
- if rand.Intn(2) == 0 {
+ if rand.Intn(2) == 0 {
return "heads"
- } else {
+ } else {
return "tails"
}
}
diff --git a/go-test-app-02/head/head.out b/go-test-app-02/head/head.out
index 0a1ec91..6f7c42c 100644
--- a/go-test-app-02/head/head.out
+++ b/go-test-app-02/head/head.out
@@ -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
diff --git a/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501-inc.html b/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501-inc.html
new file mode 100644
index 0000000..91100d6
--- /dev/null
+++ b/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501-inc.html
@@ -0,0 +1,137 @@
+
+
+
+
+
+ cointoss: Go Coverage Report
+
+
+
+
+
+
+
+
+ not tracked
+
+ not covered
+ covered
+
+
+
+
+
+
package main
+
+import (
+ "fmt"
+ "math/rand"
+)
+
+const side = "right"
+
+func main() {
+ if tossCoin() == "heads" {
+ fmt.Println("Heads")
+ } else {
+ fmt.Println("Tails")
+ }
+
+ fmt.Println("Maybe:", maybe())
+}
+
+func tossCoin() string {
+ if rand.Intn(2) == 0 {
+ return "heads"
+ } else {
+ return "tails"
+ }
+}
+
+func maybe() bool {
+ if side == "right" {
+ return true
+ } else {
+ return false
+ }
+}
+
+
+
+
+
+
diff --git a/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501-inc.out b/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501-inc.out
new file mode 100644
index 0000000..bca74fa
--- /dev/null
+++ b/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501-inc.out
@@ -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
diff --git a/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501-inc.txt b/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501-inc.txt
new file mode 100644
index 0000000..0e4b309
--- /dev/null
+++ b/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501-inc.txt
@@ -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%
diff --git a/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501.html b/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501.html
new file mode 100644
index 0000000..c9c2df3
--- /dev/null
+++ b/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501.html
@@ -0,0 +1,137 @@
+
+
+
+
+
+ cointoss: Go Coverage Report
+
+
+
+
+
+
+
+
+ not tracked
+
+ not covered
+ covered
+
+
+
+
+
+
package main
+
+import (
+ "fmt"
+ "math/rand"
+)
+
+const side = "right"
+
+func main() {
+ if tossCoin() == "heads" {
+ fmt.Println("Heads")
+ } else {
+ fmt.Println("Tails")
+ }
+
+ fmt.Println("Maybe:", maybe())
+}
+
+func tossCoin() string {
+ if rand.Intn(2) == 0 {
+ return "heads"
+ } else {
+ return "tails"
+ }
+}
+
+func maybe() bool {
+ if side == "right" {
+ return true
+ } else {
+ return false
+ }
+}
+
+
+
+
+
+
diff --git a/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501.out b/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501.out
new file mode 100644
index 0000000..6f7c42c
--- /dev/null
+++ b/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501.out
@@ -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
diff --git a/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501.txt b/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501.txt
new file mode 100644
index 0000000..7713fd1
--- /dev/null
+++ b/go-test-app-02/revisions/8a4f1606b609a2124506b649caa0921f6942d501.txt
@@ -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%