Skip to content

Commit

Permalink
bumped coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
daveshanley committed Oct 20, 2024
1 parent 54c3a11 commit 96eaabe
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions index/utility_methods_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ import (
"gopkg.in/yaml.v3"
)

func Test_seekRefEnd(t *testing.T) {

d := `cob: wob
rob:
$ref: "#/cob"
bill:
$ref: "#/rob"`

var rootNode yaml.Node
_ = yaml.Unmarshal([]byte(d), &rootNode)
idx := NewSpecIndex(&rootNode)
r := seekRefEnd(idx, "#/rob")
assert.NotNil(t, r)

}

func TestGenerateCleanSpecConfigBaseURL(t *testing.T) {
u, _ := url.Parse("https://pb33f.io/things/stuff")
path := "."
Expand Down

0 comments on commit 96eaabe

Please sign in to comment.