refactor: Use events to test network logic #2700
90.62% of diff hit (target 78.13%)
View this Pull Request on Codecov
90.62% of diff hit (target 78.13%)
Annotations
Check warning on line 83 in event/bus.go
codecov / codecov/patch
event/bus.go#L83
Added line #L83 was 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 131 in internal/db/db.go
codecov / codecov/patch
internal/db/db.go#L131
Added line #L131 was not covered by tests
Check warning on line 49 in internal/db/merge.go
codecov / codecov/patch
internal/db/merge.go#L49
Added line #L49 was not covered by tests
Check warning on line 57 in internal/db/subscriptions.go
codecov / codecov/patch
internal/db/subscriptions.go#L57
Added line #L57 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 210 in net/peer.go
codecov / codecov/patch
net/peer.go#L210
Added line #L210 was not covered by tests
Check warning on line 149 in net/server.go
codecov / codecov/patch
net/server.go#L149
Added line #L149 was not covered by tests