diff options
Diffstat (limited to 'testcase.go')
-rw-r--r-- | testcase.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/testcase.go b/testcase.go index d1db292..4273c88 100644 --- a/testcase.go +++ b/testcase.go @@ -24,12 +24,11 @@ type TestResult struct { // Program-wide testcase config type TestCaseConfig struct { Defaults - Title *string - Description *string + Title string } func (c TestCaseConfig) ensureSatisfied(name string) { - if (c.Adapter == nil) { + if (c.Adapter == "") { log.Fatalf("Adapter must be provided for testcase %s", name) } } @@ -51,7 +50,7 @@ type TestCase struct { } func (tc TestCase) AdapterConfig() InheritableConfig { - return tc.Config.adapters_[*tc.Config.Adapter] + return tc.Config.adapters_[tc.Config.Adapter] } type ByReadIdx []TestResult |