summaryrefslogtreecommitdiffstats
path: root/src/cmd/covdata/testdata/dep.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/covdata/testdata/dep.go')
-rw-r--r--src/cmd/covdata/testdata/dep.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/cmd/covdata/testdata/dep.go b/src/cmd/covdata/testdata/dep.go
new file mode 100644
index 0000000..2127ab2
--- /dev/null
+++ b/src/cmd/covdata/testdata/dep.go
@@ -0,0 +1,17 @@
+// Copyright 2022 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package dep
+
+func Dep1() int {
+ return 42
+}
+
+func PDep(x int) {
+ if x != 1010101 {
+ println(x)
+ } else {
+ panic("bad")
+ }
+}