mirror of
https://github.com/containers/podman.git
synced 2025-12-02 19:28:58 +08:00
Bump github.com/onsi/gomega from 1.11.0 to 1.12.0
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.11.0 to 1.12.0. - [Release notes](https://github.com/onsi/gomega/releases) - [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/gomega/compare/v1.11.0...v1.12.0) Signed-off-by: dependabot[bot] <support@github.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