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

Function TestAdjective

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

Source from the content-addressed store, hash-verified

252}
253
254func 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
266func TestSillyName(t *testing.T) {
267 sillyName := SillyName()

Callers

nothing calls this directly

Calls 2

AdjectiveFunction · 0.85
findInSliceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…