MCPcopy Create free account
hub / github.com/cloudwan/gohan / compareSchemas

Function compareSchemas

cli/client/client_test_utils.go:410–419  ·  view source on GitHub ↗
(actual, expected []*schema.Schema)

Source from the content-addressed store, hash-verified

408}
409
410func compareSchemas(actual, expected []*schema.Schema) {
411 g.Expect(actual).To(g.HaveLen(len(expected)))
412 for i, s := range actual {
413 sortProperties(s)
414 sortProperties(expected[i])
415 schema.SortActions(s)
416 schema.SortActions(expected[i])
417 g.Expect(s).To(g.Equal(expected[i]))
418 }
419}
420
421type properties []schema.Property
422

Callers 1

client_test.goFile · 0.85

Calls 1

sortPropertiesFunction · 0.85

Tested by

no test coverage detected