-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfaker.go
49 lines (46 loc) · 1.33 KB
/
faker.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package mockgopher
import "syreclabs.com/go/faker"
// Faker it's just a struct thats wraps faker packages interfaces
type Faker struct {
Address faker.FakeAddress
App faker.FakeApp
Avatar faker.FakeAvatar
Bitcoin faker.FakeBitcoin
Business faker.FakeBusiness
Code faker.FakeCode
Commerce faker.FakeCommerce
Company faker.FakeCompany
Date faker.FakeDate
Finance faker.FakeFinance
Hacker faker.FakeHacker
Internet faker.FakeInternet
Lorem faker.FakeLorem
Name faker.FakeName
Number faker.FakeNumber
PhoneNumber faker.FakePhoneNumber
Team faker.FakeTeam
Time faker.FakeTime
}
// NewFaker creates a Faker intance using the original library implementation
func NewFaker() *Faker {
return &Faker{
Address: faker.Address(),
App: faker.App(),
Avatar: faker.Avatar(),
Bitcoin: faker.Bitcoin(),
Business: faker.Business(),
Code: faker.Code(),
Commerce: faker.Commerce(),
Company: faker.Company(),
Date: faker.Date(),
Finance: faker.Finance(),
Hacker: faker.Hacker(),
Internet: faker.Internet(),
Lorem: faker.Lorem(),
Name: faker.Name(),
Number: faker.Number(),
PhoneNumber: faker.PhoneNumber(),
Team: faker.Team(),
Time: faker.Time(),
}
}