file returns the full path to the file that contains the function for this Frame's pc.
()
| 21 | // file returns the full path to the file that contains the |
| 22 | // function for this Frame's pc. |
| 23 | func (f Frame) file() string { |
| 24 | fn := runtime.FuncForPC(f.pc()) |
| 25 | if fn == nil { |
| 26 | return "unknown" |
| 27 | } |
| 28 | file, _ := fn.FileLine(f.pc()) |
| 29 | return file |
| 30 | } |
| 31 | |
| 32 | // line returns the line number of source code of the |
| 33 | // function for this Frame's pc. |
no test coverage detected