(t *testing.T)
| 114 | } |
| 115 | |
| 116 | func Test_NextHopAttribute(t *testing.T) { |
| 117 | assert := assert.New(t) |
| 118 | |
| 119 | input := &api.NextHopAttribute{ |
| 120 | NextHop: "192.168.0.1", |
| 121 | } |
| 122 | |
| 123 | a := &api.Attribute{Attr: &api.Attribute_NextHop{NextHop: input}} |
| 124 | n, err := UnmarshalAttribute(a) |
| 125 | assert.NoError(err) |
| 126 | |
| 127 | output, _ := NewNextHopAttributeFromNative(n.(*bgp.PathAttributeNextHop)) |
| 128 | assert.True(proto.Equal(input, output)) |
| 129 | } |
| 130 | |
| 131 | func Test_MultiExitDiscAttribute(t *testing.T) { |
| 132 | assert := assert.New(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…