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

NFIBrokerage / spear / eb8d5b68d7a0106202bdda13040c788d039111e0
100%

Build:
DEFAULT BRANCH: main
Ran 09 May 2024 07:12PM UTC
Jobs 2
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

09 May 2024 07:11PM UTC coverage: 100.0%. Remained the same
eb8d5b68d7a0106202bdda13040c788d039111e0

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.

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

1 existing line in 1 file now uncovered.

711 of 711 relevant lines covered (100.0%)

340.26 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
96.77
-3.23% lib/spear/reading.ex
Jobs
ID Job ID Ran Files Coverage
1 eb8d5b68d7a0106202bdda13040c788d039111e0.1 09 May 2024 07:12PM UTC 30
99.86
GitHub Action Run
2 eb8d5b68d7a0106202bdda13040c788d039111e0.2 09 May 2024 08:01PM UTC 30
100.0
GitHub Action Run
Source Files on build eb8d5b68d7a0106202bdda13040c788d039111e0
  • Tree
  • List 30
  • Changed 16
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • eb8d5b68 on github
  • Prev Build on main (#A08DFA90...)
  • Next Build on main (#37B46BB6...)
  • 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