@@ -254,7 +254,7 @@ func Test_Parser_Request_Header(t *testing.T) {
254
254
255
255
err := parserRequestHeader (client , req )
256
256
require .NoError (t , err )
257
- require .Equal (t , []byte (applicationJSON ), req .RawRequest .Header .ContentType ())
257
+ require .Equal (t , []byte (applicationJSON ), req .RawRequest .Header .ContentType ()) //nolint:testifylint // test
258
258
})
259
259
260
260
t .Run ("auto set xml header" , func (t * testing.T ) {
@@ -297,8 +297,8 @@ func Test_Parser_Request_Header(t *testing.T) {
297
297
298
298
err := parserRequestHeader (client , req )
299
299
require .NoError (t , err )
300
- require .True (t , strings . Contains ( string (req .RawRequest .Header .MultipartFormBoundary ()), "--FiberFormBoundary" ) )
301
- require .True (t , strings . Contains ( string (req .RawRequest .Header .ContentType ()), multipartFormData ) )
300
+ require .Contains (t , string (req .RawRequest .Header .MultipartFormBoundary ()), "--FiberFormBoundary" )
301
+ require .Contains (t , string (req .RawRequest .Header .ContentType ()), multipartFormData )
302
302
})
303
303
304
304
t .Run ("ua should have default value" , func (t * testing.T ) {
@@ -436,7 +436,7 @@ func Test_Parser_Request_Body(t *testing.T) {
436
436
437
437
err := parserRequestBody (client , req )
438
438
require .NoError (t , err )
439
- require .Equal (t , []byte ("{\" name\" :\" foo\" }" ), req .RawRequest .Body ())
439
+ require .Equal (t , []byte ("{\" name\" :\" foo\" }" ), req .RawRequest .Body ()) //nolint:testifylint // test
440
440
})
441
441
442
442
t .Run ("xml body" , func (t * testing.T ) {
@@ -489,8 +489,8 @@ func Test_Parser_Request_Body(t *testing.T) {
489
489
490
490
err := parserRequestBody (client , req )
491
491
require .NoError (t , err )
492
- require .True (t , strings . Contains ( string (req .RawRequest .Body ()), "----FiberFormBoundary" ) )
493
- require .True (t , strings . Contains ( string (req .RawRequest .Body ()), "world" ) )
492
+ require .Contains (t , string (req .RawRequest .Body ()), "----FiberFormBoundary" )
493
+ require .Contains (t , string (req .RawRequest .Body ()), "world" )
494
494
})
495
495
496
496
t .Run ("file and form data" , func (t * testing.T ) {
@@ -502,9 +502,9 @@ func Test_Parser_Request_Body(t *testing.T) {
502
502
503
503
err := parserRequestBody (client , req )
504
504
require .NoError (t , err )
505
- require .True (t , strings . Contains ( string (req .RawRequest .Body ()), "----FiberFormBoundary" ) )
506
- require .True (t , strings . Contains ( string (req .RawRequest .Body ()), "world" ) )
507
- require .True (t , strings . Contains ( string (req .RawRequest .Body ()), "bar" ) )
505
+ require .Contains (t , string (req .RawRequest .Body ()), "----FiberFormBoundary" )
506
+ require .Contains (t , string (req .RawRequest .Body ()), "world" )
507
+ require .Contains (t , string (req .RawRequest .Body ()), "bar" )
508
508
})
509
509
510
510
t .Run ("raw body" , func (t * testing.T ) {
0 commit comments