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

Function getRandValue

helpers.go:47–52  ·  view source on GitHub ↗

Get Random Value

(f *Faker, dataVal []string)

Source from the content-addressed store, hash-verified

45
46// Get Random Value
47func getRandValue(f *Faker, dataVal []string) string {
48 if !dataCheck(dataVal) {
49 return ""
50 }
51 return data.Data[dataVal[0]][dataVal[1]][f.IntN(len(data.Data[dataVal[0]][dataVal[1]]))]
52}
53
54// Replace # with numbers
55func replaceWithNumbers(f *Faker, str string) string {

Callers 15

interjectionFunction · 0.85
loremIpsumWordFunction · 0.85
companyFunction · 0.85
companySuffixFunction · 0.85
blurbFunction · 0.85
buzzWordFunction · 0.85
bsFunction · 0.85
jobTitleFunction · 0.85
jobDescriptorFunction · 0.85
jobLevelFunction · 0.85
sloganFunction · 0.85
TestGetRandValueFailFunction · 0.85

Calls 2

dataCheckFunction · 0.85
IntNMethod · 0.80

Tested by 1

TestGetRandValueFailFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…