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

Function mustParseServiceConfig

internal/resolver/dns/dns_resolver_test.go:1504–1511  ·  view source on GitHub ↗
(t *testing.T, scJSON string)

Source from the content-addressed store, hash-verified

1502}
1503
1504func mustParseServiceConfig(t *testing.T, scJSON string) serviceconfig.Config {
1505 t.Helper()
1506 sc := internal.ParseServiceConfig.(func(string) *serviceconfig.ParseResult)(scJSON)
1507 if sc.Err != nil {
1508 t.Fatalf("Failed to parse service config %q: %v", scJSON, sc.Err)
1509 }
1510 return sc.Config
1511}

Callers 4

TestDNSResolver_BasicMethod · 0.85

Calls 1

FatalfMethod · 0.65

Tested by

no test coverage detected