aboutsummaryrefslogtreecommitdiff
path: root/testcase.go
diff options
context:
space:
mode:
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]
}