OSDN Git Service

Merge pull request #201 from Bytom/v0.1
[bytom/vapor.git] / vendor / github.com / hashicorp / go-plugin / error_test.go
diff --git a/vendor/github.com/hashicorp/go-plugin/error_test.go b/vendor/github.com/hashicorp/go-plugin/error_test.go
deleted file mode 100644 (file)
index e3aeff5..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-package plugin
-
-import (
-       "errors"
-       "testing"
-)
-
-func TestBasicError_ImplementsError(t *testing.T) {
-       var _ error = new(BasicError)
-}
-
-func TestBasicError_MatchesMessage(t *testing.T) {
-       err := errors.New("foo")
-       wrapped := NewBasicError(err)
-
-       if wrapped.Error() != err.Error() {
-               t.Fatalf("bad: %#v", wrapped.Error())
-       }
-}
-
-func TestNewBasicError_nil(t *testing.T) {
-       r := NewBasicError(nil)
-       if r != nil {
-               t.Fatalf("bad: %#v", r)
-       }
-}