(v []byte, wakeup chan<- bool)
| 5101 | } |
| 5102 | |
| 5103 | func logOutputHasContents(v []byte, wakeup chan<- bool) bool { |
| 5104 | testLogOutput.mu.Lock() |
| 5105 | defer testLogOutput.mu.Unlock() |
| 5106 | fw, ok := testLogOutput.w.(*filterWriter) |
| 5107 | if !ok { |
| 5108 | return false |
| 5109 | } |
| 5110 | fw.mu.Lock() |
| 5111 | defer fw.mu.Unlock() |
| 5112 | if bytes.Contains(fw.buf.Bytes(), v) { |
| 5113 | return true |
| 5114 | } |
| 5115 | fw.wakeup = wakeup |
| 5116 | return false |
| 5117 | } |
| 5118 | |
| 5119 | var verboseLogs = flag.Bool("verbose_logs", false, "show all log output, without filtering") |
| 5120 |
no test coverage detected