MCPcopy Create free account
hub / github.com/dinofizz/diskplayer / TestPlayPathInvalidPath

Function TestPlayPathInvalidPath

diskplayer_test.go:61–67  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

59}
60
61func TestPlayPathInvalidPath(t *testing.T) {
62 m := new(mocks.Client)
63 err := PlayPath(m, "./test-fixtures/not_a_real_path")
64 if _, ok := err.(*os.PathError); !ok {
65 t.Errorf("PlayPath was expected to fail with os.PathError.")
66 }
67}
68
69func TestPlayPathEmptyFileError(t *testing.T) {
70 m := new(mocks.Client)

Callers

nothing calls this directly

Calls 1

PlayPathFunction · 0.85

Tested by

no test coverage detected