diff --git a/index/index_model.go b/index/index_model.go index 3c8c582..c0c4f14 100644 --- a/index/index_model.go +++ b/index/index_model.go @@ -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 } diff --git a/index/search_rolodex_test.go b/index/search_rolodex_test.go index 5fad124..459ef90 100644 --- a/index/search_rolodex_test.go +++ b/index/search_rolodex_test.go @@ -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) { diff --git a/index/spec_index.go b/index/spec_index.go index 798d1f0..cc35039 100644 --- a/index/spec_index.go +++ b/index/spec_index.go @@ -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 }