MCPcopy Create free account
hub / github.com/Pallinder/go-randomdata / TestNoun

Function TestNoun

random_data_test.go:242–252  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

240}
241
242func 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
254func TestAdjective(t *testing.T) {
255 if len(jsonData.Adjectives) == 0 {

Callers

nothing calls this directly

Calls 2

NounFunction · 0.85
findInSliceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…