nyaruka / gocommon

Common utility library for the TextIt platform.
Other
7 stars 11 forks source link

Allow http mocks in JSON to use actual JSON for the body #43

Closed rowanseymour closed 3 years ago

rowanseymour commented 3 years ago

So we can write..

{"status": 202, "body": {"foo": "bar"}}

instead of..

{"status": 202, "body": "{\"foo\": \"bar\"}"}

when bodies are JSON

codecov[bot] commented 3 years ago

Codecov Report

Merging #43 (1253dfc) into main (eff17c7) will increase coverage by 0.19%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #43      +/-   ##
==========================================
+ Coverage   88.36%   88.55%   +0.19%     
==========================================
  Files          19       19              
  Lines         662      673      +11     
==========================================
+ Hits          585      596      +11     
  Misses         47       47              
  Partials       30       30              
Impacted Files Coverage Δ
httpx/mock.go 88.13% <100.00%> (+2.71%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update eff17c7...1253dfc. Read the comment docs.