MCPcopy Index your code
hub / github.com/coder/coder / localFilePath

Function localFilePath

scripts/dbgen/main.go:464–470  ·  view source on GitHub ↗

localFilePath returns the location of `main.go` in the dbgen package.

()

Source from the content-addressed store, hash-verified

462
463// localFilePath returns the location of `main.go` in the dbgen package.
464func localFilePath() (string, error) {
465 _, filename, _, ok := runtime.Caller(0)
466 if !ok {
467 return "", xerrors.Errorf("failed to get caller")
468 }
469 return filename, nil
470}
471
472// nameFromSnakeCase converts snake_case to CamelCase.
473func nameFromSnakeCase(s string) string {

Callers 5

generateCheckConstraintsFunction · 0.85
runFunction · 0.85
parseDBFileFunction · 0.85

Calls 1

ErrorfMethod · 0.45

Tested by

no test coverage detected