(t *testing.T)
| 157 | } |
| 158 | |
| 159 | func TestCountry(t *testing.T) { |
| 160 | t.Log("TestCountry") |
| 161 | countryFull := Country(FullCountry) |
| 162 | countryTwo := Country(TwoCharCountry) |
| 163 | countryThree := Country(ThreeCharCountry) |
| 164 | |
| 165 | if len(countryThree) < 3 { |
| 166 | t.Error("countryThree < 3 chars") |
| 167 | } |
| 168 | |
| 169 | if !findInSlice(jsonData.Countries, countryFull) { |
| 170 | t.Error("Couldnt find country in countries") |
| 171 | } |
| 172 | |
| 173 | if !findInSlice(jsonData.CountriesTwoChars, countryTwo) { |
| 174 | t.Error("Couldnt find country with two chars in countriesTwoChars") |
| 175 | } |
| 176 | |
| 177 | if !findInSlice(jsonData.CountriesThreeChars, countryThree) { |
| 178 | t.Error("Couldnt find country with three chars in countriesThreeChars") |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | func TestCurrency(t *testing.T) { |
| 183 | t.Log("TestCurrency") |
nothing calls this directly
no test coverage detected
searching dependent graphs…