aboutsummaryrefslogtreecommitdiff
path: root/testcase.go
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-08-13 16:31:04 -0500
committerFurkan Sahin <furkan-dev@proton.me>2021-08-13 16:31:04 -0500
commite7b90c3ab789bde88a4102a17306215fd38dc9d8 (patch)
tree820efaf750ba3b059665ab7f5c49cac37549dbbb /testcase.go
parent0a2de7cf23dfb7f5d928795bba4d7ea4a073f0f5 (diff)
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 {