MCPcopy
hub / github.com/carvel-dev/ytt / Visit

Method Visit

pkg/schema/check.go:58–70  ·  view source on GitHub ↗
(node yamlmeta.Node)

Source from the content-addressed store, hash-verified

56}
57
58func (t *typeChecker) Visit(node yamlmeta.Node) error {
59 nodeType := GetType(node)
60 if nodeType == nil {
61 return nil
62 }
63
64 chk := nodeType.CheckType(node)
65 if chk.HasViolations() {
66 t.chk.Violations = append(t.chk.Violations, chk.Violations...)
67 }
68
69 return nil
70}
71
72var _ yamlmeta.Visitor = &typeChecker{}
73

Callers

nothing calls this directly

Calls 3

GetTypeFunction · 0.85
HasViolationsMethod · 0.80
CheckTypeMethod · 0.65

Tested by

no test coverage detected