Lines Matching refs:errs
146 _, errs := setupTestExpectErrs(
180 if len(errs) != 1 || errs[0].Error() != expectedErrors[0].Error() {
181 t.Errorf("Incorrect errors. Expected:\n%v\n, got:\n%v\n", expectedErrors, errs)
381 _, errs := setupTestExpectErrs(
399 if len(errs) != 1 || errs[0].Error() != expectedErrors[0].Error() {
400 t.Errorf("Incorrect errors. Expected:\n%v\n, got:\n%v\n", expectedErrors, errs)
405 _, errs := setupTestExpectErrs(
430 if len(errs) != 1 || errs[0].Error() != expectedErrors[0].Error() {
431 t.Errorf("Incorrect errors. Expected:\n%v\n, got:\n%v\n", expectedErrors, errs)
458 _, errs := setupTestExpectErrs(
493 if len(errs) != 1 || errs[0].Error() != expectedErrors[0].Error() {
494 t.Errorf("Incorrect errors. Expected:\n%v\n, got:\n%v\n", expectedErrors, errs)
499 _, errs := setupTestExpectErrs(
513 if len(errs) != 1 || errs[0].Error() != expectedErrors[0].Error() {
514 t.Errorf("Incorrect errors. Expected:\n%v\n, got:\n%v\n", expectedErrors, errs)
519 _, errs := setupTestExpectErrs(
534 if len(errs) != 1 || errs[0].Error() != expectedErrors[0].Error() {
535 t.Errorf("Incorrect errors. Expected:\n%v\n, got:\n%v\n", expectedErrors, errs)
540 _, errs := setupTestExpectErrs(
559 if len(errs) != 1 || errs[0].Error() != expectedErrors[0].Error() {
560 t.Errorf("Incorrect errors. Expected:\n%v\n, got:\n%v\n", expectedErrors, errs)
565 _, errs := setupTestFromFiles(
581 if len(errs) != 1 || errs[0].Error() != expectedErrors[0].Error() {
582 t.Errorf("Incorrect errors. Expected:\n%v\n, got:\n%v\n", expectedErrors, errs)
635 func setupTestFromFiles(bps map[string][]byte) (ctx *TestContext, errs []error) {
648 _, errs = ctx.ParseBlueprintsFiles("Android.bp")
649 if len(errs) > 0 {
650 return ctx, errs
652 _, errs = ctx.PrepareBuildActions(config)
653 return ctx, errs
656 func setupTestExpectErrs(bps map[string]string) (ctx *TestContext, errs []error) {
667 ctx, errs := setupTestExpectErrs(bps)
668 FailIfErrored(t, errs)