low level base model back at 100% coverage

A few little gaps opened up with new code, all tucked back in.
This commit is contained in:
Dave Shanley
2022-11-04 10:30:12 -04:00
parent a522ec0f91
commit 5e86e7094f
5 changed files with 69 additions and 4 deletions

View File

@@ -150,6 +150,7 @@ func Test_Schema(t *testing.T) {
assert.Equal(t, "a prefix", j.XML.Value.Prefix.Value)
assert.Equal(t, true, j.XML.Value.Attribute.Value)
assert.Len(t, j.XML.Value.Extensions, 1)
assert.Len(t, j.XML.Value.GetExtensions(), 1)
assert.NotNil(t, v.Value.Schema().AdditionalProperties.Value)
@@ -1246,17 +1247,25 @@ func TestSchema_Hash_Equal(t *testing.T) {
left := `schema:
title: an OK message
required:
- propA
enum:
- one
properties:
propA:
title: a proxy property
type: string`
right := `schema:
enum:
- one
title: an OK message
properties:
propA:
title: a proxy property
type: string`
type: string
required:
- propA`
var lNode, rNode yaml.Node
_ = yaml.Unmarshal([]byte(left), &lNode)