mirror of
https://github.com/golang/go
synced 2024-11-18 16:14:46 -07:00
go.tools/go/pointer: add test file missing from CL 112610043 (rev 32ae05502022)
TBR=gri R=gri CC=adg, golang-codereviews https://golang.org/cl/111580043
This commit is contained in:
parent
63db0771ef
commit
b5528ca070
24
go/pointer/testdata/timer.go
vendored
Normal file
24
go/pointer/testdata/timer.go
vendored
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user