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

feat(netxlite): construct types with custom UnderlyingNetwork #1197

Merged
merged 28 commits into from
Aug 23, 2023

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Aug 23, 2023

This diff introduces the netxlite.Netx type. This type depends on a model.UnderlyingNetwork. When the underlying network is nil, using this type is equivalent to using netxlite toplevel functions directly.

To simplify testing this diff, let's move the netem->netxlite UnderlyingNetworkAdapter from netemx and let's use netem to write tests, so we can have confidence specifically about the most common use case of overriding the underlying network.

Originally part of #1185.

The reference issue is ooni/probe#2461.

kelmenhorst and others added 28 commits July 7, 2023 10:06
@bassosimone bassosimone merged commit 31bcd19 into master Aug 23, 2023
7 checks passed
@bassosimone bassosimone deleted the issue/2461 branch August 23, 2023 16:13
Murphy-OrangeMud pushed a commit to Murphy-OrangeMud/probe-cli that referenced this pull request Feb 13, 2024
)

This diff introduces the netxlite.Netx type. This type depends on a
model.UnderlyingNetwork. When the underlying network is nil, using this
type is equivalent to using netxlite toplevel functions directly.

To simplify testing this diff, let's move the netem->netxlite
UnderlyingNetworkAdapter from netemx and let's use netem to write tests,
so we can have confidence specifically about the most common use case of
overriding the underlying network.

Originally part of ooni#1185.

The reference issue is ooni/probe#2461.

---------

Co-authored-by: kelmenhorst <k.elmenhorst@mailbox.org>
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.

2 participants