(t *testing.T)
| 73 | } |
| 74 | |
| 75 | func TestFirstName(t *testing.T) { |
| 76 | t.Log("TestFirstName") |
| 77 | firstNameMale := FirstName(Male) |
| 78 | firstNameFemale := FirstName(Female) |
| 79 | randomName := FirstName(RandomGender) |
| 80 | |
| 81 | if !findInSlice(jsonData.FirstNamesMale, firstNameMale) { |
| 82 | t.Error("firstNameMale empty or not in male names") |
| 83 | } |
| 84 | |
| 85 | if !findInSlice(jsonData.FirstNamesFemale, firstNameFemale) { |
| 86 | t.Error("firstNameFemale empty or not in female names") |
| 87 | } |
| 88 | |
| 89 | if randomName == "" { |
| 90 | t.Error("randomName empty") |
| 91 | } |
| 92 | |
| 93 | } |
| 94 | |
| 95 | func TestLastName(t *testing.T) { |
| 96 | t.Log("TestLastName") |
nothing calls this directly
no test coverage detected
searching dependent graphs…