MCPcopy
hub / github.com/brianvoe/gofakeit / dataCheck

Function dataCheck

helpers.go:33–44  ·  view source on GitHub ↗

Check if in lib

(dataVal []string)

Source from the content-addressed store, hash-verified

31
32// Check if in lib
33func dataCheck(dataVal []string) bool {
34 var checkOk bool
35
36 if len(dataVal) == 2 {
37 _, checkOk = data.Data[dataVal[0]]
38 if checkOk {
39 _, checkOk = data.Data[dataVal[0]][dataVal[1]]
40 }
41 }
42
43 return checkOk
44}
45
46// Get Random Value
47func getRandValue(f *Faker, dataVal []string) string {

Callers 1

getRandValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…