(t *testing.T)
| 240 | } |
| 241 | |
| 242 | func TestNoun(t *testing.T) { |
| 243 | if len(jsonData.Nouns) == 0 { |
| 244 | t.Error("Nouns is empty") |
| 245 | } |
| 246 | |
| 247 | noun := Noun() |
| 248 | |
| 249 | if !findInSlice(jsonData.Nouns, noun) { |
| 250 | t.Error("Couldnt find noun in json data") |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | func TestAdjective(t *testing.T) { |
| 255 | if len(jsonData.Adjectives) == 0 { |
nothing calls this directly
no test coverage detected
searching dependent graphs…