We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29e2a2a commit eab55c9Copy full SHA for eab55c9
unittests/test_hash.py
@@ -50,6 +50,16 @@ def test_declarations_hashes(self):
50
if issubclass(member_type, declarations.declaration_t):
51
self.assertIsNotNone(hash(member_type()))
52
53
+ def test_type_qualifiers_t_hash(self):
54
+ """
55
+ Test if the type_qualifiers_t instance implements a hash method.
56
+
57
+ The hash is part of the public API, as there are multiple tools
58
+ that rely on it to compare type_qualifiers_t instances.
59
60
61
+ self.assertIsNotNone(hash(declarations.type_qualifiers_t()))
62
63
64
def _create_type_t_mockup(member_type):
65
nbr_parameters = len(inspect.signature(member_type).parameters)
0 commit comments