Forráskód Böngészése

Remove some checkers to discourage usage

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 6 éve
szülő
commit
86f2ac4a6b
2 módosított fájl, 7 hozzáadás és 25 törlés
  1. 6 24
      integration-cli/checker/checker.go
  2. 1 1
      vendor.conf

+ 6 - 24
integration-cli/checker/checker.go

@@ -9,38 +9,20 @@ import (
 // As a commodity, we bring all check.Checker variables into the current namespace to avoid having
 // As a commodity, we bring all check.Checker variables into the current namespace to avoid having
 // to think about check.X versus checker.X.
 // to think about check.X versus checker.X.
 var (
 var (
-	DeepEquals   = check.DeepEquals
-	ErrorMatches = check.ErrorMatches
-	FitsTypeOf   = check.FitsTypeOf
-	HasLen       = check.HasLen
-	Implements   = check.Implements
-	IsNil        = check.IsNil
-	Matches      = check.Matches
-	Not          = check.Not
-	NotNil       = check.NotNil
-	PanicMatches = check.PanicMatches
-	Panics       = check.Panics
+	DeepEquals = check.DeepEquals
+	HasLen     = check.HasLen
+	IsNil      = check.IsNil
+	Matches    = check.Matches
+	Not        = check.Not
+	NotNil     = check.NotNil
 
 
 	Contains           = shakers.Contains
 	Contains           = shakers.Contains
-	ContainsAny        = shakers.ContainsAny
 	Count              = shakers.Count
 	Count              = shakers.Count
 	Equals             = shakers.Equals
 	Equals             = shakers.Equals
-	EqualFold          = shakers.EqualFold
 	False              = shakers.False
 	False              = shakers.False
 	GreaterOrEqualThan = shakers.GreaterOrEqualThan
 	GreaterOrEqualThan = shakers.GreaterOrEqualThan
 	GreaterThan        = shakers.GreaterThan
 	GreaterThan        = shakers.GreaterThan
 	HasPrefix          = shakers.HasPrefix
 	HasPrefix          = shakers.HasPrefix
-	HasSuffix          = shakers.HasSuffix
-	Index              = shakers.Index
-	IndexAny           = shakers.IndexAny
-	IsAfter            = shakers.IsAfter
-	IsBefore           = shakers.IsBefore
-	IsBetween          = shakers.IsBetween
-	IsLower            = shakers.IsLower
-	IsUpper            = shakers.IsUpper
 	LessOrEqualThan    = shakers.LessOrEqualThan
 	LessOrEqualThan    = shakers.LessOrEqualThan
-	LessThan           = shakers.LessThan
-	TimeEquals         = shakers.TimeEquals
 	True               = shakers.True
 	True               = shakers.True
-	TimeIgnore         = shakers.TimeIgnore
 )
 )

+ 1 - 1
vendor.conf

@@ -13,7 +13,7 @@ github.com/kr/pty 5cf931ef8f
 github.com/mattn/go-shellwords v1.0.3
 github.com/mattn/go-shellwords v1.0.3
 github.com/sirupsen/logrus 8bdbc7bcc01dcbb8ec23dc8a28e332258d25251f # v1.4.1
 github.com/sirupsen/logrus 8bdbc7bcc01dcbb8ec23dc8a28e332258d25251f # v1.4.1
 github.com/tchap/go-patricia v2.2.6
 github.com/tchap/go-patricia v2.2.6
-github.com/vdemeester/shakers 24d7f1d6a71aa5d9cbe7390e4afb66b7eef9e1b3
+github.com/vdemeester/shakers 24d7f1d6a71aa5d9cbe7390e4afb66b7eef9e1b3 # v0.1.0
 golang.org/x/net a680a1efc54dd51c040b3b5ce4939ea3cf2ea0d1
 golang.org/x/net a680a1efc54dd51c040b3b5ce4939ea3cf2ea0d1
 golang.org/x/sys d455e41777fca6e8a5a79e34a14b8368bc11d9ba
 golang.org/x/sys d455e41777fca6e8a5a79e34a14b8368bc11d9ba
 github.com/docker/go-units 47565b4f722fb6ceae66b95f853feed578a4a51c # v0.3.3
 github.com/docker/go-units 47565b4f722fb6ceae66b95f853feed578a4a51c # v0.3.3