mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 04:20:24 +00:00
@@ -124,6 +124,15 @@ func TestRolodexLocalFS_BadAbsFile(t *testing.T) {
|
||||
assert.Error(t, e)
|
||||
}
|
||||
|
||||
func TestRolodexLocalFS_ErrorOutWaiter(t *testing.T) {
|
||||
|
||||
lfs := &LocalFS{indexConfig: nil}
|
||||
lfs.processingFiles.Store("/test.yaml", &waiterLocal{})
|
||||
f, e := lfs.Open("/test.yaml")
|
||||
assert.Nil(t, f)
|
||||
assert.Error(t, e)
|
||||
}
|
||||
|
||||
func TestRolodexLocalFile_BadParse(t *testing.T) {
|
||||
|
||||
lf := &LocalFile{}
|
||||
|
||||
Reference in New Issue
Block a user