From cc9e3965a365a9b98fd4c454017dfa8e40860fb1 Mon Sep 17 00:00:00 2001 From: Flu0r1ne Date: Mon, 6 Sep 2021 21:06:02 -0500 Subject: Add --extra flag to print addtional configuration info --- testcase.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'testcase.go') 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 -- cgit v1.2.3