refactor: Use events to test network logic #2700
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
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
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
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
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
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
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 47 in internal/db/merge.go
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
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
codecov / codecov/patch
net/node.go#L186
Added line #L186 was not covered by tests
Check warning on line 212 in net/peer.go
codecov / codecov/patch
net/peer.go#L212
Added line #L212 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