(timeout time.Duration)
| 772 | } |
| 773 | |
| 774 | func timeoutChan(timeout time.Duration) <-chan time.Time { |
| 775 | if timeout == 0 { |
| 776 | return nil |
| 777 | } |
| 778 | |
| 779 | return time.After(timeout) |
| 780 | } |
| 781 | |
| 782 | func resetGlobals() { |
| 783 | globalMu.Lock() |
no outgoing calls
no test coverage detected