diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-03-07 01:16:20 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-03-07 01:16:20 +0000 |
commit | 0effc3f961337abd0edb7c1a3dcd4b98636c085c (patch) | |
tree | 28d4e50a31f7428050763b36e3c7bbdeeb541a0f /libgo/go/encoding/binary/binary_test.go | |
parent | 1f3d0afc2623f1728a73971d415ca2991f7b9c18 (diff) | |
download | gcc-0effc3f961337abd0edb7c1a3dcd4b98636c085c.zip gcc-0effc3f961337abd0edb7c1a3dcd4b98636c085c.tar.gz gcc-0effc3f961337abd0edb7c1a3dcd4b98636c085c.tar.bz2 |
libgo: Implement and use runtime.Caller, runtime.Func.FileLine.
From-SVN: r185025
Diffstat (limited to 'libgo/go/encoding/binary/binary_test.go')
-rw-r--r-- | libgo/go/encoding/binary/binary_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libgo/go/encoding/binary/binary_test.go b/libgo/go/encoding/binary/binary_test.go index ff361b7..dec47a1 100644 --- a/libgo/go/encoding/binary/binary_test.go +++ b/libgo/go/encoding/binary/binary_test.go @@ -2,10 +2,11 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package binary +package binary_test import ( "bytes" + . "encoding/binary" "io" "math" "reflect" @@ -187,7 +188,7 @@ func BenchmarkReadStruct(b *testing.B) { bsr := &byteSliceReader{} var buf bytes.Buffer Write(&buf, BigEndian, &s) - n := dataSize(reflect.ValueOf(s)) + n := DataSize(reflect.ValueOf(s)) b.SetBytes(int64(n)) t := s b.ResetTimer() |