diff --git a/testio/git-hist.tar.xz b/testio/git-hist.tar.xz deleted file mode 100644 index 2800f5e..0000000 Binary files a/testio/git-hist.tar.xz and /dev/null differ diff --git a/testio/testio.go b/testio/testio.go index 9b5dd59..8d75911 100644 --- a/testio/testio.go +++ b/testio/testio.go @@ -194,6 +194,11 @@ func (buf *BufCloser) Bytes() []byte { return buf.buf.Bytes() } +// Len returns the length of the buffer. +func (buf *BufCloser) Len() int { + return buf.buf.Len() +} + // NewBufCloser creates and initializes a new BufCloser using buf as // its initial contents. It is intended to prepare a BufCloser to read // existing data. It can also be used to size the internal buffer for