mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-06-25 12:41:56 +03:00
Raise NotImplementedError in abstract methods
Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
@ -66,7 +66,7 @@ class BaseTarget(metaclass=ABCMeta):
|
|||||||
Returns:
|
Returns:
|
||||||
List of arguments required for the test function.
|
List of arguments required for the test function.
|
||||||
"""
|
"""
|
||||||
pass
|
raise NotImplementedError
|
||||||
|
|
||||||
def description(self) -> str:
|
def description(self) -> str:
|
||||||
"""Create a test description.
|
"""Create a test description.
|
||||||
@ -103,7 +103,7 @@ class BaseTarget(metaclass=ABCMeta):
|
|||||||
of the class with appropriate input data, and then calling
|
of the class with appropriate input data, and then calling
|
||||||
`create_test_case()` on each.
|
`create_test_case()` on each.
|
||||||
"""
|
"""
|
||||||
pass
|
raise NotImplementedError
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def generate_tests(cls) -> Iterator[test_case.TestCase]:
|
def generate_tests(cls) -> Iterator[test_case.TestCase]:
|
||||||
|
@ -122,7 +122,7 @@ class BignumOperation(BignumTarget, metaclass=ABCMeta):
|
|||||||
This may be calculated during initialization and stored as `_result`,
|
This may be calculated during initialization and stored as `_result`,
|
||||||
or calculated when the method is called.
|
or calculated when the method is called.
|
||||||
"""
|
"""
|
||||||
pass
|
raise NotImplementedError
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def value_description(val) -> str:
|
def value_description(val) -> str:
|
||||||
|
Reference in New Issue
Block a user