aboutsummaryrefslogtreecommitdiffstats
path: root/test_runner.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-22 08:02:24 +0800
committerobscuren <geffobscura@gmail.com>2014-03-22 08:02:24 +0800
commit1f2547b8a7cfe100f64428d20f4bcf95eb9ecc5c (patch)
treed8be2c7b97a86f2b9949c4b4dc14ab2c2a34dc2e /test_runner.go
parent22b4e9b6173437b28045d69e8fd0b468e526e559 (diff)
downloaddexon-1f2547b8a7cfe100f64428d20f4bcf95eb9ecc5c.tar.gz
dexon-1f2547b8a7cfe100f64428d20f4bcf95eb9ecc5c.tar.zst
dexon-1f2547b8a7cfe100f64428d20f4bcf95eb9ecc5c.zip
Major re-organisation.
The Ethereum node and Gui are now separated.
Diffstat (limited to 'test_runner.go')
-rw-r--r--test_runner.go35
1 files changed, 0 insertions, 35 deletions
diff --git a/test_runner.go b/test_runner.go
deleted file mode 100644
index e8a1698ce..000000000
--- a/test_runner.go
+++ /dev/null
@@ -1,35 +0,0 @@
-package main
-
-import (
- "encoding/json"
- "fmt"
- "testing"
-)
-
-type TestSource struct {
- Inputs map[string]string
- Expectation string
-}
-
-func NewTestSource(source string) *TestSource {
- s := &TestSource{}
- err := json.Unmarshal([]byte(source), s)
- if err != nil {
- fmt.Println(err)
- }
-
- return s
-}
-
-type TestRunner struct {
- source *TestSource
-}
-
-func NewTestRunner(t *testing.T) *TestRunner {
- return &TestRunner{}
-}
-
-func (runner *TestRunner) RunFromString(input string, Cb func(*TestSource)) {
- source := NewTestSource(input)
- Cb(source)
-}