Debian Codegraph @

schema_validation/locate_schema_property_test.go

raw
1 // Copyright 2023 Princess B33f Heavy Industries / Dave Shanley
2 // SPDX-License-Identifier: MIT
3
4 package schema_validation
5
6 import (
7 "testing"
8
9 "github.com/stretchr/testify/assert"
10 )
11
12 func TestLocateSchemaPropertyNodeByJSONPath_BadNode(t *testing.T) {
13 assert.Nil(t, LocateSchemaPropertyNodeByJSONPath(nil, ""))
14 }
15
16 func TestLocateSchemaPropertyNode_EmptyPath(t *testing.T) {
17 assert.Nil(t, locateSchemaPropertyNode(nil, ""))
18 }