Lint package pkg/plugins/pluginrpc-gen

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2015-09-04 14:55:56 +02:00
parent 825f8fb744
commit 721af25e56
4 changed files with 26 additions and 18 deletions

View file

@ -22,7 +22,7 @@ func TestParseEmptyInterface(t *testing.T) {
func TestParseNonInterfaceType(t *testing.T) {
_, err := Parse(testFixture, "wobble")
if _, ok := err.(ErrUnexpectedType); !ok {
if _, ok := err.(errUnexpectedType); !ok {
t.Fatal("expected type error when parsing non-interface type")
}
}
@ -109,7 +109,7 @@ func TestParseWithMultipleFuncs(t *testing.T) {
func TestParseWithUnamedReturn(t *testing.T) {
_, err := Parse(testFixture, "Fooer4")
if !strings.HasSuffix(err.Error(), ErrBadReturn.Error()) {
if !strings.HasSuffix(err.Error(), errBadReturn.Error()) {
t.Fatalf("expected ErrBadReturn, got %v", err)
}
}