36cc17efed
* Change signature to flacSignature In order to disambiguate the introduction of the ID3v2 signature. * Add check flac files containing ID3v2 data * Implement skipId3v2 Note: a new import for decoding synchronized integers from ID3v2 headers was introduced. * Add error checking on the r.Discard calls * Fix comments * Use limited scope for error handling * Capitalize ID in skipID3v2 * Fix comments * Add testcase for skipping id3 data
14 lines
188 B
Go
14 lines
188 B
Go
package flac_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/mewkiz/flac"
|
|
)
|
|
|
|
func TestSkipID3v2(t *testing.T) {
|
|
if _, err := flac.ParseFile("testdata/id3.flac"); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|