Files
polaris/pkg/storage/base_test.go
2025-09-15 20:17:40 +08:00

17 lines
254 B
Go

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")
}
}