(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestPostalCode(t *testing.T) { |
| 46 | for _, pt := range postalcodeTests { |
| 47 | code := PostalCode(pt.Country) |
| 48 | |
| 49 | if len(code) == pt.Size { |
| 50 | continue |
| 51 | } |
| 52 | |
| 53 | t.Fatalf("Invalid length for country %q: Expected %d, have %d.", |
| 54 | pt.Country, pt.Size, len(code)) |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | func TestPostalCodeFormat(t *testing.T) { |
| 59 |
nothing calls this directly
no test coverage detected
searching dependent graphs…