mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-28 16:02:01 +03:00
add new integration test pattern
This commit is contained in:
@ -128,3 +128,10 @@ func StackTrace() string {
|
||||
n := runtime.Stack(buf, false)
|
||||
return fmt.Sprintf("%s\n", buf[:n])
|
||||
}
|
||||
|
||||
// returns the path of the file that calls the function.
|
||||
// 'skip' is the number of stack frames to skip.
|
||||
func FilePath(skip int) string {
|
||||
_, path, _, _ := runtime.Caller(skip)
|
||||
return path
|
||||
}
|
||||
|
Reference in New Issue
Block a user