Lines Matching refs:errs
79 _, errs := ctx.ParseFileList(".", []string{"Blueprints"}, nil)
80 if len(errs) > 0 {
82 for _, err := range errs {
87 _, errs = ctx.ResolveDependencies(nil)
88 if len(errs) > 0 {
91 for _, err := range errs {
95 for _, err := range errs {
199 func expectedErrors(t *testing.T, errs []error, expectedMessages ...string) {
201 if len(errs) != len(expectedMessages) {
202 t.Errorf("expected %d error, found: %q", len(expectedMessages), errs)
205 err := errs[i]
219 errs := CheckBlueprintSyntax(factories, "path/Blueprint", `
224 expectedErrors(t, errs)
228 errs := CheckBlueprintSyntax(factories, "path/Blueprint", `
234 expectedErrors(t, errs, `path/Blueprint:5:1: expected "}", found EOF`)
238 errs := CheckBlueprintSyntax(factories, "path/Blueprint", `
244 expectedErrors(t, errs, `path/Blueprint:2:1: unrecognized module type "test2"`)
248 errs := CheckBlueprintSyntax(factories, "path/Blueprint", `
254 expectedErrors(t, errs, `path/Blueprint:3:5: unrecognized property "nam"`)
258 errs := CheckBlueprintSyntax(factories, "path/Blueprint", `
264 expectedErrors(t, errs, `path/Blueprint:3:8: can't assign bool value to string property "name"`)
268 errs := CheckBlueprintSyntax(factories, "path/Blueprint", `
278 expectedErrors(t, errs,