diff --git a/go-test-app-01/head/head.html b/go-test-app-01/head/head.html index 79d49b2..8f21c76 100644 --- a/go-test-app-01/head/head.html +++ b/go-test-app-01/head/head.html @@ -38,9 +38,9 @@ const side = "right" func main() { - if tossCoin() == "heads" { + if tossCoin() == "heads" { fmt.Println("Heads") - } else { + } else { fmt.Println("Tails") } @@ -48,9 +48,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-01/head/head.out b/go-test-app-01/head/head.out index 0a1ec91..6f7c42c 100644 --- a/go-test-app-01/head/head.out +++ b/go-test-app-01/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-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675-inc.html b/go-test-app-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675-inc.html new file mode 100644 index 0000000..f2b12ec --- /dev/null +++ b/go-test-app-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675-inc.html @@ -0,0 +1,69 @@ + + + + + + + + + cointoss: Go Coverage Report + + + +
+ +
+ not tracked + + not covered + covered + +
+
+
+ + + +
+ + diff --git a/go-test-app-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675-inc.out b/go-test-app-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675-inc.out new file mode 100644 index 0000000..bca74fa --- /dev/null +++ b/go-test-app-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675-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-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675-inc.txt b/go-test-app-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675-inc.txt new file mode 100644 index 0000000..0e4b309 --- /dev/null +++ b/go-test-app-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675-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-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675.html b/go-test-app-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675.html new file mode 100644 index 0000000..8f21c76 --- /dev/null +++ b/go-test-app-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675.html @@ -0,0 +1,69 @@ + + + + + + + + + cointoss: Go Coverage Report + + + +
+ +
+ not tracked + + not covered + covered + +
+
+
+ + + +
+ + diff --git a/go-test-app-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675.out b/go-test-app-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675.out new file mode 100644 index 0000000..6f7c42c --- /dev/null +++ b/go-test-app-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675.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-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675.txt b/go-test-app-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675.txt new file mode 100644 index 0000000..7713fd1 --- /dev/null +++ b/go-test-app-01/revisions/1fbf664a7d3b692d52dace575a583973f6e91675.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%