1
0
mirror of https://github.com/golang/go synced 2024-10-04 13:21:22 -06:00
go/src/context
Jack Lindamood 8876061149 context: add test for WithDeadline in the past
Adds a test case for calling context.WithDeadline() where the deadline
exists in the past.  This change increases the code coverage of the
context package.

Change-Id: Ib486bf6157e779fafd9dab2b7364cdb5a06be36e
Reviewed-on: https://go-review.googlesource.com/25007
Reviewed-by: Sameer Ajmani <sameer@golang.org>
Run-TryBot: Sameer Ajmani <sameer@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-07-26 14:53:38 +00:00
..
context_test.go context: add test for WithDeadline in the past 2016-07-26 14:53:38 +00:00
context.go context: update documentation on cancelation and go vet check. 2016-06-24 19:21:21 +00:00
withtimeout_test.go context: cancel the context in ExampleWithTimeout, with explanation 2016-06-30 19:56:02 +00:00