file returns the full path to the file that contains the function for this Frame's pc.
()
| 78 | // file returns the full path to the file that contains the |
| 79 | // function for this Frame's pc. |
| 80 | func (f frame) file() string { |
| 81 | fn := runtime.FuncForPC(f.pc()) |
| 82 | if fn == nil { |
| 83 | return "unknown" |
| 84 | } |
| 85 | file, _ := fn.FileLine(f.pc()) |
| 86 | return file |
| 87 | } |
| 88 | |
| 89 | // line returns the line number of source code of the |
| 90 | // function for this Frame's pc. |
no test coverage detected