()
| 68 | } |
| 69 | |
| 70 | func (b *lockedBuffer) String() string { |
| 71 | b.mu.Lock() |
| 72 | defer b.mu.Unlock() |
| 73 | if b.truncated == 0 { |
| 74 | return b.buf.String() |
| 75 | } |
| 76 | return fmt.Sprintf("%s\n... truncated %d bytes ...", b.buf.String(), b.truncated) |
| 77 | } |
| 78 | |
| 79 | func NewCommandMgr(opts ...Option) *CommandHelper { |
| 80 | s := &CommandHelper{} |
no outgoing calls
no test coverage detected