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

NFIBrokerage / spear / 77dabbb565b9cd1631c2ffeb86e4e01e75d9d6c1-PR-97
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: test-ci
DEFAULT BRANCH: main
Ran 03 May 2024 01:40PM UTC
Jobs 1
Files 30
Run time 1min
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

02 May 2024 09:32PM UTC coverage: 100.0%. Remained the same
77dabbb565b9cd1631c2ffeb86e4e01e75d9d6c1-PR-97

Pull #97

github

byu
fix: `Spear.append/3` `raw?: true` raw return

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.
Pull Request #97: fix: `Spear.append/3` `raw?: true` raw return

2 of 2 new or added lines in 1 file covered. (100.0%)

711 of 711 relevant lines covered (100.0%)

267.46 hits per line

Jobs
ID Job ID Ran Files Coverage
1 77dabbb565b9cd1631c2ffeb86e4e01e75d9d6c1-PR-97.1 03 May 2024 01:40PM UTC 30
100.0
GitHub Action Run
Source Files on build 77dabbb565b9cd1631c2ffeb86e4e01e75d9d6c1-PR-97
  • Tree
  • List 30
  • Changed 16
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #97
  • PR Base - main (#A08DFA90...)
  • 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

© 2025 Coveralls, Inc