mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
@@ -124,6 +124,15 @@ func TestRolodexLocalFS_BadAbsFile(t *testing.T) {
|
|||||||
assert.Error(t, e)
|
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) {
|
func TestRolodexLocalFile_BadParse(t *testing.T) {
|
||||||
|
|
||||||
lf := &LocalFile{}
|
lf := &LocalFile{}
|
||||||
|
|||||||
Reference in New Issue
Block a user