Lines Matching refs:got
25 got, err := promptForAddress(strings.NewReader(in))
29 if got.Id != 12345 {
30 t.Errorf("promptForAddress(%q) got %d, want ID %d", in, got.Id, 12345)
32 if got.Name != "Example Name" {
33 t.Errorf("promptForAddress(%q) => want name %q, got %q", "Example Name", got.Name)
35 if got.Email != "name@example.com" {
36 t.Errorf("promptForAddress(%q) => want email %q, got %q", "name@example.com", got.Email)
45 if len(got.Phones) != len(want) {
46 t.Errorf("want %d phone numbers, got %d", len(want), len(got.Phones))
48 phones := len(got.Phones)
53 if !proto.Equal(got.Phones[i], want[i]) {
54 t.Errorf("want phone %q, got %q", *want[i], *got.Phones[i])