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

ooni / probe-cli / 6271734012
72%

Build:
DEFAULT BRANCH: master
Ran 22 Sep 2023 08:12AM UTC
Jobs 1
Files 506
Run time 14s
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

22 Sep 2023 08:06AM UTC coverage: 81.509% (+0.02%) from 81.493%
6271734012

push

github

web-flow
refactor(enginenetx): rename HTTPTransport to Network (#1293)

The HTTPTransport model only offers a CloseIdleConnections callback,
which semantics is obviously that of closing idle connections
(unsurprisingly).

However, the struct I am slowly building inside the enginenetx package
soon will need to write back statistics to disk using a key-value store.

I don't think we should overload the CloseIdleConnections semantics to
do this job, since the resulting code would be quite surprising.

Therefore, I have decided to rename HTTPTransport to Network and make it
represent all the network abstractions required by the OONI engine.

In time, I will move extra functionality in there. For now, let us be
happy that we can easily define a Close method (currently empty) for
this type having the usual io.Closer semantics, i.e., that any resource
opened by the type itself is released when calling this method.

This diff does the following:

- it renames the files, the type, and the tests;

- it introduces a Close method that closes the Network's underlying
transport's idle connections;

- it adapts users of this code to use the new semantics;

- it introduces an model.KeyValueStore argument for the Network
constructor which we're going to use soon to persist statistics;

- updates `CONTRIBUTING.md` to say how we do internal testing when the
main tests body is external.

Part of https://github.com/ooni/probe/issues/2531

38 of 39 new or added lines in 3 files covered. (97.44%)

23481 of 28808 relevant lines covered (81.51%)

25.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 0 - 6271734012.1 22 Sep 2023 08:12AM UTC 0
81.51
GitHub Action Run
Source Files on build 6271734012
Detailed source file information is not available for this build.
  • Back to Repo
  • e27eead5 on github
  • Prev Build on master (#6264240213)
  • Next Build on master (#6271931965)
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