MCPcopy
hub / github.com/osrg/gobgp / Test_AtomicAggregateAttribute

Function Test_AtomicAggregateAttribute

pkg/apiutil/attribute_test.go:161–173  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

159}
160
161func Test_AtomicAggregateAttribute(t *testing.T) {
162 assert := assert.New(t)
163
164 input := &api.AtomicAggregateAttribute{}
165
166 a := &api.Attribute{Attr: &api.Attribute_AtomicAggregate{AtomicAggregate: input}}
167 n, err := UnmarshalAttribute(a)
168 assert.NoError(err)
169
170 output, _ := NewAtomicAggregateAttributeFromNative(n.(*bgp.PathAttributeAtomicAggregate))
171 // AtomicAggregateAttribute has no value
172 assert.NotNil(output)
173}
174
175func Test_AggregatorAttribute(t *testing.T) {
176 assert := assert.New(t)

Callers

nothing calls this directly

Calls 2

UnmarshalAttributeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…