aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helper/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/helper/http.go')
-rw-r--r--tests/helper/http.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/helper/http.go b/tests/helper/http.go
deleted file mode 100644
index 3c570d106..000000000
--- a/tests/helper/http.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package helper
-
-import (
- "encoding/json"
- "io/ioutil"
- "net/http"
- "testing"
-)
-
-func CreateTests(t *testing.T, uri string, value interface{}) {
- resp, err := http.Get(uri)
- if err != nil {
- t.Error(err)
-
- return
- }
- defer resp.Body.Close()
-
- data, err := ioutil.ReadAll(resp.Body)
-
- err = json.Unmarshal(data, &value)
- if err != nil {
- t.Error(err)
- }
-}