diff --git a/clear_gen_test.go b/clear_gen_test.go index 41351578..703741a6 100644 --- a/clear_gen_test.go +++ b/clear_gen_test.go @@ -35,6 +35,15 @@ func TestGenClear_Generic_Send(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send()), + PtrStr("unable to find a step with Send()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_SendBody(t *testing.T) { s := EchoServer() @@ -50,6 +59,15 @@ func TestGenClear_Generic_SendBody(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body()), + PtrStr("unable to find a step with Send().Body()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_SendBodyBool(t *testing.T) { s := EchoServer() @@ -65,6 +83,15 @@ func TestGenClear_Generic_SendBodyBool(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().Bool()), + PtrStr("unable to find a step with Send().Body().Bool()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyBool(t *testing.T) { s := EchoServer() @@ -95,6 +122,15 @@ func TestGenClear_Generic_SendBodyBytes(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().Bytes()), + PtrStr("unable to find a step with Send().Body().Bytes()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyBytes(t *testing.T) { s := EchoServer() @@ -125,6 +161,15 @@ func TestGenClear_Generic_SendBodyFloat32(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().Float32()), + PtrStr("unable to find a step with Send().Body().Float32()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyFloat32(t *testing.T) { s := EchoServer() @@ -155,6 +200,15 @@ func TestGenClear_Generic_SendBodyFloat64(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().Float64()), + PtrStr("unable to find a step with Send().Body().Float64()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyFloat64(t *testing.T) { s := EchoServer() @@ -185,6 +239,15 @@ func TestGenClear_Generic_SendBodyFormValues(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().FormValues()), + PtrStr("unable to find a step with Send().Body().FormValues()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_SendBodyFormValuesAdd(t *testing.T) { s := EchoServer() @@ -200,6 +263,15 @@ func TestGenClear_Generic_SendBodyFormValuesAdd(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().FormValues().Add()), + PtrStr("unable to find a step with Send().Body().FormValues().Add()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyFormValuesAdd(t *testing.T) { s := EchoServer() @@ -230,6 +302,15 @@ func TestGenClear_Generic_SendBodyInt(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().Int()), + PtrStr("unable to find a step with Send().Body().Int()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyInt(t *testing.T) { s := EchoServer() @@ -260,6 +341,15 @@ func TestGenClear_Generic_SendBodyInt16(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().Int16()), + PtrStr("unable to find a step with Send().Body().Int16()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyInt16(t *testing.T) { s := EchoServer() @@ -290,6 +380,15 @@ func TestGenClear_Generic_SendBodyInt32(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().Int32()), + PtrStr("unable to find a step with Send().Body().Int32()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyInt32(t *testing.T) { s := EchoServer() @@ -320,6 +419,15 @@ func TestGenClear_Generic_SendBodyInt64(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().Int64()), + PtrStr("unable to find a step with Send().Body().Int64()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyInt64(t *testing.T) { s := EchoServer() @@ -350,6 +458,15 @@ func TestGenClear_Generic_SendBodyInt8(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().Int8()), + PtrStr("unable to find a step with Send().Body().Int8()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyInt8(t *testing.T) { s := EchoServer() @@ -380,6 +497,15 @@ func TestGenClear_Generic_SendBodyJSON(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().JSON()), + PtrStr("unable to find a step with Send().Body().JSON()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyJSON(t *testing.T) { s := EchoServer() @@ -410,6 +536,15 @@ func TestGenClear_Generic_SendBodyString(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().String()), + PtrStr("unable to find a step with Send().Body().String()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyString(t *testing.T) { s := EchoServer() @@ -440,6 +575,15 @@ func TestGenClear_Generic_SendBodyUint(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().Uint()), + PtrStr("unable to find a step with Send().Body().Uint()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyUint(t *testing.T) { s := EchoServer() @@ -470,6 +614,15 @@ func TestGenClear_Generic_SendBodyUint16(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().Uint16()), + PtrStr("unable to find a step with Send().Body().Uint16()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyUint16(t *testing.T) { s := EchoServer() @@ -500,6 +653,15 @@ func TestGenClear_Generic_SendBodyUint32(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().Uint32()), + PtrStr("unable to find a step with Send().Body().Uint32()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyUint32(t *testing.T) { s := EchoServer() @@ -530,6 +692,15 @@ func TestGenClear_Generic_SendBodyUint64(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().Uint64()), + PtrStr("unable to find a step with Send().Body().Uint64()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyUint64(t *testing.T) { s := EchoServer() @@ -560,6 +731,15 @@ func TestGenClear_Generic_SendBodyUint8(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().Uint8()), + PtrStr("unable to find a step with Send().Body().Uint8()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyUint8(t *testing.T) { s := EchoServer() @@ -590,6 +770,15 @@ func TestGenClear_Generic_SendBodyXML(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Body().XML()), + PtrStr("unable to find a step with Send().Body().XML()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendBodyXML(t *testing.T) { s := EchoServer() @@ -620,6 +809,15 @@ func TestGenClear_Generic_SendHeaders(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Headers()), + PtrStr("unable to find a step with Send().Headers()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_SendHeadersAdd(t *testing.T) { s := EchoServer() @@ -635,6 +833,15 @@ func TestGenClear_Generic_SendHeadersAdd(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Headers().Add()), + PtrStr("unable to find a step with Send().Headers().Add()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendHeadersAdd(t *testing.T) { s := EchoServer() @@ -665,6 +872,15 @@ func TestGenClear_Generic_SendTrailers(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Trailers()), + PtrStr("unable to find a step with Send().Trailers()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_SendTrailersAdd(t *testing.T) { s := EchoServer() @@ -680,6 +896,15 @@ func TestGenClear_Generic_SendTrailersAdd(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Send().Trailers().Add()), + PtrStr("unable to find a step with Send().Trailers().Add()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_SendTrailersAdd(t *testing.T) { s := EchoServer() @@ -710,6 +935,15 @@ func TestGenClear_Generic_Expect(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect()), + PtrStr("unable to find a step with Expect()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBody(t *testing.T) { s := EchoServer() @@ -725,6 +959,15 @@ func TestGenClear_Generic_ExpectBody(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body()), + PtrStr("unable to find a step with Expect().Body()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyBytes(t *testing.T) { s := EchoServer() @@ -740,6 +983,15 @@ func TestGenClear_Generic_ExpectBodyBytes(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Bytes()), + PtrStr("unable to find a step with Expect().Body().Bytes()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyBytesContains(t *testing.T) { s := EchoServer() @@ -755,6 +1007,15 @@ func TestGenClear_Generic_ExpectBodyBytesContains(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Bytes().Contains()), + PtrStr("unable to find a step with Expect().Body().Bytes().Contains()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyBytesContains(t *testing.T) { s := EchoServer() @@ -785,6 +1046,15 @@ func TestGenClear_Generic_ExpectBodyBytesEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Bytes().Equal()), + PtrStr("unable to find a step with Expect().Body().Bytes().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyBytesEqual(t *testing.T) { s := EchoServer() @@ -815,6 +1085,15 @@ func TestGenClear_Generic_ExpectBodyBytesLen(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Bytes().Len()), + PtrStr("unable to find a step with Expect().Body().Bytes().Len()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyBytesLenBetween(t *testing.T) { s := EchoServer() @@ -830,6 +1109,15 @@ func TestGenClear_Generic_ExpectBodyBytesLenBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Bytes().Len().Between()), + PtrStr("unable to find a step with Expect().Body().Bytes().Len().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyBytesLenBetween(t *testing.T) { s := EchoServer() @@ -860,6 +1148,15 @@ func TestGenClear_Generic_ExpectBodyBytesLenEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Bytes().Len().Equal()), + PtrStr("unable to find a step with Expect().Body().Bytes().Len().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyBytesLenEqual(t *testing.T) { s := EchoServer() @@ -890,6 +1187,15 @@ func TestGenClear_Generic_ExpectBodyBytesLenGreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Bytes().Len().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Bytes().Len().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyBytesLenGreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -920,6 +1226,15 @@ func TestGenClear_Generic_ExpectBodyBytesLenGreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Bytes().Len().GreaterThan()), + PtrStr("unable to find a step with Expect().Body().Bytes().Len().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyBytesLenGreaterThan(t *testing.T) { s := EchoServer() @@ -950,6 +1265,15 @@ func TestGenClear_Generic_ExpectBodyBytesLenLessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Bytes().Len().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Bytes().Len().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyBytesLenLessOrEqualThan(t *testing.T) { s := EchoServer() @@ -980,6 +1304,15 @@ func TestGenClear_Generic_ExpectBodyBytesLenLessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Bytes().Len().LessThan()), + PtrStr("unable to find a step with Expect().Body().Bytes().Len().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyBytesLenLessThan(t *testing.T) { s := EchoServer() @@ -1010,6 +1343,15 @@ func TestGenClear_Generic_ExpectBodyBytesLenNotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Bytes().Len().NotBetween()), + PtrStr("unable to find a step with Expect().Body().Bytes().Len().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyBytesLenNotBetween(t *testing.T) { s := EchoServer() @@ -1040,6 +1382,15 @@ func TestGenClear_Generic_ExpectBodyBytesLenNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Bytes().Len().NotEqual()), + PtrStr("unable to find a step with Expect().Body().Bytes().Len().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyBytesLenNotEqual(t *testing.T) { s := EchoServer() @@ -1070,6 +1421,15 @@ func TestGenClear_Generic_ExpectBodyBytesLenNotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Bytes().Len().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().Bytes().Len().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyBytesLenNotOneOf(t *testing.T) { s := EchoServer() @@ -1100,6 +1460,15 @@ func TestGenClear_Generic_ExpectBodyBytesLenOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Bytes().Len().OneOf()), + PtrStr("unable to find a step with Expect().Body().Bytes().Len().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyBytesLenOneOf(t *testing.T) { s := EchoServer() @@ -1130,6 +1499,15 @@ func TestGenClear_Generic_ExpectBodyBytesNotContains(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Bytes().NotContains()), + PtrStr("unable to find a step with Expect().Body().Bytes().NotContains()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyBytesNotContains(t *testing.T) { s := EchoServer() @@ -1160,6 +1538,15 @@ func TestGenClear_Generic_ExpectBodyBytesNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Bytes().NotEqual()), + PtrStr("unable to find a step with Expect().Body().Bytes().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyBytesNotEqual(t *testing.T) { s := EchoServer() @@ -1190,6 +1577,15 @@ func TestGenClear_Generic_ExpectBodyFloat32(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float32()), + PtrStr("unable to find a step with Expect().Body().Float32()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyFloat32Between(t *testing.T) { s := EchoServer() @@ -1205,6 +1601,15 @@ func TestGenClear_Generic_ExpectBodyFloat32Between(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float32().Between()), + PtrStr("unable to find a step with Expect().Body().Float32().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat32Between(t *testing.T) { s := EchoServer() @@ -1235,6 +1640,15 @@ func TestGenClear_Generic_ExpectBodyFloat32Equal(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float32().Equal()), + PtrStr("unable to find a step with Expect().Body().Float32().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat32Equal(t *testing.T) { s := EchoServer() @@ -1265,6 +1679,15 @@ func TestGenClear_Generic_ExpectBodyFloat32GreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float32().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Float32().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat32GreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -1295,6 +1718,15 @@ func TestGenClear_Generic_ExpectBodyFloat32GreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float32().GreaterThan()), + PtrStr("unable to find a step with Expect().Body().Float32().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat32GreaterThan(t *testing.T) { s := EchoServer() @@ -1325,6 +1757,15 @@ func TestGenClear_Generic_ExpectBodyFloat32LessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float32().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Float32().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat32LessOrEqualThan(t *testing.T) { s := EchoServer() @@ -1355,6 +1796,15 @@ func TestGenClear_Generic_ExpectBodyFloat32LessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float32().LessThan()), + PtrStr("unable to find a step with Expect().Body().Float32().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat32LessThan(t *testing.T) { s := EchoServer() @@ -1385,6 +1835,15 @@ func TestGenClear_Generic_ExpectBodyFloat32NotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float32().NotBetween()), + PtrStr("unable to find a step with Expect().Body().Float32().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat32NotBetween(t *testing.T) { s := EchoServer() @@ -1415,6 +1874,15 @@ func TestGenClear_Generic_ExpectBodyFloat32NotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float32().NotEqual()), + PtrStr("unable to find a step with Expect().Body().Float32().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat32NotEqual(t *testing.T) { s := EchoServer() @@ -1445,6 +1913,15 @@ func TestGenClear_Generic_ExpectBodyFloat32NotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float32().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().Float32().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat32NotOneOf(t *testing.T) { s := EchoServer() @@ -1475,6 +1952,15 @@ func TestGenClear_Generic_ExpectBodyFloat32OneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float32().OneOf()), + PtrStr("unable to find a step with Expect().Body().Float32().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat32OneOf(t *testing.T) { s := EchoServer() @@ -1505,6 +1991,15 @@ func TestGenClear_Generic_ExpectBodyFloat64(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float64()), + PtrStr("unable to find a step with Expect().Body().Float64()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyFloat64Between(t *testing.T) { s := EchoServer() @@ -1520,6 +2015,15 @@ func TestGenClear_Generic_ExpectBodyFloat64Between(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float64().Between()), + PtrStr("unable to find a step with Expect().Body().Float64().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat64Between(t *testing.T) { s := EchoServer() @@ -1550,6 +2054,15 @@ func TestGenClear_Generic_ExpectBodyFloat64Equal(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float64().Equal()), + PtrStr("unable to find a step with Expect().Body().Float64().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat64Equal(t *testing.T) { s := EchoServer() @@ -1580,6 +2093,15 @@ func TestGenClear_Generic_ExpectBodyFloat64GreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float64().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Float64().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat64GreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -1610,6 +2132,15 @@ func TestGenClear_Generic_ExpectBodyFloat64GreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float64().GreaterThan()), + PtrStr("unable to find a step with Expect().Body().Float64().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat64GreaterThan(t *testing.T) { s := EchoServer() @@ -1640,6 +2171,15 @@ func TestGenClear_Generic_ExpectBodyFloat64LessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float64().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Float64().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat64LessOrEqualThan(t *testing.T) { s := EchoServer() @@ -1670,6 +2210,15 @@ func TestGenClear_Generic_ExpectBodyFloat64LessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float64().LessThan()), + PtrStr("unable to find a step with Expect().Body().Float64().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat64LessThan(t *testing.T) { s := EchoServer() @@ -1700,6 +2249,15 @@ func TestGenClear_Generic_ExpectBodyFloat64NotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float64().NotBetween()), + PtrStr("unable to find a step with Expect().Body().Float64().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat64NotBetween(t *testing.T) { s := EchoServer() @@ -1730,6 +2288,15 @@ func TestGenClear_Generic_ExpectBodyFloat64NotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float64().NotEqual()), + PtrStr("unable to find a step with Expect().Body().Float64().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat64NotEqual(t *testing.T) { s := EchoServer() @@ -1760,6 +2327,15 @@ func TestGenClear_Generic_ExpectBodyFloat64NotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float64().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().Float64().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat64NotOneOf(t *testing.T) { s := EchoServer() @@ -1790,6 +2366,15 @@ func TestGenClear_Generic_ExpectBodyFloat64OneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Float64().OneOf()), + PtrStr("unable to find a step with Expect().Body().Float64().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFloat64OneOf(t *testing.T) { s := EchoServer() @@ -1820,6 +2405,15 @@ func TestGenClear_Generic_ExpectBodyFormValues(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues()), + PtrStr("unable to find a step with Expect().Body().FormValues()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyFormValuesContains(t *testing.T) { s := EchoServer() @@ -1835,6 +2429,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesContains(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().Contains()), + PtrStr("unable to find a step with Expect().Body().FormValues().Contains()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesContains(t *testing.T) { s := EchoServer() @@ -1865,6 +2468,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesEmpty(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().Empty()), + PtrStr("unable to find a step with Expect().Body().FormValues().Empty()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesEmpty(t *testing.T) { s := EchoServer() @@ -1895,6 +2507,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().Equal()), + PtrStr("unable to find a step with Expect().Body().FormValues().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesEqual(t *testing.T) { s := EchoServer() @@ -1925,6 +2546,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesLen(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().Len()), + PtrStr("unable to find a step with Expect().Body().FormValues().Len()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyFormValuesLenBetween(t *testing.T) { s := EchoServer() @@ -1940,6 +2570,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesLenBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().Len().Between()), + PtrStr("unable to find a step with Expect().Body().FormValues().Len().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesLenBetween(t *testing.T) { s := EchoServer() @@ -1970,6 +2609,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesLenEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().Len().Equal()), + PtrStr("unable to find a step with Expect().Body().FormValues().Len().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesLenEqual(t *testing.T) { s := EchoServer() @@ -2000,6 +2648,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesLenGreaterOrEqualThan(t *testing.T expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().Len().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().FormValues().Len().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesLenGreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -2030,6 +2687,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesLenGreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().Len().GreaterThan()), + PtrStr("unable to find a step with Expect().Body().FormValues().Len().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesLenGreaterThan(t *testing.T) { s := EchoServer() @@ -2060,6 +2726,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesLenLessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().Len().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().FormValues().Len().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesLenLessOrEqualThan(t *testing.T) { s := EchoServer() @@ -2090,6 +2765,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesLenLessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().Len().LessThan()), + PtrStr("unable to find a step with Expect().Body().FormValues().Len().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesLenLessThan(t *testing.T) { s := EchoServer() @@ -2120,6 +2804,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesLenNotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().Len().NotBetween()), + PtrStr("unable to find a step with Expect().Body().FormValues().Len().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesLenNotBetween(t *testing.T) { s := EchoServer() @@ -2150,6 +2843,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesLenNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().Len().NotEqual()), + PtrStr("unable to find a step with Expect().Body().FormValues().Len().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesLenNotEqual(t *testing.T) { s := EchoServer() @@ -2180,6 +2882,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesLenNotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().Len().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().FormValues().Len().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesLenNotOneOf(t *testing.T) { s := EchoServer() @@ -2210,6 +2921,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesLenOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().Len().OneOf()), + PtrStr("unable to find a step with Expect().Body().FormValues().Len().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesLenOneOf(t *testing.T) { s := EchoServer() @@ -2240,6 +2960,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesNotContains(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().NotContains()), + PtrStr("unable to find a step with Expect().Body().FormValues().NotContains()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesNotContains(t *testing.T) { s := EchoServer() @@ -2270,6 +2999,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesNotEmpty(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().NotEmpty()), + PtrStr("unable to find a step with Expect().Body().FormValues().NotEmpty()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesNotEmpty(t *testing.T) { s := EchoServer() @@ -2300,6 +3038,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().NotEqual()), + PtrStr("unable to find a step with Expect().Body().FormValues().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesNotEqual(t *testing.T) { s := EchoServer() @@ -2330,6 +3077,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesNotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().FormValues().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesNotOneOf(t *testing.T) { s := EchoServer() @@ -2360,6 +3116,15 @@ func TestGenClear_Generic_ExpectBodyFormValuesOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().FormValues().OneOf()), + PtrStr("unable to find a step with Expect().Body().FormValues().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyFormValuesOneOf(t *testing.T) { s := EchoServer() @@ -2390,6 +3155,15 @@ func TestGenClear_Generic_ExpectBodyInt(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int()), + PtrStr("unable to find a step with Expect().Body().Int()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyIntBetween(t *testing.T) { s := EchoServer() @@ -2405,6 +3179,15 @@ func TestGenClear_Generic_ExpectBodyIntBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int().Between()), + PtrStr("unable to find a step with Expect().Body().Int().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyIntBetween(t *testing.T) { s := EchoServer() @@ -2435,6 +3218,15 @@ func TestGenClear_Generic_ExpectBodyIntEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int().Equal()), + PtrStr("unable to find a step with Expect().Body().Int().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyIntEqual(t *testing.T) { s := EchoServer() @@ -2465,6 +3257,15 @@ func TestGenClear_Generic_ExpectBodyIntGreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Int().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyIntGreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -2495,6 +3296,15 @@ func TestGenClear_Generic_ExpectBodyIntGreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int().GreaterThan()), + PtrStr("unable to find a step with Expect().Body().Int().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyIntGreaterThan(t *testing.T) { s := EchoServer() @@ -2525,6 +3335,15 @@ func TestGenClear_Generic_ExpectBodyIntLessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Int().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyIntLessOrEqualThan(t *testing.T) { s := EchoServer() @@ -2555,6 +3374,15 @@ func TestGenClear_Generic_ExpectBodyIntLessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int().LessThan()), + PtrStr("unable to find a step with Expect().Body().Int().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyIntLessThan(t *testing.T) { s := EchoServer() @@ -2585,6 +3413,15 @@ func TestGenClear_Generic_ExpectBodyIntNotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int().NotBetween()), + PtrStr("unable to find a step with Expect().Body().Int().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyIntNotBetween(t *testing.T) { s := EchoServer() @@ -2615,6 +3452,15 @@ func TestGenClear_Generic_ExpectBodyIntNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int().NotEqual()), + PtrStr("unable to find a step with Expect().Body().Int().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyIntNotEqual(t *testing.T) { s := EchoServer() @@ -2645,6 +3491,15 @@ func TestGenClear_Generic_ExpectBodyIntNotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().Int().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyIntNotOneOf(t *testing.T) { s := EchoServer() @@ -2675,6 +3530,15 @@ func TestGenClear_Generic_ExpectBodyIntOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int().OneOf()), + PtrStr("unable to find a step with Expect().Body().Int().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyIntOneOf(t *testing.T) { s := EchoServer() @@ -2705,6 +3569,15 @@ func TestGenClear_Generic_ExpectBodyInt16(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int16()), + PtrStr("unable to find a step with Expect().Body().Int16()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyInt16Between(t *testing.T) { s := EchoServer() @@ -2720,6 +3593,15 @@ func TestGenClear_Generic_ExpectBodyInt16Between(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int16().Between()), + PtrStr("unable to find a step with Expect().Body().Int16().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt16Between(t *testing.T) { s := EchoServer() @@ -2750,6 +3632,15 @@ func TestGenClear_Generic_ExpectBodyInt16Equal(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int16().Equal()), + PtrStr("unable to find a step with Expect().Body().Int16().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt16Equal(t *testing.T) { s := EchoServer() @@ -2780,6 +3671,15 @@ func TestGenClear_Generic_ExpectBodyInt16GreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int16().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Int16().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt16GreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -2810,6 +3710,15 @@ func TestGenClear_Generic_ExpectBodyInt16GreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int16().GreaterThan()), + PtrStr("unable to find a step with Expect().Body().Int16().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt16GreaterThan(t *testing.T) { s := EchoServer() @@ -2840,6 +3749,15 @@ func TestGenClear_Generic_ExpectBodyInt16LessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int16().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Int16().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt16LessOrEqualThan(t *testing.T) { s := EchoServer() @@ -2870,6 +3788,15 @@ func TestGenClear_Generic_ExpectBodyInt16LessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int16().LessThan()), + PtrStr("unable to find a step with Expect().Body().Int16().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt16LessThan(t *testing.T) { s := EchoServer() @@ -2900,6 +3827,15 @@ func TestGenClear_Generic_ExpectBodyInt16NotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int16().NotBetween()), + PtrStr("unable to find a step with Expect().Body().Int16().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt16NotBetween(t *testing.T) { s := EchoServer() @@ -2930,6 +3866,15 @@ func TestGenClear_Generic_ExpectBodyInt16NotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int16().NotEqual()), + PtrStr("unable to find a step with Expect().Body().Int16().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt16NotEqual(t *testing.T) { s := EchoServer() @@ -2960,6 +3905,15 @@ func TestGenClear_Generic_ExpectBodyInt16NotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int16().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().Int16().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt16NotOneOf(t *testing.T) { s := EchoServer() @@ -2990,6 +3944,15 @@ func TestGenClear_Generic_ExpectBodyInt16OneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int16().OneOf()), + PtrStr("unable to find a step with Expect().Body().Int16().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt16OneOf(t *testing.T) { s := EchoServer() @@ -3020,6 +3983,15 @@ func TestGenClear_Generic_ExpectBodyInt32(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int32()), + PtrStr("unable to find a step with Expect().Body().Int32()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyInt32Between(t *testing.T) { s := EchoServer() @@ -3035,6 +4007,15 @@ func TestGenClear_Generic_ExpectBodyInt32Between(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int32().Between()), + PtrStr("unable to find a step with Expect().Body().Int32().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt32Between(t *testing.T) { s := EchoServer() @@ -3065,6 +4046,15 @@ func TestGenClear_Generic_ExpectBodyInt32Equal(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int32().Equal()), + PtrStr("unable to find a step with Expect().Body().Int32().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt32Equal(t *testing.T) { s := EchoServer() @@ -3095,6 +4085,15 @@ func TestGenClear_Generic_ExpectBodyInt32GreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int32().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Int32().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt32GreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -3125,6 +4124,15 @@ func TestGenClear_Generic_ExpectBodyInt32GreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int32().GreaterThan()), + PtrStr("unable to find a step with Expect().Body().Int32().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt32GreaterThan(t *testing.T) { s := EchoServer() @@ -3155,6 +4163,15 @@ func TestGenClear_Generic_ExpectBodyInt32LessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int32().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Int32().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt32LessOrEqualThan(t *testing.T) { s := EchoServer() @@ -3185,6 +4202,15 @@ func TestGenClear_Generic_ExpectBodyInt32LessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int32().LessThan()), + PtrStr("unable to find a step with Expect().Body().Int32().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt32LessThan(t *testing.T) { s := EchoServer() @@ -3215,6 +4241,15 @@ func TestGenClear_Generic_ExpectBodyInt32NotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int32().NotBetween()), + PtrStr("unable to find a step with Expect().Body().Int32().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt32NotBetween(t *testing.T) { s := EchoServer() @@ -3245,6 +4280,15 @@ func TestGenClear_Generic_ExpectBodyInt32NotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int32().NotEqual()), + PtrStr("unable to find a step with Expect().Body().Int32().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt32NotEqual(t *testing.T) { s := EchoServer() @@ -3275,6 +4319,15 @@ func TestGenClear_Generic_ExpectBodyInt32NotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int32().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().Int32().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt32NotOneOf(t *testing.T) { s := EchoServer() @@ -3305,6 +4358,15 @@ func TestGenClear_Generic_ExpectBodyInt32OneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int32().OneOf()), + PtrStr("unable to find a step with Expect().Body().Int32().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt32OneOf(t *testing.T) { s := EchoServer() @@ -3335,6 +4397,15 @@ func TestGenClear_Generic_ExpectBodyInt64(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int64()), + PtrStr("unable to find a step with Expect().Body().Int64()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyInt64Between(t *testing.T) { s := EchoServer() @@ -3350,6 +4421,15 @@ func TestGenClear_Generic_ExpectBodyInt64Between(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int64().Between()), + PtrStr("unable to find a step with Expect().Body().Int64().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt64Between(t *testing.T) { s := EchoServer() @@ -3380,6 +4460,15 @@ func TestGenClear_Generic_ExpectBodyInt64Equal(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int64().Equal()), + PtrStr("unable to find a step with Expect().Body().Int64().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt64Equal(t *testing.T) { s := EchoServer() @@ -3410,6 +4499,15 @@ func TestGenClear_Generic_ExpectBodyInt64GreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int64().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Int64().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt64GreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -3440,6 +4538,15 @@ func TestGenClear_Generic_ExpectBodyInt64GreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int64().GreaterThan()), + PtrStr("unable to find a step with Expect().Body().Int64().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt64GreaterThan(t *testing.T) { s := EchoServer() @@ -3470,6 +4577,15 @@ func TestGenClear_Generic_ExpectBodyInt64LessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int64().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Int64().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt64LessOrEqualThan(t *testing.T) { s := EchoServer() @@ -3500,6 +4616,15 @@ func TestGenClear_Generic_ExpectBodyInt64LessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int64().LessThan()), + PtrStr("unable to find a step with Expect().Body().Int64().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt64LessThan(t *testing.T) { s := EchoServer() @@ -3530,6 +4655,15 @@ func TestGenClear_Generic_ExpectBodyInt64NotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int64().NotBetween()), + PtrStr("unable to find a step with Expect().Body().Int64().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt64NotBetween(t *testing.T) { s := EchoServer() @@ -3560,6 +4694,15 @@ func TestGenClear_Generic_ExpectBodyInt64NotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int64().NotEqual()), + PtrStr("unable to find a step with Expect().Body().Int64().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt64NotEqual(t *testing.T) { s := EchoServer() @@ -3590,6 +4733,15 @@ func TestGenClear_Generic_ExpectBodyInt64NotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int64().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().Int64().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt64NotOneOf(t *testing.T) { s := EchoServer() @@ -3620,6 +4772,15 @@ func TestGenClear_Generic_ExpectBodyInt64OneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int64().OneOf()), + PtrStr("unable to find a step with Expect().Body().Int64().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt64OneOf(t *testing.T) { s := EchoServer() @@ -3650,6 +4811,15 @@ func TestGenClear_Generic_ExpectBodyInt8(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int8()), + PtrStr("unable to find a step with Expect().Body().Int8()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyInt8Between(t *testing.T) { s := EchoServer() @@ -3665,6 +4835,15 @@ func TestGenClear_Generic_ExpectBodyInt8Between(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int8().Between()), + PtrStr("unable to find a step with Expect().Body().Int8().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt8Between(t *testing.T) { s := EchoServer() @@ -3695,6 +4874,15 @@ func TestGenClear_Generic_ExpectBodyInt8Equal(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int8().Equal()), + PtrStr("unable to find a step with Expect().Body().Int8().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt8Equal(t *testing.T) { s := EchoServer() @@ -3725,6 +4913,15 @@ func TestGenClear_Generic_ExpectBodyInt8GreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int8().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Int8().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt8GreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -3755,6 +4952,15 @@ func TestGenClear_Generic_ExpectBodyInt8GreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int8().GreaterThan()), + PtrStr("unable to find a step with Expect().Body().Int8().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt8GreaterThan(t *testing.T) { s := EchoServer() @@ -3785,6 +4991,15 @@ func TestGenClear_Generic_ExpectBodyInt8LessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int8().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Int8().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt8LessOrEqualThan(t *testing.T) { s := EchoServer() @@ -3815,6 +5030,15 @@ func TestGenClear_Generic_ExpectBodyInt8LessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int8().LessThan()), + PtrStr("unable to find a step with Expect().Body().Int8().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt8LessThan(t *testing.T) { s := EchoServer() @@ -3845,6 +5069,15 @@ func TestGenClear_Generic_ExpectBodyInt8NotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int8().NotBetween()), + PtrStr("unable to find a step with Expect().Body().Int8().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt8NotBetween(t *testing.T) { s := EchoServer() @@ -3875,6 +5108,15 @@ func TestGenClear_Generic_ExpectBodyInt8NotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int8().NotEqual()), + PtrStr("unable to find a step with Expect().Body().Int8().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt8NotEqual(t *testing.T) { s := EchoServer() @@ -3905,6 +5147,15 @@ func TestGenClear_Generic_ExpectBodyInt8NotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int8().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().Int8().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt8NotOneOf(t *testing.T) { s := EchoServer() @@ -3935,6 +5186,15 @@ func TestGenClear_Generic_ExpectBodyInt8OneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Int8().OneOf()), + PtrStr("unable to find a step with Expect().Body().Int8().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyInt8OneOf(t *testing.T) { s := EchoServer() @@ -3965,6 +5225,15 @@ func TestGenClear_Generic_ExpectBodyJSON(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON()), + PtrStr("unable to find a step with Expect().Body().JSON()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyJSONContains(t *testing.T) { s := EchoServer() @@ -3980,6 +5249,15 @@ func TestGenClear_Generic_ExpectBodyJSONContains(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().Contains()), + PtrStr("unable to find a step with Expect().Body().JSON().Contains()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONContains(t *testing.T) { s := EchoServer() @@ -4010,6 +5288,15 @@ func TestGenClear_Generic_ExpectBodyJSONEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().Equal()), + PtrStr("unable to find a step with Expect().Body().JSON().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONEqual(t *testing.T) { s := EchoServer() @@ -4040,6 +5327,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQ(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyJSONJQContains(t *testing.T) { s := EchoServer() @@ -4055,6 +5351,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQContains(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().Contains()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().Contains()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQContains(t *testing.T) { s := EchoServer() @@ -4085,6 +5390,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().Equal()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQEqual(t *testing.T) { s := EchoServer() @@ -4115,6 +5429,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQJQ(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().JQ()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().JQ()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyJSONJQJQContains(t *testing.T) { s := EchoServer() @@ -4130,6 +5453,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQJQContains(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().JQ().Contains()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().JQ().Contains()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQJQContains(t *testing.T) { s := EchoServer() @@ -4160,6 +5492,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQJQEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().JQ().Equal()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().JQ().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQJQEqual(t *testing.T) { s := EchoServer() @@ -4190,6 +5531,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQJQJQ(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().JQ().JQ()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().JQ().JQ()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyJSONJQJQLen(t *testing.T) { s := EchoServer() @@ -4205,6 +5555,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQJQLen(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().JQ().Len()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().JQ().Len()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyJSONJQJQNotContains(t *testing.T) { s := EchoServer() @@ -4220,6 +5579,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQJQNotContains(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().JQ().NotContains()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().JQ().NotContains()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQJQNotContains(t *testing.T) { s := EchoServer() @@ -4250,6 +5618,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQJQNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().JQ().NotEqual()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().JQ().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQJQNotEqual(t *testing.T) { s := EchoServer() @@ -4280,6 +5657,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQLen(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().Len()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().Len()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyJSONJQLenBetween(t *testing.T) { s := EchoServer() @@ -4295,6 +5681,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQLenBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().Len().Between()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().Len().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQLenBetween(t *testing.T) { s := EchoServer() @@ -4325,6 +5720,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQLenEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().Len().Equal()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().Len().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQLenEqual(t *testing.T) { s := EchoServer() @@ -4355,6 +5759,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQLenGreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().Len().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().Len().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQLenGreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -4385,6 +5798,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQLenGreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().Len().GreaterThan()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().Len().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQLenGreaterThan(t *testing.T) { s := EchoServer() @@ -4415,6 +5837,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQLenLessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().Len().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().Len().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQLenLessOrEqualThan(t *testing.T) { s := EchoServer() @@ -4445,6 +5876,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQLenLessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().Len().LessThan()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().Len().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQLenLessThan(t *testing.T) { s := EchoServer() @@ -4475,6 +5915,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQLenNotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().Len().NotBetween()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().Len().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQLenNotBetween(t *testing.T) { s := EchoServer() @@ -4505,6 +5954,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQLenNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().Len().NotEqual()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().Len().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQLenNotEqual(t *testing.T) { s := EchoServer() @@ -4535,6 +5993,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQLenNotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().Len().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().Len().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQLenNotOneOf(t *testing.T) { s := EchoServer() @@ -4565,6 +6032,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQLenOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().Len().OneOf()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().Len().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQLenOneOf(t *testing.T) { s := EchoServer() @@ -4595,6 +6071,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQNotContains(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().NotContains()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().NotContains()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQNotContains(t *testing.T) { s := EchoServer() @@ -4625,6 +6110,15 @@ func TestGenClear_Generic_ExpectBodyJSONJQNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().JQ().NotEqual()), + PtrStr("unable to find a step with Expect().Body().JSON().JQ().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONJQNotEqual(t *testing.T) { s := EchoServer() @@ -4655,6 +6149,15 @@ func TestGenClear_Generic_ExpectBodyJSONLen(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().Len()), + PtrStr("unable to find a step with Expect().Body().JSON().Len()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyJSONLenBetween(t *testing.T) { s := EchoServer() @@ -4670,6 +6173,15 @@ func TestGenClear_Generic_ExpectBodyJSONLenBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().Len().Between()), + PtrStr("unable to find a step with Expect().Body().JSON().Len().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONLenBetween(t *testing.T) { s := EchoServer() @@ -4700,6 +6212,15 @@ func TestGenClear_Generic_ExpectBodyJSONLenEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().Len().Equal()), + PtrStr("unable to find a step with Expect().Body().JSON().Len().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONLenEqual(t *testing.T) { s := EchoServer() @@ -4730,6 +6251,15 @@ func TestGenClear_Generic_ExpectBodyJSONLenGreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().Len().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().JSON().Len().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONLenGreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -4760,6 +6290,15 @@ func TestGenClear_Generic_ExpectBodyJSONLenGreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().Len().GreaterThan()), + PtrStr("unable to find a step with Expect().Body().JSON().Len().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONLenGreaterThan(t *testing.T) { s := EchoServer() @@ -4790,6 +6329,15 @@ func TestGenClear_Generic_ExpectBodyJSONLenLessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().Len().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().JSON().Len().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONLenLessOrEqualThan(t *testing.T) { s := EchoServer() @@ -4820,6 +6368,15 @@ func TestGenClear_Generic_ExpectBodyJSONLenLessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().Len().LessThan()), + PtrStr("unable to find a step with Expect().Body().JSON().Len().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONLenLessThan(t *testing.T) { s := EchoServer() @@ -4850,6 +6407,15 @@ func TestGenClear_Generic_ExpectBodyJSONLenNotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().Len().NotBetween()), + PtrStr("unable to find a step with Expect().Body().JSON().Len().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONLenNotBetween(t *testing.T) { s := EchoServer() @@ -4880,6 +6446,15 @@ func TestGenClear_Generic_ExpectBodyJSONLenNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().Len().NotEqual()), + PtrStr("unable to find a step with Expect().Body().JSON().Len().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONLenNotEqual(t *testing.T) { s := EchoServer() @@ -4910,6 +6485,15 @@ func TestGenClear_Generic_ExpectBodyJSONLenNotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().Len().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().JSON().Len().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONLenNotOneOf(t *testing.T) { s := EchoServer() @@ -4940,6 +6524,15 @@ func TestGenClear_Generic_ExpectBodyJSONLenOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().Len().OneOf()), + PtrStr("unable to find a step with Expect().Body().JSON().Len().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONLenOneOf(t *testing.T) { s := EchoServer() @@ -4970,6 +6563,15 @@ func TestGenClear_Generic_ExpectBodyJSONNotContains(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().NotContains()), + PtrStr("unable to find a step with Expect().Body().JSON().NotContains()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONNotContains(t *testing.T) { s := EchoServer() @@ -5000,6 +6602,15 @@ func TestGenClear_Generic_ExpectBodyJSONNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().JSON().NotEqual()), + PtrStr("unable to find a step with Expect().Body().JSON().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyJSONNotEqual(t *testing.T) { s := EchoServer() @@ -5030,6 +6641,15 @@ func TestGenClear_Generic_ExpectBodyString(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String()), + PtrStr("unable to find a step with Expect().Body().String()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyStringContains(t *testing.T) { s := EchoServer() @@ -5045,6 +6665,15 @@ func TestGenClear_Generic_ExpectBodyStringContains(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String().Contains()), + PtrStr("unable to find a step with Expect().Body().String().Contains()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyStringContains(t *testing.T) { s := EchoServer() @@ -5075,6 +6704,15 @@ func TestGenClear_Generic_ExpectBodyStringEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String().Equal()), + PtrStr("unable to find a step with Expect().Body().String().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyStringEqual(t *testing.T) { s := EchoServer() @@ -5105,6 +6743,15 @@ func TestGenClear_Generic_ExpectBodyStringLen(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String().Len()), + PtrStr("unable to find a step with Expect().Body().String().Len()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyStringLenBetween(t *testing.T) { s := EchoServer() @@ -5120,6 +6767,15 @@ func TestGenClear_Generic_ExpectBodyStringLenBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String().Len().Between()), + PtrStr("unable to find a step with Expect().Body().String().Len().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyStringLenBetween(t *testing.T) { s := EchoServer() @@ -5150,6 +6806,15 @@ func TestGenClear_Generic_ExpectBodyStringLenEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String().Len().Equal()), + PtrStr("unable to find a step with Expect().Body().String().Len().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyStringLenEqual(t *testing.T) { s := EchoServer() @@ -5180,6 +6845,15 @@ func TestGenClear_Generic_ExpectBodyStringLenGreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String().Len().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().String().Len().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyStringLenGreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -5210,6 +6884,15 @@ func TestGenClear_Generic_ExpectBodyStringLenGreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String().Len().GreaterThan()), + PtrStr("unable to find a step with Expect().Body().String().Len().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyStringLenGreaterThan(t *testing.T) { s := EchoServer() @@ -5240,6 +6923,15 @@ func TestGenClear_Generic_ExpectBodyStringLenLessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String().Len().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().String().Len().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyStringLenLessOrEqualThan(t *testing.T) { s := EchoServer() @@ -5270,6 +6962,15 @@ func TestGenClear_Generic_ExpectBodyStringLenLessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String().Len().LessThan()), + PtrStr("unable to find a step with Expect().Body().String().Len().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyStringLenLessThan(t *testing.T) { s := EchoServer() @@ -5300,6 +7001,15 @@ func TestGenClear_Generic_ExpectBodyStringLenNotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String().Len().NotBetween()), + PtrStr("unable to find a step with Expect().Body().String().Len().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyStringLenNotBetween(t *testing.T) { s := EchoServer() @@ -5330,6 +7040,15 @@ func TestGenClear_Generic_ExpectBodyStringLenNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String().Len().NotEqual()), + PtrStr("unable to find a step with Expect().Body().String().Len().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyStringLenNotEqual(t *testing.T) { s := EchoServer() @@ -5360,6 +7079,15 @@ func TestGenClear_Generic_ExpectBodyStringLenNotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String().Len().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().String().Len().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyStringLenNotOneOf(t *testing.T) { s := EchoServer() @@ -5390,6 +7118,15 @@ func TestGenClear_Generic_ExpectBodyStringLenOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String().Len().OneOf()), + PtrStr("unable to find a step with Expect().Body().String().Len().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyStringLenOneOf(t *testing.T) { s := EchoServer() @@ -5420,6 +7157,15 @@ func TestGenClear_Generic_ExpectBodyStringNotContains(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String().NotContains()), + PtrStr("unable to find a step with Expect().Body().String().NotContains()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyStringNotContains(t *testing.T) { s := EchoServer() @@ -5450,6 +7196,15 @@ func TestGenClear_Generic_ExpectBodyStringNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String().NotEqual()), + PtrStr("unable to find a step with Expect().Body().String().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyStringNotEqual(t *testing.T) { s := EchoServer() @@ -5480,6 +7235,15 @@ func TestGenClear_Generic_ExpectBodyStringNotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().String().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyStringNotOneOf(t *testing.T) { s := EchoServer() @@ -5510,6 +7274,15 @@ func TestGenClear_Generic_ExpectBodyStringOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().String().OneOf()), + PtrStr("unable to find a step with Expect().Body().String().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyStringOneOf(t *testing.T) { s := EchoServer() @@ -5540,6 +7313,15 @@ func TestGenClear_Generic_ExpectBodyUint(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint()), + PtrStr("unable to find a step with Expect().Body().Uint()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyUintBetween(t *testing.T) { s := EchoServer() @@ -5555,6 +7337,15 @@ func TestGenClear_Generic_ExpectBodyUintBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint().Between()), + PtrStr("unable to find a step with Expect().Body().Uint().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUintBetween(t *testing.T) { s := EchoServer() @@ -5585,6 +7376,15 @@ func TestGenClear_Generic_ExpectBodyUintEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint().Equal()), + PtrStr("unable to find a step with Expect().Body().Uint().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUintEqual(t *testing.T) { s := EchoServer() @@ -5615,6 +7415,15 @@ func TestGenClear_Generic_ExpectBodyUintGreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Uint().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUintGreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -5645,6 +7454,15 @@ func TestGenClear_Generic_ExpectBodyUintGreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint().GreaterThan()), + PtrStr("unable to find a step with Expect().Body().Uint().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUintGreaterThan(t *testing.T) { s := EchoServer() @@ -5675,6 +7493,15 @@ func TestGenClear_Generic_ExpectBodyUintLessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Uint().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUintLessOrEqualThan(t *testing.T) { s := EchoServer() @@ -5705,6 +7532,15 @@ func TestGenClear_Generic_ExpectBodyUintLessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint().LessThan()), + PtrStr("unable to find a step with Expect().Body().Uint().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUintLessThan(t *testing.T) { s := EchoServer() @@ -5735,6 +7571,15 @@ func TestGenClear_Generic_ExpectBodyUintNotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint().NotBetween()), + PtrStr("unable to find a step with Expect().Body().Uint().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUintNotBetween(t *testing.T) { s := EchoServer() @@ -5765,6 +7610,15 @@ func TestGenClear_Generic_ExpectBodyUintNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint().NotEqual()), + PtrStr("unable to find a step with Expect().Body().Uint().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUintNotEqual(t *testing.T) { s := EchoServer() @@ -5795,6 +7649,15 @@ func TestGenClear_Generic_ExpectBodyUintNotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().Uint().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUintNotOneOf(t *testing.T) { s := EchoServer() @@ -5825,6 +7688,15 @@ func TestGenClear_Generic_ExpectBodyUintOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint().OneOf()), + PtrStr("unable to find a step with Expect().Body().Uint().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUintOneOf(t *testing.T) { s := EchoServer() @@ -5855,6 +7727,15 @@ func TestGenClear_Generic_ExpectBodyUint16(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint16()), + PtrStr("unable to find a step with Expect().Body().Uint16()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyUint16Between(t *testing.T) { s := EchoServer() @@ -5870,6 +7751,15 @@ func TestGenClear_Generic_ExpectBodyUint16Between(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint16().Between()), + PtrStr("unable to find a step with Expect().Body().Uint16().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint16Between(t *testing.T) { s := EchoServer() @@ -5900,6 +7790,15 @@ func TestGenClear_Generic_ExpectBodyUint16Equal(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint16().Equal()), + PtrStr("unable to find a step with Expect().Body().Uint16().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint16Equal(t *testing.T) { s := EchoServer() @@ -5930,6 +7829,15 @@ func TestGenClear_Generic_ExpectBodyUint16GreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint16().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Uint16().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint16GreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -5960,6 +7868,15 @@ func TestGenClear_Generic_ExpectBodyUint16GreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint16().GreaterThan()), + PtrStr("unable to find a step with Expect().Body().Uint16().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint16GreaterThan(t *testing.T) { s := EchoServer() @@ -5990,6 +7907,15 @@ func TestGenClear_Generic_ExpectBodyUint16LessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint16().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Uint16().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint16LessOrEqualThan(t *testing.T) { s := EchoServer() @@ -6020,6 +7946,15 @@ func TestGenClear_Generic_ExpectBodyUint16LessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint16().LessThan()), + PtrStr("unable to find a step with Expect().Body().Uint16().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint16LessThan(t *testing.T) { s := EchoServer() @@ -6050,6 +7985,15 @@ func TestGenClear_Generic_ExpectBodyUint16NotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint16().NotBetween()), + PtrStr("unable to find a step with Expect().Body().Uint16().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint16NotBetween(t *testing.T) { s := EchoServer() @@ -6080,6 +8024,15 @@ func TestGenClear_Generic_ExpectBodyUint16NotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint16().NotEqual()), + PtrStr("unable to find a step with Expect().Body().Uint16().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint16NotEqual(t *testing.T) { s := EchoServer() @@ -6110,6 +8063,15 @@ func TestGenClear_Generic_ExpectBodyUint16NotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint16().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().Uint16().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint16NotOneOf(t *testing.T) { s := EchoServer() @@ -6140,6 +8102,15 @@ func TestGenClear_Generic_ExpectBodyUint16OneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint16().OneOf()), + PtrStr("unable to find a step with Expect().Body().Uint16().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint16OneOf(t *testing.T) { s := EchoServer() @@ -6170,6 +8141,15 @@ func TestGenClear_Generic_ExpectBodyUint32(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint32()), + PtrStr("unable to find a step with Expect().Body().Uint32()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyUint32Between(t *testing.T) { s := EchoServer() @@ -6185,6 +8165,15 @@ func TestGenClear_Generic_ExpectBodyUint32Between(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint32().Between()), + PtrStr("unable to find a step with Expect().Body().Uint32().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint32Between(t *testing.T) { s := EchoServer() @@ -6215,6 +8204,15 @@ func TestGenClear_Generic_ExpectBodyUint32Equal(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint32().Equal()), + PtrStr("unable to find a step with Expect().Body().Uint32().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint32Equal(t *testing.T) { s := EchoServer() @@ -6245,6 +8243,15 @@ func TestGenClear_Generic_ExpectBodyUint32GreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint32().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Uint32().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint32GreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -6275,6 +8282,15 @@ func TestGenClear_Generic_ExpectBodyUint32GreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint32().GreaterThan()), + PtrStr("unable to find a step with Expect().Body().Uint32().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint32GreaterThan(t *testing.T) { s := EchoServer() @@ -6305,6 +8321,15 @@ func TestGenClear_Generic_ExpectBodyUint32LessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint32().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Uint32().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint32LessOrEqualThan(t *testing.T) { s := EchoServer() @@ -6335,6 +8360,15 @@ func TestGenClear_Generic_ExpectBodyUint32LessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint32().LessThan()), + PtrStr("unable to find a step with Expect().Body().Uint32().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint32LessThan(t *testing.T) { s := EchoServer() @@ -6365,6 +8399,15 @@ func TestGenClear_Generic_ExpectBodyUint32NotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint32().NotBetween()), + PtrStr("unable to find a step with Expect().Body().Uint32().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint32NotBetween(t *testing.T) { s := EchoServer() @@ -6395,6 +8438,15 @@ func TestGenClear_Generic_ExpectBodyUint32NotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint32().NotEqual()), + PtrStr("unable to find a step with Expect().Body().Uint32().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint32NotEqual(t *testing.T) { s := EchoServer() @@ -6425,6 +8477,15 @@ func TestGenClear_Generic_ExpectBodyUint32NotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint32().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().Uint32().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint32NotOneOf(t *testing.T) { s := EchoServer() @@ -6455,6 +8516,15 @@ func TestGenClear_Generic_ExpectBodyUint32OneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint32().OneOf()), + PtrStr("unable to find a step with Expect().Body().Uint32().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint32OneOf(t *testing.T) { s := EchoServer() @@ -6485,6 +8555,15 @@ func TestGenClear_Generic_ExpectBodyUint64(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint64()), + PtrStr("unable to find a step with Expect().Body().Uint64()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyUint64Between(t *testing.T) { s := EchoServer() @@ -6500,6 +8579,15 @@ func TestGenClear_Generic_ExpectBodyUint64Between(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint64().Between()), + PtrStr("unable to find a step with Expect().Body().Uint64().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint64Between(t *testing.T) { s := EchoServer() @@ -6530,6 +8618,15 @@ func TestGenClear_Generic_ExpectBodyUint64Equal(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint64().Equal()), + PtrStr("unable to find a step with Expect().Body().Uint64().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint64Equal(t *testing.T) { s := EchoServer() @@ -6560,6 +8657,15 @@ func TestGenClear_Generic_ExpectBodyUint64GreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint64().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Uint64().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint64GreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -6590,6 +8696,15 @@ func TestGenClear_Generic_ExpectBodyUint64GreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint64().GreaterThan()), + PtrStr("unable to find a step with Expect().Body().Uint64().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint64GreaterThan(t *testing.T) { s := EchoServer() @@ -6620,6 +8735,15 @@ func TestGenClear_Generic_ExpectBodyUint64LessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint64().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Uint64().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint64LessOrEqualThan(t *testing.T) { s := EchoServer() @@ -6650,6 +8774,15 @@ func TestGenClear_Generic_ExpectBodyUint64LessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint64().LessThan()), + PtrStr("unable to find a step with Expect().Body().Uint64().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint64LessThan(t *testing.T) { s := EchoServer() @@ -6680,6 +8813,15 @@ func TestGenClear_Generic_ExpectBodyUint64NotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint64().NotBetween()), + PtrStr("unable to find a step with Expect().Body().Uint64().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint64NotBetween(t *testing.T) { s := EchoServer() @@ -6710,6 +8852,15 @@ func TestGenClear_Generic_ExpectBodyUint64NotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint64().NotEqual()), + PtrStr("unable to find a step with Expect().Body().Uint64().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint64NotEqual(t *testing.T) { s := EchoServer() @@ -6740,6 +8891,15 @@ func TestGenClear_Generic_ExpectBodyUint64NotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint64().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().Uint64().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint64NotOneOf(t *testing.T) { s := EchoServer() @@ -6770,6 +8930,15 @@ func TestGenClear_Generic_ExpectBodyUint64OneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint64().OneOf()), + PtrStr("unable to find a step with Expect().Body().Uint64().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint64OneOf(t *testing.T) { s := EchoServer() @@ -6800,6 +8969,15 @@ func TestGenClear_Generic_ExpectBodyUint8(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint8()), + PtrStr("unable to find a step with Expect().Body().Uint8()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectBodyUint8Between(t *testing.T) { s := EchoServer() @@ -6815,6 +8993,15 @@ func TestGenClear_Generic_ExpectBodyUint8Between(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint8().Between()), + PtrStr("unable to find a step with Expect().Body().Uint8().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint8Between(t *testing.T) { s := EchoServer() @@ -6845,6 +9032,15 @@ func TestGenClear_Generic_ExpectBodyUint8Equal(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint8().Equal()), + PtrStr("unable to find a step with Expect().Body().Uint8().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint8Equal(t *testing.T) { s := EchoServer() @@ -6875,6 +9071,15 @@ func TestGenClear_Generic_ExpectBodyUint8GreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint8().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Uint8().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint8GreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -6905,6 +9110,15 @@ func TestGenClear_Generic_ExpectBodyUint8GreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint8().GreaterThan()), + PtrStr("unable to find a step with Expect().Body().Uint8().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint8GreaterThan(t *testing.T) { s := EchoServer() @@ -6935,6 +9149,15 @@ func TestGenClear_Generic_ExpectBodyUint8LessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint8().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Body().Uint8().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint8LessOrEqualThan(t *testing.T) { s := EchoServer() @@ -6965,6 +9188,15 @@ func TestGenClear_Generic_ExpectBodyUint8LessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint8().LessThan()), + PtrStr("unable to find a step with Expect().Body().Uint8().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint8LessThan(t *testing.T) { s := EchoServer() @@ -6995,6 +9227,15 @@ func TestGenClear_Generic_ExpectBodyUint8NotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint8().NotBetween()), + PtrStr("unable to find a step with Expect().Body().Uint8().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint8NotBetween(t *testing.T) { s := EchoServer() @@ -7025,6 +9266,15 @@ func TestGenClear_Generic_ExpectBodyUint8NotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint8().NotEqual()), + PtrStr("unable to find a step with Expect().Body().Uint8().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint8NotEqual(t *testing.T) { s := EchoServer() @@ -7055,6 +9305,15 @@ func TestGenClear_Generic_ExpectBodyUint8NotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint8().NotOneOf()), + PtrStr("unable to find a step with Expect().Body().Uint8().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint8NotOneOf(t *testing.T) { s := EchoServer() @@ -7085,6 +9344,15 @@ func TestGenClear_Generic_ExpectBodyUint8OneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Body().Uint8().OneOf()), + PtrStr("unable to find a step with Expect().Body().Uint8().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectBodyUint8OneOf(t *testing.T) { s := EchoServer() @@ -7115,6 +9383,15 @@ func TestGenClear_Generic_ExpectHeaders(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers()), + PtrStr("unable to find a step with Expect().Headers()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectHeadersContains(t *testing.T) { s := EchoServer() @@ -7130,6 +9407,15 @@ func TestGenClear_Generic_ExpectHeadersContains(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().Contains()), + PtrStr("unable to find a step with Expect().Headers().Contains()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersContains(t *testing.T) { s := EchoServer() @@ -7160,6 +9446,15 @@ func TestGenClear_Generic_ExpectHeadersEmpty(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().Empty()), + PtrStr("unable to find a step with Expect().Headers().Empty()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersEmpty(t *testing.T) { s := EchoServer() @@ -7190,6 +9485,15 @@ func TestGenClear_Generic_ExpectHeadersEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().Equal()), + PtrStr("unable to find a step with Expect().Headers().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersEqual(t *testing.T) { s := EchoServer() @@ -7220,6 +9524,15 @@ func TestGenClear_Generic_ExpectHeadersLen(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().Len()), + PtrStr("unable to find a step with Expect().Headers().Len()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectHeadersLenBetween(t *testing.T) { s := EchoServer() @@ -7235,6 +9548,15 @@ func TestGenClear_Generic_ExpectHeadersLenBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().Len().Between()), + PtrStr("unable to find a step with Expect().Headers().Len().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersLenBetween(t *testing.T) { s := EchoServer() @@ -7265,6 +9587,15 @@ func TestGenClear_Generic_ExpectHeadersLenEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().Len().Equal()), + PtrStr("unable to find a step with Expect().Headers().Len().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersLenEqual(t *testing.T) { s := EchoServer() @@ -7295,6 +9626,15 @@ func TestGenClear_Generic_ExpectHeadersLenGreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().Len().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Headers().Len().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersLenGreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -7325,6 +9665,15 @@ func TestGenClear_Generic_ExpectHeadersLenGreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().Len().GreaterThan()), + PtrStr("unable to find a step with Expect().Headers().Len().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersLenGreaterThan(t *testing.T) { s := EchoServer() @@ -7355,6 +9704,15 @@ func TestGenClear_Generic_ExpectHeadersLenLessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().Len().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Headers().Len().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersLenLessOrEqualThan(t *testing.T) { s := EchoServer() @@ -7385,6 +9743,15 @@ func TestGenClear_Generic_ExpectHeadersLenLessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().Len().LessThan()), + PtrStr("unable to find a step with Expect().Headers().Len().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersLenLessThan(t *testing.T) { s := EchoServer() @@ -7415,6 +9782,15 @@ func TestGenClear_Generic_ExpectHeadersLenNotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().Len().NotBetween()), + PtrStr("unable to find a step with Expect().Headers().Len().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersLenNotBetween(t *testing.T) { s := EchoServer() @@ -7445,6 +9821,15 @@ func TestGenClear_Generic_ExpectHeadersLenNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().Len().NotEqual()), + PtrStr("unable to find a step with Expect().Headers().Len().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersLenNotEqual(t *testing.T) { s := EchoServer() @@ -7475,6 +9860,15 @@ func TestGenClear_Generic_ExpectHeadersLenNotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().Len().NotOneOf()), + PtrStr("unable to find a step with Expect().Headers().Len().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersLenNotOneOf(t *testing.T) { s := EchoServer() @@ -7505,6 +9899,15 @@ func TestGenClear_Generic_ExpectHeadersLenOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().Len().OneOf()), + PtrStr("unable to find a step with Expect().Headers().Len().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersLenOneOf(t *testing.T) { s := EchoServer() @@ -7535,6 +9938,15 @@ func TestGenClear_Generic_ExpectHeadersNotContains(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().NotContains()), + PtrStr("unable to find a step with Expect().Headers().NotContains()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersNotContains(t *testing.T) { s := EchoServer() @@ -7565,6 +9977,15 @@ func TestGenClear_Generic_ExpectHeadersNotEmpty(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().NotEmpty()), + PtrStr("unable to find a step with Expect().Headers().NotEmpty()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersNotEmpty(t *testing.T) { s := EchoServer() @@ -7595,6 +10016,15 @@ func TestGenClear_Generic_ExpectHeadersNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().NotEqual()), + PtrStr("unable to find a step with Expect().Headers().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersNotEqual(t *testing.T) { s := EchoServer() @@ -7625,6 +10055,15 @@ func TestGenClear_Generic_ExpectHeadersNotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().NotOneOf()), + PtrStr("unable to find a step with Expect().Headers().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersNotOneOf(t *testing.T) { s := EchoServer() @@ -7655,6 +10094,15 @@ func TestGenClear_Generic_ExpectHeadersOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Headers().OneOf()), + PtrStr("unable to find a step with Expect().Headers().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectHeadersOneOf(t *testing.T) { s := EchoServer() @@ -7685,6 +10133,15 @@ func TestGenClear_Generic_ExpectStatus(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Status()), + PtrStr("unable to find a step with Expect().Status()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectStatusBetween(t *testing.T) { s := EchoServer() @@ -7700,6 +10157,15 @@ func TestGenClear_Generic_ExpectStatusBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Status().Between()), + PtrStr("unable to find a step with Expect().Status().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectStatusBetween(t *testing.T) { s := EchoServer() @@ -7730,6 +10196,15 @@ func TestGenClear_Generic_ExpectStatusEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Status().Equal()), + PtrStr("unable to find a step with Expect().Status().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectStatusEqual(t *testing.T) { s := EchoServer() @@ -7760,6 +10235,15 @@ func TestGenClear_Generic_ExpectStatusGreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Status().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Status().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectStatusGreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -7790,6 +10274,15 @@ func TestGenClear_Generic_ExpectStatusGreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Status().GreaterThan()), + PtrStr("unable to find a step with Expect().Status().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectStatusGreaterThan(t *testing.T) { s := EchoServer() @@ -7820,6 +10313,15 @@ func TestGenClear_Generic_ExpectStatusLessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Status().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Status().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectStatusLessOrEqualThan(t *testing.T) { s := EchoServer() @@ -7850,6 +10352,15 @@ func TestGenClear_Generic_ExpectStatusLessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Status().LessThan()), + PtrStr("unable to find a step with Expect().Status().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectStatusLessThan(t *testing.T) { s := EchoServer() @@ -7880,6 +10391,15 @@ func TestGenClear_Generic_ExpectStatusNotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Status().NotBetween()), + PtrStr("unable to find a step with Expect().Status().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectStatusNotBetween(t *testing.T) { s := EchoServer() @@ -7910,6 +10430,15 @@ func TestGenClear_Generic_ExpectStatusNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Status().NotEqual()), + PtrStr("unable to find a step with Expect().Status().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectStatusNotEqual(t *testing.T) { s := EchoServer() @@ -7940,6 +10469,15 @@ func TestGenClear_Generic_ExpectStatusNotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Status().NotOneOf()), + PtrStr("unable to find a step with Expect().Status().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectStatusNotOneOf(t *testing.T) { s := EchoServer() @@ -7970,6 +10508,15 @@ func TestGenClear_Generic_ExpectStatusOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Status().OneOf()), + PtrStr("unable to find a step with Expect().Status().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectStatusOneOf(t *testing.T) { s := EchoServer() @@ -8000,6 +10547,15 @@ func TestGenClear_Generic_ExpectTrailers(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers()), + PtrStr("unable to find a step with Expect().Trailers()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectTrailersContains(t *testing.T) { s := EchoServer() @@ -8015,6 +10571,15 @@ func TestGenClear_Generic_ExpectTrailersContains(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().Contains()), + PtrStr("unable to find a step with Expect().Trailers().Contains()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersContains(t *testing.T) { s := EchoServer() @@ -8045,6 +10610,15 @@ func TestGenClear_Generic_ExpectTrailersEmpty(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().Empty()), + PtrStr("unable to find a step with Expect().Trailers().Empty()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersEmpty(t *testing.T) { s := EchoServer() @@ -8075,6 +10649,15 @@ func TestGenClear_Generic_ExpectTrailersEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().Equal()), + PtrStr("unable to find a step with Expect().Trailers().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersEqual(t *testing.T) { s := EchoServer() @@ -8105,6 +10688,15 @@ func TestGenClear_Generic_ExpectTrailersLen(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().Len()), + PtrStr("unable to find a step with Expect().Trailers().Len()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Generic_ExpectTrailersLenBetween(t *testing.T) { s := EchoServer() @@ -8120,6 +10712,15 @@ func TestGenClear_Generic_ExpectTrailersLenBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().Len().Between()), + PtrStr("unable to find a step with Expect().Trailers().Len().Between()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersLenBetween(t *testing.T) { s := EchoServer() @@ -8150,6 +10751,15 @@ func TestGenClear_Generic_ExpectTrailersLenEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().Len().Equal()), + PtrStr("unable to find a step with Expect().Trailers().Len().Equal()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersLenEqual(t *testing.T) { s := EchoServer() @@ -8180,6 +10790,15 @@ func TestGenClear_Generic_ExpectTrailersLenGreaterOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().Len().GreaterOrEqualThan()), + PtrStr("unable to find a step with Expect().Trailers().Len().GreaterOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersLenGreaterOrEqualThan(t *testing.T) { s := EchoServer() @@ -8210,6 +10829,15 @@ func TestGenClear_Generic_ExpectTrailersLenGreaterThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().Len().GreaterThan()), + PtrStr("unable to find a step with Expect().Trailers().Len().GreaterThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersLenGreaterThan(t *testing.T) { s := EchoServer() @@ -8240,6 +10868,15 @@ func TestGenClear_Generic_ExpectTrailersLenLessOrEqualThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().Len().LessOrEqualThan()), + PtrStr("unable to find a step with Expect().Trailers().Len().LessOrEqualThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersLenLessOrEqualThan(t *testing.T) { s := EchoServer() @@ -8270,6 +10907,15 @@ func TestGenClear_Generic_ExpectTrailersLenLessThan(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().Len().LessThan()), + PtrStr("unable to find a step with Expect().Trailers().Len().LessThan()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersLenLessThan(t *testing.T) { s := EchoServer() @@ -8300,6 +10946,15 @@ func TestGenClear_Generic_ExpectTrailersLenNotBetween(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().Len().NotBetween()), + PtrStr("unable to find a step with Expect().Trailers().Len().NotBetween()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersLenNotBetween(t *testing.T) { s := EchoServer() @@ -8330,6 +10985,15 @@ func TestGenClear_Generic_ExpectTrailersLenNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().Len().NotEqual()), + PtrStr("unable to find a step with Expect().Trailers().Len().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersLenNotEqual(t *testing.T) { s := EchoServer() @@ -8360,6 +11024,15 @@ func TestGenClear_Generic_ExpectTrailersLenNotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().Len().NotOneOf()), + PtrStr("unable to find a step with Expect().Trailers().Len().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersLenNotOneOf(t *testing.T) { s := EchoServer() @@ -8390,6 +11063,15 @@ func TestGenClear_Generic_ExpectTrailersLenOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().Len().OneOf()), + PtrStr("unable to find a step with Expect().Trailers().Len().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersLenOneOf(t *testing.T) { s := EchoServer() @@ -8420,6 +11102,15 @@ func TestGenClear_Generic_ExpectTrailersNotContains(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().NotContains()), + PtrStr("unable to find a step with Expect().Trailers().NotContains()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersNotContains(t *testing.T) { s := EchoServer() @@ -8450,6 +11141,15 @@ func TestGenClear_Generic_ExpectTrailersNotEmpty(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().NotEmpty()), + PtrStr("unable to find a step with Expect().Trailers().NotEmpty()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersNotEmpty(t *testing.T) { s := EchoServer() @@ -8480,6 +11180,15 @@ func TestGenClear_Generic_ExpectTrailersNotEqual(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().NotEqual()), + PtrStr("unable to find a step with Expect().Trailers().NotEqual()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersNotEqual(t *testing.T) { s := EchoServer() @@ -8510,6 +11219,15 @@ func TestGenClear_Generic_ExpectTrailersNotOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().NotOneOf()), + PtrStr("unable to find a step with Expect().Trailers().NotOneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersNotOneOf(t *testing.T) { s := EchoServer() @@ -8540,6 +11258,15 @@ func TestGenClear_Generic_ExpectTrailersOneOf(t *testing.T) { expectSteps(t, &steps, 2)), PtrStr("TestOK"), ) + // test unable to find a step + ExpectError(t, + Do( + Post(s.URL), + Clear().Expect().Trailers().OneOf()), + PtrStr("unable to find a step with Expect().Trailers().OneOf()"), + PtrStr("got these steps:"), + PtrStr("Post()"), + ) } func TestGenClear_Specific_ExpectTrailersOneOf(t *testing.T) { s := EchoServer() diff --git a/clearpath_test.go b/clearpath_test.go index 5cef34db..2898dae8 100644 --- a/clearpath_test.go +++ b/clearpath_test.go @@ -1,6 +1,11 @@ package hit -import "testing" +import ( + "bytes" + "crypto/rand" + "io" + "testing" +) func TestClearPath_Contains(t *testing.T) { tests := []struct { @@ -28,3 +33,43 @@ func TestClearPath_Contains(t *testing.T) { }) } } + +func TestClearPath_ContainsFunc(t *testing.T) { + f1 := func(Hit) {} + f2 := func(Hit) {} + tests := []struct { + haystack callPath + needle callPath + want bool + }{ + {newCallPath("Foo", []interface{}{f1}), newCallPath("Foo", []interface{}{f1}), true}, + {newCallPath("Foo", []interface{}{f2}), newCallPath("Foo", []interface{}{f1}), false}, + } + for _, tt := range tests { + t.Run("", func(t *testing.T) { + if got := tt.haystack.Contains(tt.needle); got != tt.want { + t.Errorf("Contains() = %v, want %v", got, tt.want) + } + }) + } +} + +func TestClearPath_ContainsReader(t *testing.T) { + var r1 io.Reader = bytes.NewReader(nil) + r2 := rand.Reader + tests := []struct { + haystack callPath + needle callPath + want bool + }{ + {newCallPath("Foo", []interface{}{r1}), newCallPath("Foo", []interface{}{r1}), true}, + {newCallPath("Foo", []interface{}{r2}), newCallPath("Foo", []interface{}{r1}), false}, + } + for _, tt := range tests { + t.Run("", func(t *testing.T) { + if got := tt.haystack.Contains(tt.needle); got != tt.want { + t.Errorf("Contains() = %v, want %v", got, tt.want) + } + }) + } +} diff --git a/generators/clear/tests/clear_tests.go b/generators/clear/tests/clear_tests.go index b706ea8f..688d24e0 100644 --- a/generators/clear/tests/clear_tests.go +++ b/generators/clear/tests/clear_tests.go @@ -1,6 +1,7 @@ package main import ( + "bytes" "errors" "log" "reflect" @@ -162,10 +163,16 @@ func generateForStruct(f *jen.File, options generateOpts) error { var defaultStmtLine *jen.Statement var sampleStmtLine *jen.Statement + var genericLine *jen.Statement clearGenericLine := jen.Id("Clear").Call() clearDefaultLine := jen.Id("Clear").Call() for _, s := range options.CallPath { + if genericLine == nil { + genericLine = jen.Id(s.Name).Call() + } else { + genericLine = genericLine.Dot(s.Name).Call() + } clearGenericLine = clearGenericLine.Dot(s.Name).Call() clearDefaultLine = clearDefaultLine.Dot(s.Name).Call(s.Args...) if defaultStmtLine == nil { @@ -220,6 +227,11 @@ func generateForStruct(f *jen.File, options generateOpts) error { } } + var genericLineRepresentation bytes.Buffer + if err := genericLine.Render(&genericLineRepresentation); err != nil { + return err + } + f.Func(). Id(fmt.Sprintf("TestGenClear_Generic_%s", options.CallPath.Join(""))). Params(jen.Id("t").Op("*").Qual("testing", "T")). @@ -240,6 +252,19 @@ func generateForStruct(f *jen.File, options generateOpts) error { jen.Line().Id("PtrStr").Call(jen.Lit("TestOK")), jen.Line(), ), + + jen.Comment("test unable to find a step"), + jen.Id("ExpectError").Call( + jen.Id("t"), + jen.Line().Id("Do").Call( + jen.Line().Id("Post").Call(jen.Id("s").Dot("URL")), + jen.Line().Add(clearGenericLine), + ), + jen.Line().Id("PtrStr").Call(jen.Lit("unable to find a step with "+genericLineRepresentation.String())), + jen.Line().Id("PtrStr").Call(jen.Lit("got these steps:")), + jen.Line().Id("PtrStr").Call(jen.Lit("Post()")), + jen.Line(), + ), ) if specificTest { diff --git a/store_header_trailers_test.go b/store_header_trailers_test.go index ea4530f9..b08d9c87 100644 --- a/store_header_trailers_test.go +++ b/store_header_trailers_test.go @@ -57,6 +57,29 @@ func TestStoreHeadersTrailers(t *testing.T) { "X-Mixed": []string{"3.0", "4", "Foo"}, }, v) }) + + t.Run("nil", func(t *testing.T) { + ExpectError(t, + Do( + Get(s.URL), + mockHeadersAndTrailers(), + store().In(nil), + ), + PtrStr("destination type cannot be nil"), + ) + }) + + t.Run("not a pointer", func(t *testing.T) { + var v map[string]interface{} + ExpectError(t, + Do( + Get(s.URL), + mockHeadersAndTrailers(), + store().In(v), + ), + PtrStr("destination must be a pointer"), + ) + }) }) t.Run("specific header", func(t *testing.T) { @@ -126,6 +149,29 @@ func TestStoreHeadersTrailers(t *testing.T) { PtrStr(`could not put []string{"Hello", "World"} into *string`), ) }) + + t.Run("nil", func(t *testing.T) { + ExpectError(t, + Do( + Get(s.URL), + mockHeadersAndTrailers(), + store("X-Strings").In(nil), + ), + PtrStr("destination type cannot be nil"), + ) + }) + + t.Run("not a pointer", func(t *testing.T) { + var v []string + ExpectError(t, + Do( + Get(s.URL), + mockHeadersAndTrailers(), + store("X-Strings").In(v), + ), + PtrStr("destination must be a pointer"), + ) + }) }) }) }