-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbeer_test.go
More file actions
102 lines (85 loc) · 1.4 KB
/
beer_test.go
File metadata and controls
102 lines (85 loc) · 1.4 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
package gofaker
import (
"fmt"
"testing"
)
func ExampleBeerName() {
Seed(11)
fmt.Println(BeerName())
// Output: Duvel
}
func BenchmarkBeerName(b *testing.B) {
for i := 0; i < b.N; i++ {
BeerName()
}
}
func ExampleBeerStyle() {
Seed(11)
fmt.Println(BeerStyle())
// Output: European Amber Lager
}
func BenchmarkBeerStyle(b *testing.B) {
for i := 0; i < b.N; i++ {
BeerStyle()
}
}
func ExampleBeerHop() {
Seed(11)
fmt.Println(BeerHop())
// Output: Glacier
}
func BenchmarkBeerHop(b *testing.B) {
for i := 0; i < b.N; i++ {
BeerHop()
}
}
func ExampleBeerYeast() {
Seed(11)
fmt.Println(BeerYeast())
// Output: 1388 - Belgian Strong Ale
}
func BenchmarkBeerYeast(b *testing.B) {
for i := 0; i < b.N; i++ {
BeerYeast()
}
}
func ExampleBeerMalt() {
Seed(11)
fmt.Println(BeerMalt())
// Output: Munich
}
func BenchmarkBeerMalt(b *testing.B) {
for i := 0; i < b.N; i++ {
BeerMalt()
}
}
func ExampleBeerIbu() {
Seed(11)
fmt.Println(BeerIbu())
// Output: 29 IBU
}
func BenchmarkBeerIbu(b *testing.B) {
for i := 0; i < b.N; i++ {
BeerIbu()
}
}
func ExampleBeerAlcohol() {
Seed(11)
fmt.Println(BeerAlcohol())
// Output: 2.7%
}
func BenchmarkBeerAlcohol(b *testing.B) {
for i := 0; i < b.N; i++ {
BeerAlcohol()
}
}
func ExampleBeerBlg() {
Seed(11)
fmt.Println(BeerBlg())
// Output: 6.4°Blg
}
func BenchmarkBeerBlg(b *testing.B) {
for i := 0; i < b.N; i++ {
BeerBlg()
}
}