mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
chore: add more test coverage
This commit is contained in:
@@ -4,8 +4,9 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestCreateBoolNode(t *testing.T) {
|
||||
@@ -47,3 +48,9 @@ func TestCreateRefNode(t *testing.T) {
|
||||
assert.Equal(t, "!!str", r.Content[1].Tag)
|
||||
assert.Equal(t, "#/components/schemas/MySchema", r.Content[1].Value)
|
||||
}
|
||||
|
||||
func TestCreateYamlNode(t *testing.T) {
|
||||
y := CreateYamlNode("foo")
|
||||
assert.Equal(t, "!!str", y.Tag)
|
||||
assert.Equal(t, "foo", y.Value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user