mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 04:20:24 +00:00
Datamodel now at 100% coverage
working with k8s, stripe, petstore and locals. Speed is as good as I can make it at this point, not without further performance tunupes for memory consumption. less copying everywhere.
This commit is contained in:
@@ -210,27 +210,6 @@ func TestSetField_NodeRefAny_Error(t *testing.T) {
|
||||
|
||||
}
|
||||
|
||||
func TestSetField_MapStringAny_Error(t *testing.T) {
|
||||
|
||||
type internal struct {
|
||||
Thing map[string]NodeReference[any]
|
||||
}
|
||||
|
||||
yml := `thing:
|
||||
thang:
|
||||
tang:
|
||||
bang:`
|
||||
|
||||
ins := new(internal)
|
||||
var rootNode yaml.Node
|
||||
mErr := yaml.Unmarshal([]byte(yml), &rootNode)
|
||||
assert.NoError(t, mErr)
|
||||
|
||||
try := BuildModel(&rootNode, ins)
|
||||
assert.Error(t, try)
|
||||
|
||||
}
|
||||
|
||||
func TestSetField_MapHelperWrapped(t *testing.T) {
|
||||
|
||||
type internal struct {
|
||||
|
||||
Reference in New Issue
Block a user