(t *testing.T, fmt string, args ...interface{})
| 70 | } |
| 71 | |
| 72 | func formattedLog(t *testing.T, fmt string, args ...interface{}) { |
| 73 | _, file, line, _ := runtime.Caller(2) |
| 74 | file = filepath.Base(file) |
| 75 | targs := make([]interface{}, len(args)+2) |
| 76 | targs[0] = file |
| 77 | targs[1] = line |
| 78 | copy(targs[2:], args) |
| 79 | t.Logf("\033[31m%s:%d:\n\n\t"+fmt+"\033[39m\n\n", targs...) |
| 80 | } |