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: Use events to test network logic #2700

Merged
merged 42 commits into from
Jun 20, 2024

add event bus interface

573090e
Select commit
Loading
Failed to load commit list.
Merged

refactor: Use events to test network logic #2700

add event bus interface
573090e
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch succeeded Jun 12, 2024 in 0s

84.77% of diff hit (target 77.91%)

View this Pull Request on Codecov

84.77% of diff hit (target 77.91%)

Annotations

Check warning on line 71 in event/buffered_bus.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

event/buffered_bus.go#L71

Added line #L71 was not covered by tests

Check warning on line 121 in event/buffered_bus.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

event/buffered_bus.go#L121

Added line #L121 was not covered by tests

Check warning on line 131 in event/buffered_bus.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

event/buffered_bus.go#L131

Added line #L131 was not covered by tests

Check warning on line 135 in event/buffered_bus.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

event/buffered_bus.go#L135

Added line #L135 was not covered by tests

Check warning on line 60 in event/bus.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

event/bus.go#L59-L60

Added lines #L59 - L60 were not covered by tests

Check warning on line 454 in http/client.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

http/client.go#L454

Added line #L454 was not covered by tests

Check warning on line 131 in internal/db/db.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/db/db.go#L131

Added line #L131 was not covered by tests

Check warning on line 47 in internal/db/merge.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/db/merge.go#L47

Added line #L47 was not covered by tests

Check warning on line 58 in internal/db/subscriptions.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/db/subscriptions.go#L58

Added line #L58 was not covered by tests

Check warning on line 186 in net/node.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

net/node.go#L186

Added line #L186 was not covered by tests

Check warning on line 212 in net/peer.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

net/peer.go#L212

Added line #L212 was not covered by tests

Check warning on line 189 in net/server.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

net/server.go#L189

Added line #L189 was not covered by tests