mirror of
https://github.com/simon-ding/polaris.git
synced 2026-05-31 06:57:43 +08:00
feat: add to blacklist if torrent has no video file
This commit is contained in:
16
pkg/storage/base_test.go
Normal file
16
pkg/storage/base_test.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package storage
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
func TestError(t *testing.T) {
|
||||
err := &NoVideoFileError{Path: "/some/path"}
|
||||
if errors.Is(err, &NoVideoFileError{}) {
|
||||
t.Log("is NoVideoFileError")
|
||||
} else {
|
||||
t.Error("not match")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user