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

mendersoftware / mender / 978727395
76%
master: 80%

Build:
Build:
LAST BUILD BRANCH: 5.0.x
DEFAULT BRANCH: master
Ran 24 Aug 2023 11:43AM UTC
Jobs 1
Files 114
Run time 5s
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

24 Aug 2023 11:26AM UTC coverage: 79.085% (+0.2%) from 78.84%
978727395

push

gitlab-ci

lluiscampos
feat: Implement `http::DownloadResumer`

Implement class to download the Artifact, which will react to server
disconnections or other sorts of short read by scheduling new HTTP
requests with `Range` header.

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests for
an introduction to the feature, and read the specification for more
details.

The user calls _once_ `AsyncCall` with the header and body handlers, and
`DownloadResumer` will call back these handlers _once_ (each). The data
is passed to the user at operation completion.

The validation of the `Content-Range` header and the cases for the unit
tests are heavily inspired by the legacy client. See:
* https://github.com/mendersoftware/mender/blob/<a class=hub.com/mendersoftware/mender/commit/d9010526d35d3ac861ea1e4210d36c2fef748ef8">d9010526d/client/update_resumer.go#L113
* https://github.com/mendersoftware/mender/blob/d9010526d35d3ac861ea1e4210d36c2fef748ef8/client/update_resumer_test.go#L197

Ticket: MEN-6498
Changelog: None

Signed-off-by: Lluis Campos <lluis.campos@northern.tech>

231 of 231 new or added lines in 3 files covered. (100.0%)

5706 of 7215 relevant lines covered (79.09%)

278.95 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
40
82.46
common/http/platform/beast/http_resumer.cpp

Uncovered Existing Lines

Lines Coverage ∆ File
1
80.0
-5.71% common/log.hpp
8
87.31
0.26% common/http/platform/beast/http.cpp
19
85.33
1.16% common/io/io.cpp
Jobs
ID Job ID Ran Files Coverage
1 978727395.1 24 Aug 2023 11:43AM UTC 114
79.09
Source Files on build 978727395
  • Tree
  • List 114
  • Changed 17
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • GitLab CI Build #978727395
  • 9cac67c7 on github
  • Prev Build on HEAD (#977478349)
  • Next Build on HEAD (#978800167)
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