From cbc5fbdf941cd40dc6a9546fb924689f5d6978c7 Mon Sep 17 00:00:00 2001 From: Flu0r1ne Date: Thu, 5 Aug 2021 18:41:53 -0500 Subject: Improvised a basic text report, finished evaluation mappings --- testcase.go | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'testcase.go') 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] } -- cgit v1.2.3