Skip to content

Commit

Permalink
Add merge helper
Browse files Browse the repository at this point in the history
  • Loading branch information
iknite committed Dec 18, 2018
1 parent 2a74d9f commit 52ed874
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/e2e/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ const (
APIKey = "my-key"
)

// merge function is a helper function that execute all the variadic parameters
// inside a score.TestF function
func merge(list ...scope.TestF) scope.TestF {
return func(t *testing.T) {
for _, elem := range list {
elem()
}
}
}

func init() {
apiKey = APIKey
cacheSize = 50000
Expand Down

0 comments on commit 52ed874

Please sign in to comment.