We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b656a1 commit 5df0ca5Copy full SHA for 5df0ca5
internal/declcfg/load_test.go
@@ -3,6 +3,7 @@ package declcfg
3
import (
4
"encoding/json"
5
"io/fs"
6
+ "os"
7
"testing"
8
"testing/fstest"
9
@@ -99,10 +100,15 @@ func TestLoadFS(t *testing.T) {
99
100
}
101
specs := []spec{
102
{
- name: "Error/NonExistentDir",
103
+ name: "Error/NilFS",
104
fsys: nil,
105
assertion: require.Error,
106
},
107
+ {
108
+ name: "Error/NonExistentDir",
109
+ fsys: os.DirFS("non/existent/dir/"),
110
+ assertion: require.Error,
111
+ },
112
113
name: "Error/Invalid",
114
fsys: invalidFS,
0 commit comments