()
| 1302 | } |
| 1303 | |
| 1304 | func (n *errorTurnNet) Interfaces() ([]*transport.Interface, error) { |
| 1305 | iface := transport.NewInterface(net.Interface{ |
| 1306 | Index: 1, |
| 1307 | MTU: 1500, |
| 1308 | Name: "errturn0", |
| 1309 | Flags: net.FlagUp, |
| 1310 | }) |
| 1311 | iface.AddAddress(&net.IPNet{IP: net.IPv4(127, 0, 0, 1), Mask: net.CIDRMask(8, 32)}) |
| 1312 | |
| 1313 | return []*transport.Interface{iface}, nil |
| 1314 | } |
| 1315 | |
| 1316 | func (n *errorTurnNet) InterfaceByIndex(index int) (*transport.Interface, error) { |
| 1317 | ifaces, err := n.Interfaces() |
no outgoing calls
no test coverage detected