(t *testing.T)
| 252 | } |
| 253 | |
| 254 | func TestAdjective(t *testing.T) { |
| 255 | if len(jsonData.Adjectives) == 0 { |
| 256 | t.Error("Adjectives array is empty") |
| 257 | } |
| 258 | |
| 259 | adjective := Adjective() |
| 260 | |
| 261 | if !findInSlice(jsonData.Adjectives, adjective) { |
| 262 | t.Error("Couldnt find noun in json data") |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | func TestSillyName(t *testing.T) { |
| 267 | sillyName := SillyName() |
nothing calls this directly
no test coverage detected
searching dependent graphs…