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

Method tearDown

test/end2end_test.go:539–561  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

537}
538
539func (te *test) tearDown() {
540 if te.cancel != nil {
541 te.cancel()
542 te.cancel = nil
543 }
544
545 if te.cc != nil {
546 te.cc.Close()
547 te.cc = nil
548 }
549
550 if te.restoreLogs != nil {
551 te.restoreLogs()
552 te.restoreLogs = nil
553 }
554
555 if te.srv != nil {
556 te.srv.Stop()
557 }
558 for _, s := range te.srvs {
559 s.Stop()
560 }
561}
562
563// newTest returns a new test using the provided testing.T and
564// environment. It is returned with default values. Tests should

Calls 3

cancelMethod · 0.80
CloseMethod · 0.65
StopMethod · 0.65

Tested by

no test coverage detected