more coverage bumps

Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
quobix
2023-11-22 14:29:45 -05:00
parent 7ed3f28dbe
commit ee2783e6e7
3 changed files with 5 additions and 6 deletions

View File

@@ -301,8 +301,8 @@ func (index *SpecIndex) SetAbsolutePath(absolutePath string) {
index.specAbsolutePath = absolutePath
}
// GetAbsolutePath returns the absolute path to the spec file for the index. Will be absolute, either as a http link or a file.
func (index *SpecIndex) GetAbsolutePath() string {
// GetSpecAbsolutePath returns the absolute path to the spec file for the index. Will be absolute, either as a http link or a file.
func (index *SpecIndex) GetSpecAbsolutePath() string {
return index.specAbsolutePath
}

View File

@@ -72,6 +72,9 @@ func TestRolodex_FindNodeOrigin(t *testing.T) {
origin = rolo.FindNodeOrigin(&m)
assert.Nil(t, origin)
// extract the doc root
origin = rolo.FindNodeOrigin(node)
assert.Nil(t, origin)
}
func TestRolodex_FindNodeOrigin_ModifyLookup(t *testing.T) {

View File

@@ -137,10 +137,6 @@ func (index *SpecIndex) BuildIndex() {
index.built = true
}
func (index *SpecIndex) GetSpecAbsolutePath() string {
return index.specAbsolutePath
}
func (index *SpecIndex) GetLogger() *slog.Logger {
return index.logger
}