Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from paultyng/parallel
Browse files Browse the repository at this point in the history
Add support for Parallel
  • Loading branch information
mitchellh committed Apr 23, 2020
2 parents 1fe897f + e314fd3 commit 93f0c65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions testing.go
Expand Up @@ -22,6 +22,7 @@ type T interface {
Log(args ...interface{})
Logf(format string, args ...interface{})
Name() string
Parallel()
Skip(args ...interface{})
SkipNow()
Skipf(format string, args ...interface{})
Expand All @@ -35,6 +36,8 @@ type T interface {
//
// Cleanup does NOT work, so if you're using a helper that uses Cleanup,
// there may be dangling resources.
//
// Parallel does not do anything.
type RuntimeT struct {
skipped bool
failed bool
Expand Down Expand Up @@ -84,6 +87,8 @@ func (t *RuntimeT) Name() string {
return ""
}

func (t *RuntimeT) Parallel() {}

func (t *RuntimeT) Skip(args ...interface{}) {
log.Print(args...)
t.SkipNow()
Expand Down

0 comments on commit 93f0c65

Please sign in to comment.