pact-foundation / pact-go

Golang version of Pact. Pact is a contract testing framework for HTTP APIs and non-HTTP asynchronous messaging systems.
http://pact.io
MIT License
828 stars 103 forks source link

Allow empty response #383

Closed stan-is-hate closed 3 months ago

stan-is-hate commented 3 months ago

This PR allows empty message responses. One use case is grpc error responses, where you might want to ensure the server responded with no message but just the status.

TODOs:

coveralls commented 3 months ago

Coverage Status

coverage: 37.243% (+0.04%) from 37.2% when pulling 74c30a175ca4fc04430d19a437f7790777e2ddf0 on stan-is-hate:allow-empty into f04022c1c662126bba6e360e999ba29875affe30 on pact-foundation:master.

stan-is-hate commented 3 months ago

I'll close this one if you don't mind - I messed up the rebases and it's more hassle than it's worth to untangle them. I've opened #386 using a patch instead, so that one has a single commit :)