Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Sign In

weaveworks / weave / #4371

9 Nov 2015 - 15:51 coverage increased (+0.1%) to 75.78%
#4371

Pull #1648

circleci

2f1e5f233f2b7283a9bf3277e75bf30a?size=18&default=identiconrade
refactor: move NetworkRouterStatus into its own file
Pull Request #1648: separate the control and data planes

134 of 198 new or added lines in 11 files covered. (67.68%)

56 existing lines in 6 files now uncovered.

6483 of 8555 relevant lines covered (75.78%)

192419.77 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0
/router/bridge.go
1
package router
2

3
// Interface to packet handling on the local virtual bridge
4
type Bridge interface {
5
        // Inject a packet to be delivered locally
6
        InjectPacket(PacketKey) FlowOp
7

8
        // Start consuming packets from the bridge.  Injected packets
9
        // should not be included.
10
        StartConsumingPackets(BridgeConsumer) error
11

12
        String() string
13
        Stats() map[string]int
14
}
15

16
// A function that determines how to handle locally captured packets.
17
type BridgeConsumer func(PacketKey) FlowOp
18

19
type NullBridge struct{}
20

21
func (NullBridge) InjectPacket(PacketKey) FlowOp {
!
22
        return nil
!
23
}
!
24

UNCOV
25
func (NullBridge) StartConsumingPackets(BridgeConsumer) error {
!
UNCOV
26
        return nil
!
UNCOV
27
}
!
28

UNCOV
29
func (NullBridge) String() string {
!
UNCOV
30
        return "<no bridge networking>"
!
UNCOV
31
}
!
32

33
func (NullBridge) Stats() map[string]int {
!
34
        return nil
!
35
}
!
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
BLOG · TWITTER · Legal & Privacy · Supported CI Services · What's a CI service? · Automated Testing

© 2022 Coveralls, Inc