Lines Matching refs:ow
24 func (ow *outputWriter) Write(content []byte) (n int, err error) {
25 ow.m.Lock()
26 n, err = ow.writer.Write(content)
27 ow.m.Unlock()
31 func (ow *outputWriter) WriteCallStarted(label string, c *C) {
32 if ow.Stream {
34 ow.m.Lock()
35 ow.writer.Write([]byte(header))
36 ow.m.Unlock()
40 func (ow *outputWriter) WriteCallProblem(label string, c *C) {
42 if !ow.Stream {
47 ow.m.Lock()
48 ow.wroteCallProblemLast = true
49 ow.writer.Write([]byte(header))
50 if !ow.Stream {
51 c.logb.WriteTo(ow.writer)
53 ow.m.Unlock()
56 func (ow *outputWriter) WriteCallSuccess(label string, c *C) {
57 if ow.Stream || (ow.Verbose && c.kind == testKd) {
67 if ow.Stream {
71 ow.m.Lock()
73 if !ow.Stream && ow.wroteCallProblemLast {
78 ow.wroteCallProblemLast = false
79 ow.writer.Write([]byte(header))
80 ow.m.Unlock()