bt2: Add `_Clock*Const` classes and adapt tests
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 30 Aug 2019 16:20:05 +0000 (12:20 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 10 Sep 2019 15:20:25 +0000 (11:20 -0400)
commita2519c12c44f7510189651da033b1293cd7833c3
treebe33caffe3f8ec4fa17c9e3055a1e21dccb81d13
parentf19e40a142db0e046c8afd4b692e15ee03f56ebc
bt2: Add `_Clock*Const` classes and adapt tests

Split Python Clock Class related classes to mimic the type safety
offered by the C api. Const classes offer a read-only view of the data.
Non-Const classes subclass their respective Const classes.

Makes all `_ClockSnapshot` object Const

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I81e4643c80e6e94445ae0e4948279891416a38ca
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1996
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
src/bindings/python/bt2/bt2/__init__.py
src/bindings/python/bt2/bt2/clock_class.py
src/bindings/python/bt2/bt2/clock_snapshot.py
src/bindings/python/bt2/bt2/message.py
tests/bindings/python/bt2/test_clock_class.py
tests/bindings/python/bt2/test_package.py
This page took 0.025285 seconds and 4 git commands to generate.