Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated tests #20

Merged
merged 1 commit into from
Jun 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ require (
github.com/alecthomas/kong v0.9.0
github.com/djthorpe/go-errors v1.0.3
github.com/djthorpe/go-tablewriter v0.0.8
github.com/hashicorp/go-multierror v1.1.1
github.com/stretchr/testify v1.9.0
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
Expand Down
6 changes: 4 additions & 2 deletions pkg/chromaprint/fingerprint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

const (
// Test data
testData1 = "../../etc/test/audio_22050_1ch_5m35.s16le"
testData1 = "../../etc/test/audio_22050_1ch_5m35.s16le.sw"
)

func Test_fingerprint_000(t *testing.T) {
Expand All @@ -33,7 +33,9 @@ func Test_fingerprint_002(t *testing.T) {
assert.NotNil(fingerprint)

r, err := os.Open(testData1)
assert.NoError(err)
if !assert.NoError(err) {
t.SkipNow()
}
defer r.Close()

buf := make([]int16, 1024)
Expand Down
5 changes: 0 additions & 5 deletions sys/ffmpeg61/avcodec_parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,3 @@ func (ctx *AVCodecParameters) Width() int {
func (ctx *AVCodecParameters) Height() int {
return int(ctx.height)
}

// Video
func (ctx *AVCodecParameters) Framerate() AVRational {
return AVRational(ctx.framerate)
}