Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(measurexlite): depend on model.MeasuringNetwork #1260

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

bassosimone
Copy link
Contributor

With this diff, we detach measurexlite from netxlite. It was already quite detached through functions used for testing. However, the changes we implement are allow us to test measurexlite code by changing the .Netx field of a *Trace, which means we can avoid using netxlite's singleton for new code.

Another benefit of this diff is that we have clearly spelled out and packaged into an interface the dependencies required to perform measurements with measurexlite. Therefore, we can gracefully continue separating the code used for measuring from the code for contacting the backend, as detailed in ooni/probe#2531.

With this diff, we detach measurexlite from netxlite. It was already quite
detached through functions used for testing. However, the changes we implement
are allow us to test measurexlite code by changing the .Netx field of a
*Trace, which means we can avoid using netxlite's singleton for new code.

Another benefit of this diff is that we have clearly spelled out and
packaged into an interface the dependencies required to perform measurements
with measurexlite. Therefore, we can gracefully continue separating the
code used for measuring from the code for contacting the backend, as detailed
in ooni/probe#2531.
@bassosimone bassosimone merged commit 56e4587 into master Sep 12, 2023
6 checks passed
@bassosimone bassosimone deleted the issue/2531 branch September 12, 2023 13:46
Murphy-OrangeMud pushed a commit to Murphy-OrangeMud/probe-cli that referenced this pull request Feb 13, 2024
With this diff, we detach measurexlite from netxlite. It was already
quite detached through functions used for testing. However, the changes
we implement are allow us to test measurexlite code by changing the
.Netx field of a *Trace, which means we can avoid using netxlite's
singleton for new code.

Another benefit of this diff is that we have clearly spelled out and
packaged into an interface the dependencies required to perform
measurements with measurexlite. Therefore, we can gracefully continue
separating the code used for measuring from the code for contacting the
backend, as detailed in ooni/probe#2531.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant