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

Function Path

testdata/testdata.go:36–42  ·  view source on GitHub ↗

Path returns the absolute path the given relative file or directory path, relative to the google.golang.org/grpc/testdata directory in the user's GOPATH. If rel is already absolute, it is returned unmodified.

(rel string)

Source from the content-addressed store, hash-verified

34// relative to the google.golang.org/grpc/testdata directory in the user's GOPATH.
35// If rel is already absolute, it is returned unmodified.
36func Path(rel string) string {
37 if filepath.IsAbs(rel) {
38 return rel
39 }
40
41 return filepath.Join(basepath, rel)
42}

Callers 15

TestCredentialsMisuseMethod · 0.92
gRPCServerHandshakeFunction · 0.92
tlsServerHandshakeFunction · 0.92
initFunction · 0.92
loadTLSCredsFunction · 0.92
loadKeyMaterialsFunction · 0.92
TestNewProviderMethod · 0.92
createTmpDirWithFilesFunction · 0.92

Calls 1

JoinMethod · 0.80

Tested by 15

TestCredentialsMisuseMethod · 0.74
gRPCServerHandshakeFunction · 0.74
tlsServerHandshakeFunction · 0.74
initFunction · 0.74
loadTLSCredsFunction · 0.74
loadKeyMaterialsFunction · 0.74
TestNewProviderMethod · 0.74
createTmpDirWithFilesFunction · 0.74