Skip to content

Commit 2c610bc

Browse files
committed
tests - updated test to reflect job and person data changes
1 parent 86f0b76 commit 2c610bc

16 files changed

+149
-149
lines changed

auth_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ func ExampleUsername() {
99
Seed(11)
1010
fmt.Println(Username())
1111

12-
// Output: Julius812
12+
// Output: Gregg812
1313
}
1414

1515
func ExampleFaker_Username() {
1616
f := New(11)
1717
fmt.Println(f.Username())
1818

19-
// Output: Julius812
19+
// Output: Gregg812
2020
}
2121

2222
func BenchmarkUsername(b *testing.B) {

company_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ func ExampleJob() {
119119
fmt.Println(jobInfo.Level)
120120

121121
// Output: TransparaGov
122-
// Specialist
123-
// Direct
122+
// Teacher
123+
// Deputy
124124
// Configuration
125125
}
126126

@@ -133,8 +133,8 @@ func ExampleFaker_Job() {
133133
fmt.Println(jobInfo.Level)
134134

135135
// Output: TransparaGov
136-
// Specialist
137-
// Direct
136+
// Teacher
137+
// Deputy
138138
// Configuration
139139
}
140140

@@ -148,14 +148,14 @@ func ExampleJobTitle() {
148148
Seed(11)
149149
fmt.Println(JobTitle())
150150

151-
// Output: Strategist
151+
// Output: Traffic Controller
152152
}
153153

154154
func ExampleFaker_JobTitle() {
155155
f := New(11)
156156
fmt.Println(f.JobTitle())
157157

158-
// Output: Strategist
158+
// Output: Traffic Controller
159159
}
160160

161161
func BenchmarkJobTitle(b *testing.B) {
@@ -168,14 +168,14 @@ func ExampleJobDescriptor() {
168168
Seed(11)
169169
fmt.Println(JobDescriptor())
170170

171-
// Output: Product
171+
// Output: Strategic
172172
}
173173

174174
func ExampleFaker_JobDescriptor() {
175175
f := New(11)
176176
fmt.Println(f.JobDescriptor())
177177

178-
// Output: Product
178+
// Output: Strategic
179179
}
180180

181181
func BenchmarkJobDescriptor(b *testing.B) {

csv_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ func ExampleCSV_array() {
2525
fmt.Println(string(value))
2626

2727
// Output: id,first_name,last_name,password
28-
// 1,Sonny,Stiedemann,3lGftNp9S908
29-
// 2,Verda,Brakus,Lc3G00tpPp7U
30-
// 3,Jules,Cremin,LGAvzZ5xUB6Z
28+
// 1,Priscilla,Thornton,3lGftNp9S908
29+
// 2,Shaun,Byrd,Lc3G00tpPp7U
30+
// 3,Grady,Craig,LGAvzZ5xUB6Z
3131
}
3232

3333
func ExampleFaker_CSV_array() {
@@ -49,9 +49,9 @@ func ExampleFaker_CSV_array() {
4949
fmt.Println(string(value))
5050

5151
// Output: id,first_name,last_name,password
52-
// 1,Sonny,Stiedemann,3lGftNp9S908
53-
// 2,Verda,Brakus,Lc3G00tpPp7U
54-
// 3,Jules,Cremin,LGAvzZ5xUB6Z
52+
// 1,Priscilla,Thornton,3lGftNp9S908
53+
// 2,Shaun,Byrd,Lc3G00tpPp7U
54+
// 3,Grady,Craig,LGAvzZ5xUB6Z
5555
}
5656

5757
func TestCSVLookup(t *testing.T) {

fakeable_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ func ExampleFakeable() {
7575
fmt.Printf("%#v\n", t3)
7676
fmt.Printf("%#v\n", t4)
7777

78-
// Output: gofakeit.testStruct1{B:"Colton"}
79-
// gofakeit.testStruct1{B:"Colton"}
80-
// gofakeit.testStruct2{B:"Colton"}
81-
// gofakeit.testStruct2{B:"Colton"}
78+
// Output: gofakeit.testStruct1{B:"Bryce"}
79+
// gofakeit.testStruct1{B:"Bryce"}
80+
// gofakeit.testStruct2{B:"Bryce"}
81+
// gofakeit.testStruct2{B:"Bryce"}
8282
}
8383

8484
type gammaFloat64 float64
@@ -158,7 +158,7 @@ func ExampleFakeable_employee() {
158158
fmt.Printf("%#v\n", A2)
159159
fmt.Printf("%#v\n", A3)
160160

161-
// Output: gofakeit.employee{Name:"Madelynn Hickle", CallCountPerHour:17}
162-
// gofakeit.employee{Name:"Brooke Berge", CallCountPerHour:8}
163-
// gofakeit.employee{Name:"Rosalee Roberts", CallCountPerHour:10}
161+
// Output: gofakeit.employee{Name:"Julio Hicks", CallCountPerHour:17}
162+
// gofakeit.employee{Name:"Autumn Berge", CallCountPerHour:8}
163+
// gofakeit.employee{Name:"Mohammed Rutherford", CallCountPerHour:10}
164164
}

faker_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ func Example() {
2323
fmt.Println("Job Title:", JobTitle())
2424
fmt.Println("Password:", Password(true, true, true, true, false, 32))
2525

26-
// Output: Name: Sonny Stiedemann
27-
// Email: codydonnelly@leannon.biz
26+
// Output: Name: Priscilla Thornton
27+
// Email: brookeduncan@maxwell.biz
2828
// Phone: 7598907999
2929
// Address: 4737 Port Hillstown, Santa Ana, Alabama 41026
3030
// BS: interactive
@@ -33,7 +33,7 @@ func Example() {
3333
// Company: Municode
3434
// Credit Card: 6449062052570938760
3535
// Hacker Phrase: I'll override the back-end USB system, that should encrypt the SCSI port!
36-
// Job Title: Engineer
36+
// Job Title: Journalist
3737
// Password: 4i86u.-1.NM4DtZ5M@!@-.Cz4vY*wTqs
3838
}
3939

@@ -47,8 +47,8 @@ func ExampleNew() {
4747
fmt.Println("Phone:", fake.Phone())
4848

4949
// Output:
50-
// Name: Sonny Stiedemann
51-
// Email: codydonnelly@leannon.biz
50+
// Name: Priscilla Thornton
51+
// Email: brookeduncan@maxwell.biz
5252
// Phone: 7598907999
5353
}
5454

@@ -66,7 +66,7 @@ func ExampleNewFaker() {
6666
fmt.Println("Name:", fake.Name())
6767

6868
// Output:
69-
// Name: Damian Pagac
69+
// Name: Carey Ramirez
7070
}
7171

7272
func TestSeed(t *testing.T) {

generate_test.go

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func ExampleGenerate() {
6767
genStr, _ = Generate("{shufflestrings:[key:value,int:string,1:2,a:b]}")
6868
fmt.Println(genStr)
6969

70-
// Output: Mollie Legros vanceschroeder@turner.com 8K8b1M
70+
// Output: Laurel McClure sethsoto@wallace.com 8K8b1M
7171
// Automate problem recovery victoriously.
7272
// [2 3 1]
7373
// 2
@@ -94,7 +94,7 @@ func ExampleFaker_Generate() {
9494
genStr, _ = f.Generate("{shufflestrings:[key:value,int:string,1:2,a:b]}")
9595
fmt.Println(genStr)
9696

97-
// Output: Mollie Legros vanceschroeder@turner.com 8K8b1M
97+
// Output: Laurel McClure sethsoto@wallace.com 8K8b1M
9898
// Automate problem recovery victoriously.
9999
// [2 3 1]
100100
// 2
@@ -245,10 +245,10 @@ func ExampleFixedWidth() {
245245

246246
fmt.Println(string(value))
247247

248-
// Output: Name Email Password Age
249-
// Sonny Stiedemann mollielegros@wilderman.org L43ypoSV1tDf 62
250-
// Cody Donnelly stevebins@robel.io rSM78E2ncUt3 9
251-
// Julius Farrell tomasaullrich@hane.name DUB69zQ1WZx8 77
248+
// Output: Name Email Password Age
249+
// Priscilla Thornton laurelmcclure@wiley.org L43ypoSV1tDf 62
250+
// Brooke Duncan ramonblack@rutherford.io rSM78E2ncUt3 9
251+
// Gregg Ford roxannewalsh@hamilton.name DUB69zQ1WZx8 77
252252
}
253253

254254
func ExampleFixedWidth_default() {
@@ -261,16 +261,16 @@ func ExampleFixedWidth_default() {
261261

262262
fmt.Println(string(value))
263263

264-
// Output: Name Email Password
265-
// Russ Donnelly missourigrimes@rohan.io 1T2elqD45w8N
266-
// Cole Leannon evanadams@marquardt.com V444uNv59i04
267-
// Darien Rempel thorajerde@cormier.com eiZz6ipistlz
268-
// Kaitlyn Wilderman constancenienow@smitham.io 623DddowdELF
269-
// Rahul Turner irvingbins@lemke.io 3Ydc69Z00Mcj
270-
// April Robel beaulahmayert@kautzer.net 31mk7arUdpNi
271-
// Tomasa Waters lelandwaelchi@beahan.net t9fPK4m8497T
272-
// Sunny Hane dawnbaumbach@mcdermott.biz x4KU3IhQ6im7
273-
// Hilma Jast lavernerobel@bailey.io 5aHeXXT8vjF5
264+
// Output: Name Email Password
265+
// Nannie Duncan lancegraves@sandoval.io 1T2elqD45w8N
266+
// Brooklyn Maxwell danykaadams@morgan.com V444uNv59i04
267+
// Carmen Romero robinjenkins@cormier.com eiZz6ipistlz
268+
// Hailie Wiley buddypearson@summers.io 623DddowdELF
269+
// Marion Wallace emmettblack@mcdermott.io 3Ydc69Z00Mcj
270+
// Amalia Rutherford aprilmuller@joseph.net 31mk7arUdpNi
271+
// Roxane Webb jaywashington@barton.net t9fPK4m8497T
272+
// Randy Hamilton caseybartell@myers.biz x4KU3IhQ6im7
273+
// Elliott Jacobson janierussell@bailey.io 5aHeXXT8vjF5
274274
}
275275

276276
func ExampleFixedWidth_noHeader() {
@@ -291,9 +291,9 @@ func ExampleFixedWidth_noHeader() {
291291

292292
fmt.Println(value)
293293

294-
// Output: Sonny Stiedemann mollielegros@wilderman.org L43ypoSV1tDf 62
295-
// Cody Donnelly stevebins@robel.io rSM78E2ncUt3 9
296-
// Julius Farrell tomasaullrich@hane.name DUB69zQ1WZx8 77
294+
// Output: Priscilla Thornton laurelmcclure@wiley.org L43ypoSV1tDf 62
295+
// Brooke Duncan ramonblack@rutherford.io rSM78E2ncUt3 9
296+
// Gregg Ford roxannewalsh@hamilton.name DUB69zQ1WZx8 77
297297
}
298298

299299
func ExampleFaker_FixedWidth() {
@@ -314,10 +314,10 @@ func ExampleFaker_FixedWidth() {
314314

315315
fmt.Println(string(value))
316316

317-
// Output: Name Email Password Age
318-
// Sonny Stiedemann mollielegros@wilderman.org L43ypoSV1tDf 62
319-
// Cody Donnelly stevebins@robel.io rSM78E2ncUt3 9
320-
// Julius Farrell tomasaullrich@hane.name DUB69zQ1WZx8 77
317+
// Output: Name Email Password Age
318+
// Priscilla Thornton laurelmcclure@wiley.org L43ypoSV1tDf 62
319+
// Brooke Duncan ramonblack@rutherford.io rSM78E2ncUt3 9
320+
// Gregg Ford roxannewalsh@hamilton.name DUB69zQ1WZx8 77
321321
}
322322

323323
func TestFixedWidthLookup(t *testing.T) {

internet_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ func ExampleDomainName() {
1010
Seed(11)
1111
fmt.Println(DomainName())
1212

13-
// Output: productinfrastructures.biz
13+
// Output: strategicinfrastructures.biz
1414
}
1515

1616
func ExampleFaker_DomainName() {
1717
f := New(11)
1818
fmt.Println(f.DomainName())
1919

20-
// Output: productinfrastructures.biz
20+
// Output: strategicinfrastructures.biz
2121
}
2222

2323
func BenchmarkDomainName(b *testing.B) {
@@ -50,14 +50,14 @@ func ExampleURL() {
5050
Seed(11)
5151
fmt.Println(URL())
5252

53-
// Output: http://www.directinnovative.biz/infrastructures
53+
// Output: http://www.deputyinnovative.biz/infrastructures
5454
}
5555

5656
func ExampleFaker_URL() {
5757
f := New(11)
5858
fmt.Println(f.URL())
5959

60-
// Output: http://www.directinnovative.biz/infrastructures
60+
// Output: http://www.deputyinnovative.biz/infrastructures
6161
}
6262

6363
func ExampleUrlSlug() {

json_test.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ func ExampleJSON_object() {
2626
fmt.Println(string(value))
2727

2828
// Output: {
29-
// "first_name": "Sonny",
30-
// "last_name": "Stiedemann",
29+
// "first_name": "Priscilla",
30+
// "last_name": "Thornton",
3131
// "address": {
3232
// "address": "52759 Stationside, San Diego, Oregon 99344",
3333
// "street": "52759 Stationside",
@@ -63,8 +63,8 @@ func ExampleFaker_JSON_object() {
6363
fmt.Println(string(value))
6464

6565
// Output: {
66-
// "first_name": "Sonny",
67-
// "last_name": "Stiedemann",
66+
// "first_name": "Priscilla",
67+
// "last_name": "Thornton",
6868
// "address": {
6969
// "address": "52759 Stationside, San Diego, Oregon 99344",
7070
// "street": "52759 Stationside",
@@ -103,20 +103,20 @@ func ExampleJSON_array() {
103103
// Output: [
104104
// {
105105
// "id": 1,
106-
// "first_name": "Sonny",
107-
// "last_name": "Stiedemann",
106+
// "first_name": "Priscilla",
107+
// "last_name": "Thornton",
108108
// "password": "3lGftNp9S908"
109109
// },
110110
// {
111111
// "id": 2,
112-
// "first_name": "Verda",
113-
// "last_name": "Brakus",
112+
// "first_name": "Shaun",
113+
// "last_name": "Byrd",
114114
// "password": "Lc3G00tpPp7U"
115115
// },
116116
// {
117117
// "id": 3,
118-
// "first_name": "Jules",
119-
// "last_name": "Cremin",
118+
// "first_name": "Grady",
119+
// "last_name": "Craig",
120120
// "password": "LGAvzZ5xUB6Z"
121121
// }
122122
// ]
@@ -145,20 +145,20 @@ func ExampleFaker_JSON_array() {
145145
// Output: [
146146
// {
147147
// "id": 1,
148-
// "first_name": "Sonny",
149-
// "last_name": "Stiedemann",
148+
// "first_name": "Priscilla",
149+
// "last_name": "Thornton",
150150
// "password": "3lGftNp9S908"
151151
// },
152152
// {
153153
// "id": 2,
154-
// "first_name": "Verda",
155-
// "last_name": "Brakus",
154+
// "first_name": "Shaun",
155+
// "last_name": "Byrd",
156156
// "password": "Lc3G00tpPp7U"
157157
// },
158158
// {
159159
// "id": 3,
160-
// "first_name": "Jules",
161-
// "last_name": "Cremin",
160+
// "first_name": "Grady",
161+
// "last_name": "Craig",
162162
// "password": "LGAvzZ5xUB6Z"
163163
// }
164164
// ]

0 commit comments

Comments
 (0)