MCPcopy
hub / github.com/grpc/grpc-go / restoreHooks

Function restoreHooks

benchmark/latency/latency_test.go:53–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51func (bufConn) SetWriteDeadline(time.Time) error { panic("unimplemented") }
52
53func restoreHooks() func() {
54 s := sleep
55 n := now
56 return func() {
57 sleep = s
58 now = n
59 }
60}
61
62func (s) TestConn(t *testing.T) {
63 defer restoreHooks()()

Callers 5

TestConnMethod · 0.85
TestSyncMethod · 0.85
TestSyncTooSlowMethod · 0.85
TestListenerAndDialerMethod · 0.85
TestBufferBloatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected