t.Errorf("For test #%d, expected test.Args[%d] to be type *string (pointer to string), but actually was: %T",testNumber,test.ArgsIndex,test.Args[test.ArgsIndex])
ExpectedErrorString:"Internal Error: Index value -1 is less than zero.",
},
{
Value:randomString(),
ArgsIndex:-1,
Args:[]interface{}{randomString(),},
ExpectedFit:internalError,
ExpectedErrorString:"Internal Error: Index value -1 is less than zero.",
},
{
Value:randomString(),
ArgsIndex:-2,
Args:[]interface{}{new(string),},
ExpectedFit:internalError,
ExpectedErrorString:"Internal Error: Index value -2 is less than zero.",
},
{
Value:randomString(),
ArgsIndex:-2,
Args:[]interface{}{randomString(),},
ExpectedFit:internalError,
ExpectedErrorString:"Internal Error: Index value -2 is less than zero.",
},
{
Value:randomString(),
ArgsIndex:-3,
Args:[]interface{}{new(string),},
ExpectedFit:internalError,
ExpectedErrorString:"Internal Error: Index value -3 is less than zero.",
},
{
Value:randomString(),
ArgsIndex:-3,
Args:[]interface{}{randomString(),},
ExpectedFit:internalError,
ExpectedErrorString:"Internal Error: Index value -3 is less than zero.",
},
{
Value:randomString(),
ArgsIndex:0,
Args:[]interface{}{randomString(),},
ExpectedFit:unsupportedArgumentType,
ExpectedErrorString:"Bad Request: Type of argument #0 (string) is unsupported. However, type \"*string\" (pointer to string) is supported; did you mean to use a \"*string\" instead?",
ExpectedErrorString:"Bad Request: Type of argument #0 (string) is unsupported. However, type \"*string\" (pointer to string) is supported; did you mean to use a \"*string\" instead?",
ExpectedErrorString:"Bad Request: Type of argument #1 (string) is unsupported. However, type \"*string\" (pointer to string) is supported; did you mean to use a \"*string\" instead?",
ExpectedErrorString:"Bad Request: Type of argument #0 (string) is unsupported. However, type \"*string\" (pointer to string) is supported; did you mean to use a \"*string\" instead?",
ExpectedErrorString:"Bad Request: Type of argument #1 (string) is unsupported. However, type \"*string\" (pointer to string) is supported; did you mean to use a \"*string\" instead?",
ExpectedErrorString:"Bad Request: Type of argument #2 (string) is unsupported. However, type \"*string\" (pointer to string) is supported; did you mean to use a \"*string\" instead?",
},
{
Value:randomString(),
ArgsIndex:0,
Args:[]interface{}{},
ExpectedFit:notEnoughArguments,
ExpectedErrorString:"Bad Request: Not enough arguments. Expected at least 1 argument, but actually got 0.",
},
{
Value:randomString(),
ArgsIndex:1,
Args:[]interface{}{},
ExpectedFit:notEnoughArguments,
ExpectedErrorString:"Bad Request: Not enough arguments. Expected at least 2 arguments, but actually got 0.",
},
{
Value:randomString(),
ArgsIndex:2,
Args:[]interface{}{},
ExpectedFit:notEnoughArguments,
ExpectedErrorString:"Bad Request: Not enough arguments. Expected at least 3 arguments, but actually got 0.",
},
{
Value:randomString(),
ArgsIndex:1,
Args:[]interface{}{randomString(),},
ExpectedFit:notEnoughArguments,
ExpectedErrorString:"Bad Request: Not enough arguments. Expected at least 2 arguments, but actually got 1.",
},
{
Value:randomString(),
ArgsIndex:2,
Args:[]interface{}{randomString(),},
ExpectedFit:notEnoughArguments,
ExpectedErrorString:"Bad Request: Not enough arguments. Expected at least 3 arguments, but actually got 1.",
},
{
Value:randomString(),
ArgsIndex:3,
Args:[]interface{}{randomString(),},
ExpectedFit:notEnoughArguments,
ExpectedErrorString:"Bad Request: Not enough arguments. Expected at least 4 arguments, but actually got 1.",
t.Errorf("For test #%d, did indeed expect an error, but did not expect it to fit the \"InternalError\" interface, but actually did: %T.",testNumber,err)
t.Errorf("For test #%d, did indeed expect an error, but did not expect it to fit the \"NotEnoughArguments\" interface, but actually did: %T.",testNumber,err)
t.Errorf("For test #%d, did indeed expect an error, but did not expect it to fit the \"UnsupportedArgumentType\" interface, but actually did: %T.",testNumber,err)