()
| 90 | } |
| 91 | |
| 92 | func printStack() { |
| 93 | var buffer bytes.Buffer |
| 94 | fmt.Fprintln(os.Stderr, " tassert.printStack:") |
| 95 | for i := 1; i < 9; i++ { |
| 96 | _, file, line, ok := runtime.Caller(i) |
| 97 | if !ok { |
| 98 | break |
| 99 | } |
| 100 | i := strings.Index(file, "aistore") |
| 101 | if i < 0 { |
| 102 | break |
| 103 | } |
| 104 | if strings.Contains(file, "tassert") { |
| 105 | continue |
| 106 | } |
| 107 | fmt.Fprintf(&buffer, "\t%s:%d\n", file[i+8:], line) |
| 108 | } |
| 109 | os.Stderr.Write(buffer.Bytes()) |
| 110 | } |
no test coverage detected