refactor: Use events to test network logic #2700
90.85% of diff hit (target 77.95%)
View this Pull Request on Codecov
90.85% of diff hit (target 77.95%)
Annotations
Check warning on line 44 in events/bus.go
codecov / codecov/patch
events/bus.go#L43-L44
Added lines #L43 - L44 were not covered by tests
Check warning on line 454 in http/client.go
codecov / codecov/patch
http/client.go#L454
Added line #L454 was not covered by tests
Check warning on line 50 in internal/db/merge.go
codecov / codecov/patch
internal/db/merge.go#L50
Added line #L50 was not covered by tests
Check warning on line 55 in internal/db/subscriptions.go
codecov / codecov/patch
internal/db/subscriptions.go#L55
Added line #L55 was not covered by tests
Check warning on line 186 in net/node.go
codecov / codecov/patch
net/node.go#L186
Added line #L186 was not covered by tests
Check warning on line 208 in net/peer.go
codecov / codecov/patch
net/peer.go#L208
Added line #L208 was not covered by tests
Check warning on line 189 in net/server.go
codecov / codecov/patch
net/server.go#L189
Added line #L189 was not covered by tests