bt2: Add `*ValueConst` classes and adapt tests
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 27 Aug 2019 16:14:45 +0000 (12:14 -0400)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 10 Sep 2019 01:05:12 +0000 (21:05 -0400)
commite42e1587604ec69593e13503e623688fe26ba1d1
tree74ed366f8dcb59a8aeeebf14946cc4a91f71f251
parentd431b4defbfde77d7fb9eaa44ef439e1b02b57bf
bt2: Add `*ValueConst` classes and adapt tests

Split Python Value 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.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: I479db305a281063c7ee8aee2890c33c0b22e7153
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1983
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/component.py
src/bindings/python/bt2/bt2/query_executor.py
src/bindings/python/bt2/bt2/value.py
tests/bindings/python/bt2/test_package.py
tests/bindings/python/bt2/test_query_executor.py
tests/bindings/python/bt2/test_value.py
This page took 0.024793 seconds and 4 git commands to generate.