dwarf/frame: detecting dwarf section endianness

This commit is contained in:
aarzilli
2016-01-24 09:47:22 +01:00
committed by Derek Parker
parent 1bfae45b07
commit b1640238ce
8 changed files with 69 additions and 16 deletions

View File

@ -1,6 +1,7 @@
package frame_test
import (
"encoding/binary"
"io/ioutil"
"os"
"testing"
@ -24,6 +25,6 @@ func BenchmarkParse(b *testing.B) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
frame.Parse(data)
frame.Parse(data, binary.BigEndian)
}
}