Logf appends the given formatted message to the test log transcript.
(format string, args ...any)
| 980 | |
| 981 | // Logf appends the given formatted message to the test log transcript. |
| 982 | func (ts *TestScript) Logf(format string, args ...any) { |
| 983 | format = strings.TrimSuffix(format, "\n") |
| 984 | fmt.Fprintf(&ts.log, format, args...) |
| 985 | ts.log.WriteByte('\n') |
| 986 | } |
| 987 | |
| 988 | // exec runs the given command line (an actual subprocess, not simulated) |
| 989 | // in ts.cd with environment ts.env and then returns collected standard output and standard error. |
no outgoing calls