Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201028153306-37f0764111ff / go / pointer / testdata / timer.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/go/pointer/testdata/timer.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/go/pointer/testdata/timer.go
new file mode 100644 (file)
index 0000000..465d081
--- /dev/null
@@ -0,0 +1,24 @@
+// +build ignore
+
+package main
+
+import "time"
+
+func after() {}
+
+func main() {
+       // @calls time.startTimer -> time.sendTime
+       ticker := time.NewTicker(1)
+       <-ticker.C
+
+       // @calls time.startTimer -> time.sendTime
+       timer := time.NewTimer(time.Second)
+       <-timer.C
+
+       // @calls time.startTimer -> time.goFunc
+       // @calls time.goFunc -> main.after
+       timer = time.AfterFunc(time.Second, after)
+       <-timer.C
+}
+
+// @calls time.sendTime -> time.Now