Searched refs:self (Results 1 – 6 of 6) sorted by relevance
/zcbor-3.5.0-3.4.0/zcbor/ |
D | zcbor.py | 204 def __init__(self, default_max_qty, my_types, my_control_groups, base_name=None, argument 206 self.id_prefix = "temp_" + str(counter()) 207 self.id_num = None # Unique ID number. Only populated if needed. 210 self.value = None 211 self.max_value = None # Maximum value. Only used for numbers and bools. 212 self.min_value = None # Minimum value. Only used for numbers and bools. 214 self.label = None 215 self.min_qty = 1 # The minimum number of times this element is repeated. 216 self.max_qty = 1 # The maximum number of times this element is repeated. 219 self.size = None [all …]
|
/zcbor-3.5.0-3.4.0/tests/scripts/ |
D | test_zcbor.py | 56 def decode_file(self, data_path, *cddl_paths): argument 58 self.decode_string(data, *cddl_paths) 60 def decode_string(self, data_string, *cddl_paths): argument 62 self.my_types = zcbor.DataTranslator.from_cddl(cddl_str, 16).my_types 63 cddl = self.my_types["SUIT_Envelope_Tagged"] 64 self.decoded = cddl.decode_str(data_string) 68 def __init__(self, *args, **kwargs): argument 70 self.decode_file(p_test_vectors12[0], p_manifest12) 72 def test_manifest_digest(self): argument 73 self.assertEqual( [all …]
|
D | test_repo_files.py | 45 def do_codestyle(self, files, **kwargs): argument 49 self.assertEqual(result.total_errors, 0, 52 def test_codestyle(self): argument 54 self.do_codestyle([p_init_py, p_setup_py, p_test_versions_py, p_test_repo_files_py]) 55 self.do_codestyle([p_zcbor_py], ignore=['W191', 'E101', 'W503']) 56 self.do_codestyle([p_test_zcbor_py], ignore=['E402', 'E501', 'W503']) 64 def popen_test(self, args, input='', exp_retcode=0, **kwargs): argument 67 self.assertEqual(exp_retcode, call0.returncode, stderr0.decode('utf-8')) 70 def cmake_build_run(self, path, build_path): argument 88 self.popen_test(c) [all …]
|
D | test_versions.py | 21 def test_version_num(self): argument 27 self.assertRegex( 32 self.assertRegex( 35 self.assertEqual( 38 self.assertEqual( 45 self.assertNotIn(
|
/zcbor-3.5.0-3.4.0/ |
D | ARCHITECTURE.md | 27 The two most important member variables in CddlParser are `self.value` and `self.type`. 28 `self.type` is a string representing the base CDDL type, the options are (corresponding CBOR types … 49 `self.value` means different things for different values of `self.type`. 50 …"`, `self.value` has the value dictated by the type, or `None` if different values are allowed, so… 57 For container types, i.e `"LIST"`, `"MAP"`, `"GROUP"`, and `"UNION"`, `self.value` contains a list … 58 The code usually refers to the elements/contents in `self.value` as "children". 59 For `"OTHER"`, `self.value` is a string with the name of the type it refers to. 69 1. `Foo`, which has `self.type = "UINT"` and `self.value = None` 70 2. An anonymous child of Bar, which has `self.type = "OTHER"`, and `self.value = "Foo"` 71 3. Bar, which has `self.type = "LIST"`, and `self.value` is a python `list` containing the above ob… [all …]
|
D | README.md | 435 decoding. Using this mechanism is necessary when the CDDL contains self- 436 referencing types, since the C type cannot be self referencing.
|