(t tLogger, f string, args ...any)
| 67 | } |
| 68 | |
| 69 | func stackFatalf(t tLogger, f string, args ...any) { |
| 70 | lines := make([]string, 0, 32) |
| 71 | msg := fmt.Sprintf(f, args...) |
| 72 | lines = append(lines, msg) |
| 73 | |
| 74 | // Generate the Stack of callers: Skip us and verify* frames. |
| 75 | for i := 1; true; i++ { |
| 76 | _, file, line, ok := runtime.Caller(i) |
| 77 | if !ok { |
| 78 | break |
| 79 | } |
| 80 | msg := fmt.Sprintf("%d - %s:%d", i, file, line) |
| 81 | lines = append(lines, msg) |
| 82 | } |
| 83 | t.Fatalf("%s", strings.Join(lines, "\n")) |
| 84 | } |
| 85 | |
| 86 | //////////////////////////////////////////////////////////////////////////////// |
| 87 | // Creating client connections |
no test coverage detected