Lines Matching refs:want
670 want string
688 want: "normal",
716 want: "normal_a",
735 want: "normal_a",
759 want: "far",
796 want: "far_b",
824 want: "nil",
830 if g, w := got == nil, tt.want == "nil"; g != w {
831 t.Fatalf("findVariant() got = %v, want %v", got, tt.want)
834 if g, w := got.String(), fmt.Sprintf("module %q variant %q", "dep", tt.want); g != w {
995 want := []string{
1001 for i := range want {
1003 t.Errorf("missing error %s", want[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):] {
1031 want := []string{
1036 for i := range want {
1038 t.Errorf("missing error %s", want[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):] {
1068 want := []string{
1073 for i := range want {
1075 t.Errorf("missing error %s", want[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):] {