localFilePath returns the location of `main.go` in the dbgen package.
()
| 462 | |
| 463 | // localFilePath returns the location of `main.go` in the dbgen package. |
| 464 | func 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. |
| 473 | func nameFromSnakeCase(s string) string { |
no test coverage detected