(t *testing.T)
| 144 | } |
| 145 | |
| 146 | func Test_LocalPrefAttribute(t *testing.T) { |
| 147 | assert := assert.New(t) |
| 148 | |
| 149 | input := &api.LocalPrefAttribute{ |
| 150 | LocalPref: 100, |
| 151 | } |
| 152 | |
| 153 | a := &api.Attribute{Attr: &api.Attribute_LocalPref{LocalPref: input}} |
| 154 | n, err := UnmarshalAttribute(a) |
| 155 | assert.NoError(err) |
| 156 | |
| 157 | output, _ := NewLocalPrefAttributeFromNative(n.(*bgp.PathAttributeLocalPref)) |
| 158 | assert.True(proto.Equal(input, output)) |
| 159 | } |
| 160 | |
| 161 | func Test_AtomicAggregateAttribute(t *testing.T) { |
| 162 | assert := assert.New(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…