From f90a14d5d723c5d2b87f2eaa19f441dec33bb9b2 Mon Sep 17 00:00:00 2001 From: Flu0r1ne Date: Wed, 4 Aug 2021 14:32:22 -0500 Subject: Prototyped build pipeline --- testcase.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'testcase.go') 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] +} -- cgit v1.2.3