(vu VU)
| 184 | } |
| 185 | |
| 186 | func getCurrentModuleScript(vu VU) string { |
| 187 | rt := vu.Runtime() |
| 188 | var parent string |
| 189 | var buf [2]sobek.StackFrame |
| 190 | frames := rt.CaptureCallStack(2, buf[:0]) |
| 191 | if len(frames) == 0 || frames[1].SrcName() == "file:///-" { |
| 192 | return vu.InitEnv().CWD.JoinPath("./-").String() |
| 193 | } |
| 194 | parent = frames[1].SrcName() |
| 195 | |
| 196 | return parent |
| 197 | } |
| 198 | |
| 199 | func getPreviousRequiringFile(vu VU) (string, error) { |
| 200 | rt := vu.Runtime() |
no test coverage detected
searching dependent graphs…