forked from brianvoe/gofakeit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
faker_test.go
42 lines (39 loc) · 1.16 KB
/
faker_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
package gofakeit
import (
"fmt"
"testing"
)
func Example() {
Seed(11)
fmt.Println("Name:", Name())
fmt.Println("Email:", Email())
fmt.Println("Phone:", Phone())
fmt.Println("Address:", Address().Address)
fmt.Println("BS:", BS())
fmt.Println("Beer Name:", BeerName())
fmt.Println("Color:", Color())
fmt.Println("Company:", Company())
fmt.Println("Credit Card:", CreditCardNumber(nil))
fmt.Println("Hacker Phrase:", HackerPhrase())
fmt.Println("Job Title:", JobTitle())
fmt.Println("Password:", Password(true, true, true, true, false, 32))
currency := Currency()
fmt.Printf("Currency: %s - %s", currency.Short, currency.Long)
// Output:
// Name: Markus Moen
// Email: [email protected]
// Phone: 9948995369
// Address: 35300 South Roads haven, Hilllville, Montana 30232
// BS: e-enable
// Beer Name: Weihenstephaner Hefeweissbier
// Color: MidnightBlue
// Company: Epsilon
// Credit Card: 6375991714800889
// Hacker Phrase: You can't quantify the application without navigating the bluetooth SMS microchip!
// Job Title: Architect
// Password: SHylpDU2nf9(,U*RaJKM1cOL47VY.BQw
// Currency: KES - Kenya Shilling
}
func TestSeed(t *testing.T) {
Seed(0)
}