• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

NFIBrokerage / spear / eb8d5b68d7a0106202bdda13040c788d039111e0 / 1
100%
main: 100%

Build:
DEFAULT BRANCH: main
Ran 09 May 2024 07:12PM UTC
Files 30
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 May 2024 07:11PM UTC coverage: 99.859% (-0.1%) from 100.0%
eb8d5b68d7a0106202bdda13040c788d039111e0.1

push

github

web-flow
fix: `Spear.append/3` `raw?: true` raw return (#97)

Issue #96

Passing a `raw?: true` option to `Spear.append/3` or `Spear.Client/append`
continued to return `:ok` instead of `{:ok, AppendResp.t()}`.

This contradicted the docs and the `Spear.append_batch/5` behaviour.

Solution:

This commit adds the conditional case in `Spear.append/3`
to return `{:ok, AppendResp.t()}` when `raw?` is `true`.

`Spear.Client.append` will also be fixed as a result.

Additional Notes:

* Added to `SpearTest`: to test `append/3` for both raw true and false
* Added to `SpearTest`: to test `append_batch/5` for both raw true and false.
* Updated the `Spear.append/3` type spec to add the missing
  `{:ok, AppendResp.t()}` return type.
* Updated the `Spear.Client.append/3` and `Spear.Client.append/4`
  callback specs to add the missing `{:ok, AppendResp.t()}` return type.

710 of 711 relevant lines covered (99.86%)

72.56 hits per line

Source Files on job eb8d5b68d7a0106202bdda13040c788d039111e0.1
  • Tree
  • List 30
  • Changed 17
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 0
  • eb8d5b68 on github
  • Prev Job for on main (#a08dfa90d210ded99dbe5dbcbc9e0fc0f3af0996.1)
  • Next Job for on main (#37b46bb6cae5faba686b5d3145df31d6d2c643db.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc