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

ooni / probe-cli / 5952309643
72%

Build:
DEFAULT BRANCH: master
Ran 23 Aug 2023 02:02PM UTC
Jobs 1
Files 446
Run time 10s
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

23 Aug 2023 01:58PM UTC coverage: 77.78% (+0.007%) from 77.773%
5952309643

push

github

web-flow
feat(netxlite): decouple from tproxy singleton (#1196)

Code in netxlite is currently tightly coupled with the tproxy singleton
(i.e., with a `model.UnderlyingNetwork`). Unfortunately, to write netemx
tests for Web Connectivity v0.5, we need to break this coupling. In
fact, we need the test helper's code to use a different underlying
network that uses a different IP address and is not censored, unlike the
network used by the probe.

To this end, in this diff we're introducing a nil-safe provider for a
tproxy. When the provider struct pointer is nil or the tproxy field is
nil, the code behaves as before and uses the tproxy singleton.
Otherwise, the code will use the given tproxy. Then we modify
fundamental types to explicitly depend on this nil-safe provider rather
than implicitly depending on the tproxy singleton.

We're soon going to take advantage of this diff and introduce support
for constructing common netxlite types using a custom tproxy that is not
a singleton but rather is a field of a concrete "net" structure.

This work has been extracted and adapted from
https://github.com/ooni/probe-cli/pull/1185. The reference issue for
this pull request is https://github.com/ooni/probe/issues/2461.

---------

Co-authored-by: kelmenhorst <k.elmenhorst@mailbox.org>

18 of 18 new or added lines in 5 files covered. (100.0%)

20716 of 26634 relevant lines covered (77.78%)

25.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 0 - 5952309643.1 23 Aug 2023 02:02PM UTC 0
77.78
GitHub Action Run
Source Files on build 5952309643
Detailed source file information is not available for this build.
  • Back to Repo
  • 1a976036 on github
  • Prev Build on master (#5951704904)
  • Next Build on master (#5953821243)
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