diff options
Diffstat (limited to 'testcase.go')
-rw-r--r-- | testcase.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testcase.go b/testcase.go index 02db738..70c188e 100644 --- a/testcase.go +++ b/testcase.go @@ -5,7 +5,13 @@ type TestResult struct { } type TestCase struct { + // absolute path to the test case configuration Path string + // The canonical name is a semantically meaningful name + // guaranteed to be unique among the tests + // Obtained by replacing separators in the relative path of the + // configuration with dots. The `toml` extension is also stripped. + // rubric/alpha/beta/tc1.toml -> alpha.beta.tc1 Cname string Config TestCaseConfig } @@ -19,3 +25,7 @@ func (tc TestCase) ContainsAdapter(name string) bool { return false; } + +func (tc TestCase) AdapterConfig(name string) InheritableConfig { + return tc.Config.adapters_[name] +} |