summaryrefslogtreecommitdiffstats
path: root/src/cmd/cover/testdata/pkgcfg/b/b.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/cover/testdata/pkgcfg/b/b.go')
-rw-r--r--src/cmd/cover/testdata/pkgcfg/b/b.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cmd/cover/testdata/pkgcfg/b/b.go b/src/cmd/cover/testdata/pkgcfg/b/b.go
new file mode 100644
index 0000000..9e330ee
--- /dev/null
+++ b/src/cmd/cover/testdata/pkgcfg/b/b.go
@@ -0,0 +1,10 @@
+package b
+
+func B(x int) int {
+ if x == 0 {
+ return 22
+ } else if x == 1 {
+ return 33
+ }
+ return 44
+}