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

Function Path

security/advancedtls/testdata/testdata.go:37–43  ·  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

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

Callers 12

TestVerifyCrlFunction · 0.92
TestRevokedCertFunction · 0.92
TestStaticCRLProviderMethod · 0.92
copyCredsToTmpFilesMethod · 0.92
LoadCertsMethod · 0.92
mainFunction · 0.92
mainFunction · 0.92

Calls 1

JoinMethod · 0.80