forked from brianvoe/gofakeit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
celebrity_test.go
66 lines (50 loc) · 1005 Bytes
/
celebrity_test.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package gofakeit
import (
"fmt"
"testing"
)
func ExampleCelebrityActor() {
Seed(11)
fmt.Println(CelebrityActor())
// Output: Shah Rukh Khan
}
func ExampleFaker_CelebrityActor() {
f := New(11)
fmt.Println(f.CelebrityActor())
// Output: Shah Rukh Khan
}
func BenchmarkCelebrityActor(b *testing.B) {
for i := 0; i < b.N; i++ {
CelebrityActor()
}
}
func ExampleCelebrityBusiness() {
Seed(11)
fmt.Println(CelebrityBusiness())
// Output: Prescott Bush
}
func ExampleFaker_CelebrityBusiness() {
f := New(11)
fmt.Println(f.CelebrityBusiness())
// Output: Prescott Bush
}
func BenchmarkCelebrityBusiness(b *testing.B) {
for i := 0; i < b.N; i++ {
CelebrityBusiness()
}
}
func ExampleCelebritySport() {
Seed(11)
fmt.Println(CelebritySport())
// Output: Grete Waitz
}
func ExampleFaker_CelebritySport() {
f := New(11)
fmt.Println(f.CelebritySport())
// Output: Grete Waitz
}
func BenchmarkCelebritySport(b *testing.B) {
for i := 0; i < b.N; i++ {
CelebritySport()
}
}