aboutsummaryrefslogtreecommitdiff
path: root/testcase.go
diff options
context:
space:
mode:
authorFlu0r1ne <flur01ne@flu0r1ne.net>2021-08-05 18:41:53 -0500
committerFlu0r1ne <flur01ne@flu0r1ne.net>2021-08-05 18:41:53 -0500
commitcbc5fbdf941cd40dc6a9546fb924689f5d6978c7 (patch)
tree734bfa515ddeab208c35c50624cfd9f1124ce6cf /testcase.go
parent05ce22f9d2308bca51b48fb60558d17f2e381227 (diff)
downloadplanr-cbc5fbdf941cd40dc6a9546fb924689f5d6978c7.tar.xz
planr-cbc5fbdf941cd40dc6a9546fb924689f5d6978c7.zip
Improvised a basic text report, finished evaluation mappings
Diffstat (limited to 'testcase.go')
-rw-r--r--testcase.go16
1 files changed, 5 insertions, 11 deletions
diff --git a/testcase.go b/testcase.go
index 70c188e..989838c 100644
--- a/testcase.go
+++ b/testcase.go
@@ -1,6 +1,7 @@
package planr
type TestResult struct {
+ Id string
Pass bool
}
@@ -13,19 +14,12 @@ type TestCase struct {
// configuration with dots. The `toml` extension is also stripped.
// rubric/alpha/beta/tc1.toml -> alpha.beta.tc1
Cname string
+
Config TestCaseConfig
-}
-
-func (tc TestCase) ContainsAdapter(name string) bool {
- for adapter := range tc.Config.adapters_ {
- if adapter == name {
- return true;
- }
- }
- return false;
+ Result *TestResult
}
-func (tc TestCase) AdapterConfig(name string) InheritableConfig {
- return tc.Config.adapters_[name]
+func (tc TestCase) AdapterConfig() InheritableConfig {
+ return tc.Config.adapters_[*tc.Config.Adapter]
}