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

Function TestState

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

Source from the content-addressed store, hash-verified

225}
226
227func TestState(t *testing.T) {
228 t.Log("TestState")
229 stateValSmall := State(Small)
230 stateValLarge := State(Large)
231
232 if !findInSlice(jsonData.StatesSmall, stateValSmall) {
233 t.Error("Couldnt find small state name in states")
234 }
235
236 if !findInSlice(jsonData.States, stateValLarge) {
237 t.Error("Couldnt find state name in states")
238 }
239
240}
241
242func TestNoun(t *testing.T) {
243 if len(jsonData.Nouns) == 0 {

Callers

nothing calls this directly

Calls 2

StateFunction · 0.85
findInSliceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…