MCPcopy Create free account
hub / github.com/GStreamer/gst-python / test_map_unmap_manual

Method test_map_unmap_manual

testsuite/test_gst.py:98–105  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

96class TestBufferMap(TestCase):
97
98 def test_map_unmap_manual(self):
99 Gst.init(None)
100 buf = Gst.Buffer.new_wrapped([42])
101 info = buf.map(Gst.MapFlags.READ | Gst.MapFlags.WRITE)
102 self.assertEqual(info.data[0], 42)
103 buf.unmap(info)
104 with self.assertRaises(ValueError):
105 info.data[0]
106
107 def test_map_unmap_context(self):
108 Gst.init(None)

Callers

nothing calls this directly

Calls 2

mapMethod · 0.45
unmapMethod · 0.45

Tested by

no test coverage detected