aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/smartystreets/goconvey/web/server/parser/parser.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2019-10-23 23:03:17 -0700
committerGitHub <noreply@github.com>2019-10-23 23:03:17 -0700
commit613139e7bef81d3573e7988a47eb6765f3de347a (patch)
tree49de7277898d3ff47a122c072568edb8ed4c9ac9 /vendor/github.com/smartystreets/goconvey/web/server/parser/parser.go
parentfb100dbf98f02e4c631d142ff0f52ec29ee2f00c (diff)
Enable Go modules (#5835)
* Remove vendor * Enable Go modules * ci: add command to fetch dependencies * ci: update setting * ci: update settings * Require Go 1.11 * Rename module name to gogs.io/gogs
Diffstat (limited to 'vendor/github.com/smartystreets/goconvey/web/server/parser/parser.go')
-rw-r--r--vendor/github.com/smartystreets/goconvey/web/server/parser/parser.go32
1 files changed, 0 insertions, 32 deletions
diff --git a/vendor/github.com/smartystreets/goconvey/web/server/parser/parser.go b/vendor/github.com/smartystreets/goconvey/web/server/parser/parser.go
deleted file mode 100644
index f6250caf..00000000
--- a/vendor/github.com/smartystreets/goconvey/web/server/parser/parser.go
+++ /dev/null
@@ -1,32 +0,0 @@
-package parser
-
-import (
- "log"
-
- "github.com/smartystreets/goconvey/web/server/contract"
-)
-
-type Parser struct {
- parser func(*contract.PackageResult, string)
-}
-
-func (self *Parser) Parse(packages []*contract.Package) {
- for _, p := range packages {
- if p.Active() && p.HasUsableResult() {
- self.parser(p.Result, p.Output)
- } else if p.Ignored {
- p.Result.Outcome = contract.Ignored
- } else if p.Disabled {
- p.Result.Outcome = contract.Disabled
- } else {
- p.Result.Outcome = contract.TestRunAbortedUnexpectedly
- }
- log.Printf("[%s]: %s\n", p.Result.Outcome, p.Name)
- }
-}
-
-func NewParser(helper func(*contract.PackageResult, string)) *Parser {
- self := new(Parser)
- self.parser = helper
- return self
-}