diff options
author | Felix Lange <fjl@twurst.com> | 2017-01-11 02:33:17 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-01-11 05:33:24 +0800 |
commit | d78f9b834ade0f1ebcf2532bf90d01c85ad50a8e (patch) | |
tree | dd03906433e1032a0b185910773206246d8a1556 /vendor/gopkg.in/check.v1 | |
parent | 02b67558e8eaa7b34a28b8dd0223824bbbb52349 (diff) | |
download | go-tangerine-d78f9b834ade0f1ebcf2532bf90d01c85ad50a8e.tar go-tangerine-d78f9b834ade0f1ebcf2532bf90d01c85ad50a8e.tar.gz go-tangerine-d78f9b834ade0f1ebcf2532bf90d01c85ad50a8e.tar.bz2 go-tangerine-d78f9b834ade0f1ebcf2532bf90d01c85ad50a8e.tar.lz go-tangerine-d78f9b834ade0f1ebcf2532bf90d01c85ad50a8e.tar.xz go-tangerine-d78f9b834ade0f1ebcf2532bf90d01c85ad50a8e.tar.zst go-tangerine-d78f9b834ade0f1ebcf2532bf90d01c85ad50a8e.zip |
vendor: update all dependencies except Azure SDK
The Azure SDK doesn't support Go 1.5 anymore. We can't upgrade it until
Go 1.8 comes out.
Diffstat (limited to 'vendor/gopkg.in/check.v1')
-rw-r--r-- | vendor/gopkg.in/check.v1/.travis.yml | 3 | ||||
-rw-r--r-- | vendor/gopkg.in/check.v1/check.go | 24 | ||||
-rw-r--r-- | vendor/gopkg.in/check.v1/checkers.go | 2 |
3 files changed, 16 insertions, 13 deletions
diff --git a/vendor/gopkg.in/check.v1/.travis.yml b/vendor/gopkg.in/check.v1/.travis.yml new file mode 100644 index 000000000..ead6735fc --- /dev/null +++ b/vendor/gopkg.in/check.v1/.travis.yml @@ -0,0 +1,3 @@ +language: go + +go_import_path: gopkg.in/check.v1 diff --git a/vendor/gopkg.in/check.v1/check.go b/vendor/gopkg.in/check.v1/check.go index 82c26fa73..137a2749a 100644 --- a/vendor/gopkg.in/check.v1/check.go +++ b/vendor/gopkg.in/check.v1/check.go @@ -156,7 +156,7 @@ func (td *tempDir) newPath() string { } } result := filepath.Join(td.path, strconv.Itoa(td.counter)) - td.counter += 1 + td.counter++ return result } @@ -274,7 +274,7 @@ func (c *C) logString(issue string) { func (c *C) logCaller(skip int) { // This is a bit heavier than it ought to be. - skip += 1 // Our own frame. + skip++ // Our own frame. pc, callerFile, callerLine, ok := runtime.Caller(skip) if !ok { return @@ -284,7 +284,7 @@ func (c *C) logCaller(skip int) { testFunc := runtime.FuncForPC(c.method.PC()) if runtime.FuncForPC(pc) != testFunc { for { - skip += 1 + skip++ if pc, file, line, ok := runtime.Caller(skip); ok { // Note that the test line may be different on // distinct calls for the same test. Showing @@ -460,10 +460,10 @@ func (tracker *resultTracker) _loopRoutine() { // Calls still running. Can't stop. select { // XXX Reindent this (not now to make diff clear) - case c = <-tracker._expectChan: - tracker._waiting += 1 + case <-tracker._expectChan: + tracker._waiting++ case c = <-tracker._doneChan: - tracker._waiting -= 1 + tracker._waiting-- switch c.status() { case succeededSt: if c.kind == testKd { @@ -498,9 +498,9 @@ func (tracker *resultTracker) _loopRoutine() { select { case tracker._stopChan <- true: return - case c = <-tracker._expectChan: - tracker._waiting += 1 - case c = <-tracker._doneChan: + case <-tracker._expectChan: + tracker._waiting++ + case <-tracker._doneChan: panic("Tracker got an unexpected done call.") } } @@ -568,13 +568,13 @@ func newSuiteRunner(suite interface{}, runConf *RunConf) *suiteRunner { var filterRegexp *regexp.Regexp if conf.Filter != "" { - if regexp, err := regexp.Compile(conf.Filter); err != nil { + regexp, err := regexp.Compile(conf.Filter) + if err != nil { msg := "Bad filter expression: " + err.Error() runner.tracker.result.RunError = errors.New(msg) return runner - } else { - filterRegexp = regexp } + filterRegexp = regexp } for i := 0; i != suiteNumMethods; i++ { diff --git a/vendor/gopkg.in/check.v1/checkers.go b/vendor/gopkg.in/check.v1/checkers.go index bac338729..374954587 100644 --- a/vendor/gopkg.in/check.v1/checkers.go +++ b/vendor/gopkg.in/check.v1/checkers.go @@ -212,7 +212,7 @@ type hasLenChecker struct { // The HasLen checker verifies that the obtained value has the // provided length. In many cases this is superior to using Equals -// in conjuction with the len function because in case the check +// in conjunction with the len function because in case the check // fails the value itself will be printed, instead of its length, // providing more details for figuring the problem. // |