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

Method Check

pkg/yamlmeta/parser_test.go:1016–1023  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1014}
1015
1016func (ex parserExample) Check(t *testing.T) {
1017 parsedVal, err := yamlmeta.NewParser(yamlmeta.ParserOpts{WithoutComments: false}).ParseBytes([]byte(ex.Data), "")
1018 if len(ex.ExpectedErr) == 0 {
1019 ex.checkDocSet(t, parsedVal, err)
1020 } else {
1021 ex.checkErr(t, err)
1022 }
1023}
1024
1025func (ex parserExample) checkDocSet(t *testing.T, parsedVal *yamlmeta.DocumentSet, err error) {
1026 if err != nil {

Callers 6

TestParserRootValueFunction · 0.45
TestParserRootStringFunction · 0.45
TestParserInvalidDocFunction · 0.45
TestParserAnchorsFunction · 0.45
TestParserMergeOpFunction · 0.45
CheckMethod · 0.45

Calls 4

checkDocSetMethod · 0.95
checkErrMethod · 0.95
NewParserFunction · 0.92
ParseBytesMethod · 0.80

Tested by

no test coverage detected