aboutsummaryrefslogtreecommitdiff
path: root/testcase.go
diff options
context:
space:
mode:
authorFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-06 21:06:02 -0500
committerFlu0r1ne <flur01ne@flu0r1ne.net>2021-09-06 21:06:02 -0500
commitcc9e3965a365a9b98fd4c454017dfa8e40860fb1 (patch)
tree6588c40c71d39a5bcc4233afb1416f92e953558b /testcase.go
parent82dcbb2a65a6a073a1809fcd202b540885df02d2 (diff)
downloadplanr-cc9e3965a365a9b98fd4c454017dfa8e40860fb1.tar.xz
planr-cc9e3965a365a9b98fd4c454017dfa8e40860fb1.zip
Add --extra flag to print addtional configuration info
Diffstat (limited to 'testcase.go')
-rw-r--r--testcase.go7
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