aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helper/http.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-19 05:20:25 +0800
committerobscuren <geffobscura@gmail.com>2014-10-19 05:20:25 +0800
commit3bc64b6b6edf380aaa145e612988a4aa640e0d23 (patch)
treed495f81a7e7b27334ef35ddaeff7ce3757e403c0 /tests/helper/http.go
parent73c1c2c4af17115b1b1d39d947d5d9cc4d8b07fb (diff)
downloaddexon-3bc64b6b6edf380aaa145e612988a4aa640e0d23.tar
dexon-3bc64b6b6edf380aaa145e612988a4aa640e0d23.tar.gz
dexon-3bc64b6b6edf380aaa145e612988a4aa640e0d23.tar.bz2
dexon-3bc64b6b6edf380aaa145e612988a4aa640e0d23.tar.lz
dexon-3bc64b6b6edf380aaa145e612988a4aa640e0d23.tar.xz
dexon-3bc64b6b6edf380aaa145e612988a4aa640e0d23.tar.zst
dexon-3bc64b6b6edf380aaa145e612988a4aa640e0d23.zip
Readers
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)
- }
-}