MCPcopy
hub / github.com/caddyserver/caddy / getIntegrationDir

Function getIntegrationDir

caddytest/caddytest.go:318–325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316}
317
318func getIntegrationDir() string {
319 _, filename, _, ok := runtime.Caller(1)
320 if !ok {
321 panic("unable to determine the current file path")
322 }
323
324 return path.Dir(filename)
325}
326
327// use the convention to replace /[certificatename].[crt|key] with the full path
328// this helps reduce the noise in test configurations and also allow this

Callers 3

prependCaddyFilePathFunction · 0.85

Calls

no outgoing calls

Tested by 1