vendor: bump all direct dependencies
Just good hygiene. Signed-off-by: Casey Callendrello <cdc@redhat.com>
This commit is contained in:
16
vendor/github.com/onsi/gomega/gbytes/buffer.go
generated
vendored
16
vendor/github.com/onsi/gomega/gbytes/buffer.go
generated
vendored
@ -108,6 +108,22 @@ func (b *Buffer) Read(d []byte) (int, error) {
|
||||
return n, nil
|
||||
}
|
||||
|
||||
/*
|
||||
Clear clears out the buffer's contents
|
||||
*/
|
||||
func (b *Buffer) Clear() error {
|
||||
b.lock.Lock()
|
||||
defer b.lock.Unlock()
|
||||
|
||||
if b.closed {
|
||||
return errors.New("attempt to clear closed buffer")
|
||||
}
|
||||
|
||||
b.contents = []byte{}
|
||||
b.readCursor = 0
|
||||
return nil
|
||||
}
|
||||
|
||||
/*
|
||||
Close signifies that the buffer will no longer be written to
|
||||
*/
|
||||
|
Reference in New Issue
Block a user