diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2021-09-06 21:06:02 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2021-09-06 21:06:02 -0500 |
| commit | e4c3de10306fd7eee993f8b5e954337575709e89 (patch) | |
| tree | ba2277b505db5f1aacd011d4dd4614370ac38110 /testcase.go | |
| parent | c0288be34b6db18accf7e585c679764cf36f80c3 (diff) | |
Add --extra flag to print addtional configuration info
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 |
