mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 12:37:49 +00:00
Merge branch 'main' into ordered-libopenapi
This commit is contained in:
@@ -152,6 +152,7 @@ func (l *LocalFS) Open(name string) (fs.File, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
l.processingFiles.Delete(name)
|
||||||
return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrNotExist}
|
return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrNotExist}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1038,6 +1038,8 @@ components:
|
|||||||
|
|
||||||
assert.GreaterOrEqual(t, len(rolodex.GetIgnoredCircularReferences()), 1)
|
assert.GreaterOrEqual(t, len(rolodex.GetIgnoredCircularReferences()), 1)
|
||||||
assert.Equal(t, rolodex.GetRootIndex().GetResolver().GetIndexesVisited(), 6)
|
assert.Equal(t, rolodex.GetRootIndex().GetResolver().GetIndexesVisited(), 6)
|
||||||
|
assert.Equal(t, int64(1719), rolodex.RolodexFileSize())
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRolodex_IndexCircularLookup_PolyItemsFileOnly_LocalIncluded(t *testing.T) {
|
func TestRolodex_IndexCircularLookup_PolyItemsFileOnly_LocalIncluded(t *testing.T) {
|
||||||
|
|||||||
@@ -258,7 +258,6 @@ func TestSpecIndex_DigitalOcean_FullCheckoutLocalResolve(t *testing.T) {
|
|||||||
assert.Len(t, rolo.GetCaughtErrors(), 0)
|
assert.Len(t, rolo.GetCaughtErrors(), 0)
|
||||||
assert.Len(t, rolo.GetIgnoredCircularReferences(), 0)
|
assert.Len(t, rolo.GetIgnoredCircularReferences(), 0)
|
||||||
|
|
||||||
assert.Equal(t, int64(1333243), rolo.RolodexFileSize())
|
|
||||||
assert.Equal(t, "1.27 MB", rolo.RolodexFileSizeAsString())
|
assert.Equal(t, "1.27 MB", rolo.RolodexFileSizeAsString())
|
||||||
assert.Equal(t, 1699, rolo.RolodexTotalFiles())
|
assert.Equal(t, 1699, rolo.RolodexTotalFiles())
|
||||||
}
|
}
|
||||||
@@ -331,7 +330,6 @@ func TestSpecIndex_DigitalOcean_FullCheckoutLocalResolve_RecursiveLookup(t *test
|
|||||||
assert.Len(t, rolo.GetCaughtErrors(), 0)
|
assert.Len(t, rolo.GetCaughtErrors(), 0)
|
||||||
assert.Len(t, rolo.GetIgnoredCircularReferences(), 0)
|
assert.Len(t, rolo.GetIgnoredCircularReferences(), 0)
|
||||||
|
|
||||||
assert.Equal(t, int64(1273069), rolo.RolodexFileSize())
|
|
||||||
assert.Equal(t, "1.21 MB", rolo.RolodexFileSizeAsString())
|
assert.Equal(t, "1.21 MB", rolo.RolodexFileSizeAsString())
|
||||||
assert.Equal(t, 1685, rolo.RolodexTotalFiles())
|
assert.Equal(t, 1685, rolo.RolodexTotalFiles())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user