diff options
Diffstat (limited to 'src/bytes/export_test.go')
-rw-r--r-- | src/bytes/export_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/bytes/export_test.go b/src/bytes/export_test.go new file mode 100644 index 000000000..3b915d5ea --- /dev/null +++ b/src/bytes/export_test.go @@ -0,0 +1,13 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package bytes + +// Export func for testing +var IndexBytePortable = indexBytePortable +var EqualPortable = equalPortable + +func (b *Buffer) Cap() int { + return cap(b.buf) +} |