MCPcopy Create free account
hub / github.com/FDio/vpp / setUp

Method setUp

src/vpp-api/python/vpp_papi/vpp_stats.py:1471–1484  ·  view source on GitHub ↗

Connect to statseg and find integration test ring buffer

(self)

Source from the content-addressed store, hash-verified

1469 """Integration tests that coordinate with VPP writer tests"""
1470
1471 def setUp(self):
1472 """Connect to statseg and find integration test ring buffer"""
1473 self.stat = VPPStats()
1474 self.stat.connect()
1475
1476 # Look for integration test ring buffer
1477 try:
1478 self.ring_buffer = self.stat.get_ring_buffer("/integration/test")
1479 self.ring_buffer_available = True
1480 except (KeyError, ValueError):
1481 print(
1482 "Integration test ring buffer not found. Run integration test setup first."
1483 )
1484 self.ring_buffer_available = False
1485
1486 def tearDown(self):
1487 """Disconnect from statseg"""

Callers

nothing calls this directly

Calls 4

VPPStatsClass · 0.85
printFunction · 0.85
get_ring_bufferMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected