mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-24 20:50:46 +08:00
17 lines
254 B
Go
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")
|
|
}
|
|
}
|