aboutsummaryrefslogtreecommitdiff
path: root/testcase.go
diff options
context:
space:
mode:
authorFlu0r1ne <flur01ne@flu0r1ne.net>2021-08-13 16:31:04 -0500
committerFlu0r1ne <flur01ne@flu0r1ne.net>2021-08-13 16:31:04 -0500
commit3337257fe24b67871406217e98862d34647dd725 (patch)
tree6bee1bf6bf16d75df0481a254e7abe3bf39d5ab5 /testcase.go
parent4f6854fa9cbbafe78ea3fe0373f63db93297a39b (diff)
downloadplanr-3337257fe24b67871406217e98862d34647dd725.tar.xz
planr-3337257fe24b67871406217e98862d34647dd725.zip
Add colorized output and build traces
Diffstat (limited to 'testcase.go')
-rw-r--r--testcase.go15
1 files changed, 13 insertions, 2 deletions
diff --git a/testcase.go b/testcase.go
index 989838c..d3fe8ed 100644
--- a/testcase.go
+++ b/testcase.go
@@ -1,8 +1,18 @@
package planr
+type TestStatus uint
+
+const (
+ PASSING TestStatus = iota
+ COMPILATION_FAILURE
+ RUNTIME_FAILURE
+)
+
type TestResult struct {
- Id string
- Pass bool
+ Id string
+ Status TestStatus
+ FailureMsg string
+ DebugOutput string
}
type TestCase struct {
@@ -18,6 +28,7 @@ type TestCase struct {
Config TestCaseConfig
Result *TestResult
+
}
func (tc TestCase) AdapterConfig() InheritableConfig {