bt2: Add `*ValueConst` classes and adapt tests
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 27 Aug 2019 16:14:45 +0000 (12:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 10 Sep 2019 15:20:25 +0000 (11:20 -0400)
commitf19e40a142db0e046c8afd4b692e15ee03f56ebc
tree49b276041c8c513f685ef51584e91826858dd257
parentec82525c766625dbf948a9c42a2f75ef41407985
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.026888 seconds and 4 git commands to generate.