From 52ed874a3eff3783cf721de7656081cf040aff53 Mon Sep 17 00:00:00 2001 From: iknite Date: Wed, 12 Dec 2018 09:23:46 +0100 Subject: [PATCH] Add merge helper --- tests/e2e/setup.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/e2e/setup.go b/tests/e2e/setup.go index 74ae4b303..68f18eccd 100644 --- a/tests/e2e/setup.go +++ b/tests/e2e/setup.go @@ -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