Lines Matching refs:errs

157 	_, _, errs := ctx.parseOne(".", "Blueprint", r, parser.NewScope(nil), nil)
158 if len(errs) > 0 {
160 for _, err := range errs {
166 _, errs = ctx.ResolveDependencies(nil)
167 if len(errs) > 0 {
169 for _, err := range errs {
223 _, errs := ctx.ParseBlueprintsFiles("Blueprints", nil)
224 if len(errs) > 0 {
226 for _, err := range errs {
232 _, errs = ctx.ResolveDependencies(nil)
233 if len(errs) > 0 {
235 for _, err := range errs {
304 _, errs := ctx.ParseBlueprintsFiles("Blueprints", nil)
305 if len(errs) > 0 {
307 for _, err := range errs {
313 _, errs = ctx.ResolveDependencies(nil)
314 if len(errs) > 0 {
316 for _, err := range errs {
371 _, errs := ctx.ParseBlueprintsFiles("Blueprints", nil)
372 if len(errs) > 0 {
374 for _, err := range errs {
380 _, errs = ctx.ResolveDependencies(nil)
381 if len(errs) > 0 {
383 for _, err := range errs {
417 _, errs := ctx.ParseBlueprintsFiles("Blueprints", nil)
418 if len(errs) > 0 {
420 for _, err := range errs {
426 _, errs = ctx.ResolveDependencies(nil)
427 if len(errs) > 0 {
429 for _, err := range errs {
572 _, errs := ctx.WalkBlueprintsFiles(".", keys, func(file *parser.File) {})
578 if fmt.Sprintf("%s", expectedErrs) != fmt.Sprintf("%s", errs) {
579 t.Errorf("Incorrect errors; expected:\n%s\ngot:\n%s", expectedErrs, errs)
600 _, errs := ctx.ParseBlueprintsFiles("Blueprints", nil)
605 if fmt.Sprintf("%s", expectedErrs) != fmt.Sprintf("%s", errs) {
606 t.Errorf("Incorrect errors; expected:\n%s\ngot:\n%s", expectedErrs, errs)
872 errs := parallelVisit(nil, bottomUpVisitorImpl{}, 1,
876 if errs != nil {
877 t.Errorf("expected no errors, got %q", errs)
882 errs := parallelVisit([]*moduleInfo{moduleA, moduleB, moduleC}, bottomUpVisitorImpl{}, 1,
887 if errs != nil {
888 t.Errorf("expected no errors, got %q", errs)
896 errs := parallelVisit([]*moduleInfo{moduleA, moduleB, moduleC, moduleD}, bottomUpVisitorImpl{}, 1,
907 if errs != nil {
908 t.Errorf("expected no errors, got %q", errs)
916 errs := parallelVisit([]*moduleInfo{moduleA, moduleB, moduleC}, bottomUpVisitorImpl{}, 1,
922 if errs != nil {
923 t.Errorf("expected no errors, got %q", errs)
931 errs := parallelVisit([]*moduleInfo{moduleA, moduleB, moduleC, moduleD}, bottomUpVisitorImpl{}, 1,
943 if errs != nil {
944 t.Errorf("expected no errors, got %q", errs)
952 errs := parallelVisit([]*moduleInfo{moduleA, moduleB, moduleC}, bottomUpVisitorImpl{}, 3,
957 if errs != nil {
958 t.Errorf("expected no errors, got %q", errs)
966 errs := parallelVisit([]*moduleInfo{moduleA, moduleB, moduleC}, bottomUpVisitorImpl{}, 3,
977 if errs != nil {
978 t.Errorf("expected no errors, got %q", errs)
985 errs := parallelVisit([]*moduleInfo{moduleA, moduleB, moduleC}, bottomUpVisitorImpl{}, 3,
1002 if len(errs) <= i {
1004 } else if !strings.Contains(errs[i].Error(), want[i]) {
1005 t.Errorf("expected error %s, got %s", want[i], errs[i])
1008 if len(errs) > len(want) {
1009 for _, err := range errs[len(want):] {
1015 errs := parallelVisit([]*moduleInfo{moduleA, moduleB, moduleC, moduleD}, bottomUpVisitorImpl{}, 3,
1037 if len(errs) <= i {
1039 } else if !strings.Contains(errs[i].Error(), want[i]) {
1040 t.Errorf("expected error %s, got %s", want[i], errs[i])
1043 if len(errs) > len(want) {
1044 for _, err := range errs[len(want):] {
1059 errs := parallelVisit([]*moduleInfo{moduleD, moduleE, moduleF, moduleG}, bottomUpVisitorImpl{}, 4,
1074 if len(errs) <= i {
1076 } else if !strings.Contains(errs[i].Error(), want[i]) {
1077 t.Errorf("expected error %s, got %s", want[i], errs[i])
1080 if len(errs) > len(want) {
1081 for _, err := range errs[len(want):] {