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

Method clientConn

test/end2end_test.go:853–866  ·  view source on GitHub ↗
(opts ...grpc.DialOption)

Source from the content-addressed store, hash-verified

851}
852
853func (te *test) clientConn(opts ...grpc.DialOption) *grpc.ClientConn {
854 if te.cc != nil {
855 return te.cc
856 }
857 var scheme string
858 opts, scheme = te.configDial(opts...)
859 var err error
860 te.cc, err = grpc.NewClient(scheme+te.srvAddr, opts...)
861 if err != nil {
862 te.t.Fatalf("grpc.NewClient(%q) failed: %v", scheme+te.srvAddr, err)
863 }
864 te.cc.Connect()
865 return te.cc
866}
867
868func (te *test) declareLogNoise(phrases ...string) {
869 te.restoreLogs = declareLogNoise(te.t, phrases...)

Calls 4

configDialMethod · 0.95
NewClientFunction · 0.92
FatalfMethod · 0.65
ConnectMethod · 0.65

Tested by

no test coverage detected