Change error variable identifiers to ErrFoo

This commit is contained in:
tcharding
2017-08-31 15:59:52 +10:00
parent a3627bdac8
commit 86f1d74a69
2 changed files with 22 additions and 17 deletions

View File

@@ -39,11 +39,11 @@ func TestPlugin(t *testing.T) {
ShortDesc: "The test",
},
},
expectedErr: IncompletePluginError,
expectedErr: ErrIncompletePlugin,
},
{
plugin: &Plugin{},
expectedErr: IncompletePluginError,
expectedErr: ErrIncompletePlugin,
},
{
plugin: &Plugin{
@@ -53,7 +53,7 @@ func TestPlugin(t *testing.T) {
Command: "echo 1",
},
},
expectedErr: InvalidPluginNameError,
expectedErr: ErrInvalidPluginName,
},
{
plugin: &Plugin{
@@ -68,7 +68,7 @@ func TestPlugin(t *testing.T) {
},
},
},
expectedErr: IncompleteFlagError,
expectedErr: ErrIncompleteFlag,
},
{
plugin: &Plugin{
@@ -84,7 +84,7 @@ func TestPlugin(t *testing.T) {
},
},
},
expectedErr: InvalidFlagNameError,
expectedErr: ErrInvalidFlagName,
},
{
plugin: &Plugin{
@@ -101,7 +101,7 @@ func TestPlugin(t *testing.T) {
},
},
},
expectedErr: InvalidFlagShorthandError,
expectedErr: ErrInvalidFlagShorthand,
},
{
plugin: &Plugin{
@@ -118,7 +118,7 @@ func TestPlugin(t *testing.T) {
},
},
},
expectedErr: InvalidFlagShorthandError,
expectedErr: ErrInvalidFlagShorthand,
},
{
plugin: &Plugin{