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)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 10 Sep 2019 01:05:12 +0000 (21:05 -0400)
commiteddea57540fc76d56c8d38bdfc330c8b9f5b4961
tree279e0ba79c3bfe7bd6fb2b6f41fdeec8bea7a76e
parente42e1587604ec69593e13503e623688fe26ba1d1
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.025818 seconds and 4 git commands to generate.