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

ooni / probe-cli / 6338187301
72%

Build:
DEFAULT BRANCH: master
Ran 28 Sep 2023 11:25AM UTC
Jobs 1
Files 511
Run time 11s
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

28 Sep 2023 11:20AM UTC coverage: 81.958% (+0.02%) from 81.941%
6338187301

push

github

web-flow
feat(model): introduce ArchivalBinaryData (#1321)

There are cases where we know we have binary data in input and we want
the output to be binary data using the dictionary encoding like
`{"format":"base64","data":"..."}`.

Such cases are, for example, DNS messages bodies.

There is no need for us to pass through the MaybeArchivalBinaryData in
such cases. Additionally, this makes MaybeArchivalBinaryData a bit more
complex than it probably needs to be.

What's more, ArchivalBinaryData is for when you do not require to scrub
the data. I want to introduce new data types that automatically perform
scrubbing when they're used.

But this puts even more pressure on MaybeArchivalBinaryData, and hence
this commit, to start differentiating between:

1. always binary data vs maybe binary data

2. no scrubbing required vs scrubbing required

The rationale for doing this set of changes has been explained in
https://github.com/ooni/probe-cli/pull/1319.

The reference issue is https://github.com/ooni/probe/issues/2531.

For now, this commit just adds the new type and tests for it without
using the type, which we'll do later once we have added better
marshal/unmarshal testing for the interested types.

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

24267 of 29609 relevant lines covered (81.96%)

35.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 0 - 6338187301.1 28 Sep 2023 11:25AM UTC 0
81.96
GitHub Action Run
Source Files on build 6338187301
Detailed source file information is not available for this build.
  • Back to Repo
  • c73d761c on github
  • Prev Build on master (#6337355964)
  • Next Build on master (#6338731568)
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