MCPcopy Create free account

hub / github.com/icrowley/fake / functions

Functions157 in github.com/icrowley/fake

↓ 1 callersFunctionState
State generates random state
addresses.go:37
↓ 1 callersFunctionStateAbbrev
StateAbbrev generates random state abbreviation
addresses.go:42
↓ 1 callersFunctionStreetAddress
StreetAddress generates random street name along with building number
addresses.go:53
↓ 1 callersFunctionTitle
Title generates from 2 to 5 titleized words
lorem_ipsum.go:46
↓ 1 callersFunctionUserAgent
UserAgent generates a random user agent.
internet.go:75
↓ 1 callersFunctionWeekDay
WeekDay generates name ot the week day
dates.go:9
↓ 1 callersFunctionWeekDayShort
WeekDayShort generates abbreviated name of the week day
dates.go:14
↓ 1 callersFunctionWeekdayNum
WeekdayNum generates number of the day of the week
dates.go:19
↓ 1 callersFunctionWords
Words generates from 1 to 5 random words
lorem_ipsum.go:41
↓ 1 callersFunctionYear
Year generates year using the given boundaries
dates.go:39
↓ 1 callersFunctionZip
Zip generates random zip code using one of the formats specifies in zip_format file
addresses.go:62
↓ 1 callersFunction_lookup
(lang, cat string, fallback bool)
fake.go:170
↓ 1 callersFunctioncityPrefix
()
addresses.go:28
↓ 1 callersFunctioncitySuffix
()
addresses.go:32
↓ 1 callersFunctioncreditCardNumChecksum
(num []rune)
credit_cards.go:73
↓ 1 callersFunctionfullNameWithSuffix
(gender string)
names.go:98
↓ 1 callersMethodhasKeyPath
(lang, cat string)
fake.go:131
↓ 1 callersFunctionjobTitleSuffix
()
jobs.go:18
↓ 1 callersFunctionpopulateSamples
(lang, cat string)
fake.go:189
↓ 1 callersFunctionprefix
(gender string)
names.go:68
↓ 1 callersFunctionreadFile
(lang, cat string)
fake.go:205
↓ 1 callersFunctionstreetSuffix
()
addresses.go:57
↓ 1 callersFunctionsuffix
(gender string)
names.go:72
↓ 1 callersFunctiontext
(atLeast, atMost int, allowLower, allowUpper, allowNumeric, allowSpecial bool)
general.go:9
FunctionDir
Dir returns a http.Filesystem for the embedded assets on a given prefix dir. If useLocal is true, the filesystem's contents are instead used.
data.go:143
FunctionFSMustString
FSMustString is the string version of FSMustByte.
data.go:183
FunctionFSString
FSString is the string version of FSByte.
data.go:177
MethodInt63
()
fake.go:80
MethodIsDir
()
data.go:124
MethodModTime
()
data.go:120
MethodMode
()
data.go:116
MethodName
()
data.go:108
MethodOpen
(name string)
data.go:73
MethodOpen
(name string)
data.go:81
MethodReaddir
(count int)
data.go:100
FunctionSeed
Seed uses the provided seed value to initialize the internal PRNG to a deterministic state.
fake.go:71
MethodSize
()
data.go:112
MethodStat
()
data.go:104
MethodSys
()
data.go:128
FunctionTestAddresses
(t *testing.T)
addresses_test.go:7
FunctionTestConcurrentSafety
TestConcurrentSafety runs fake methods in multiple go routines concurrently. This test should be run with the race detector enabled.
fake_test.go:39
FunctionTestCreditCards
(t *testing.T)
credit_cards_test.go:7
FunctionTestCurrencies
(t *testing.T)
currencies_test.go:7
FunctionTestDates
(t *testing.T)
dates_test.go:7
FunctionTestFakerRuWithCallback
(t *testing.T)
fake_test.go:28
FunctionTestFakerRuWithoutCallback
(t *testing.T)
fake_test.go:19
FunctionTestGeneral
(t *testing.T)
general_test.go:7
FunctionTestGeo
(t *testing.T)
geo_test.go:7
FunctionTestInternet
(t *testing.T)
internet_test.go:7
FunctionTestJobs
(t *testing.T)
jobs_test.go:7
FunctionTestLoremIpsum
(t *testing.T)
lorem_ipsum_test.go:7
FunctionTestNames
(t *testing.T)
names_test.go:7
FunctionTestPersonal
(t *testing.T)
personal_test.go:7
FunctionTestProducts
(t *testing.T)
products_test.go:7
FunctionTestSetLang
(t *testing.T)
fake_test.go:7
FunctionUseExternalData
UseExternalData sets the flag that allows using of external files as data providers (fake uses embedded ones by default)
fake.go:122
Functioninit
()
credit_cards.go:30
← previous101–157 of 157, ranked by callers