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

Function createProvider

credentials/tls/certprovider/store_test.go:170–177  ·  view source on GitHub ↗
(t *testing.T, name, config string, opts BuildOptions)

Source from the content-addressed store, hash-verified

168}
169
170func createProvider(t *testing.T, name, config string, opts BuildOptions) Provider {
171 t.Helper()
172 prov, err := GetProvider(name, config, opts)
173 if err != nil {
174 t.Fatalf("GetProvider(%s, %s, %v) failed: %v", name, config, opts, err)
175 }
176 return prov
177}
178
179// TestStoreSingleProvider creates a single provider through the store and calls
180// methods on them.

Calls 2

GetProviderFunction · 0.85
FatalfMethod · 0.65

Tested by

no test coverage detected