mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-04 15:39:53 +00:00
Update comments/docstrings in TestGenerator
Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
parent
3dc45198e6
commit
34d6d3e4e5
@ -130,10 +130,12 @@ class BaseTarget(metaclass=ABCMeta):
|
|||||||
|
|
||||||
|
|
||||||
class TestGenerator:
|
class TestGenerator:
|
||||||
"""Generate test data."""
|
"""Generate test cases and write to data files."""
|
||||||
def __init__(self, options) -> None:
|
def __init__(self, options) -> None:
|
||||||
self.test_suite_directory = getattr(options, 'directory')
|
self.test_suite_directory = getattr(options, 'directory')
|
||||||
# Add file Targets which have been declared in other modules
|
# Update `targets` with an entry for each child class of BaseTarget.
|
||||||
|
# Each entry represents a file generated by the BaseTarget framework,
|
||||||
|
# and enables generating the .data files using the CLI.
|
||||||
self.targets.update({
|
self.targets.update({
|
||||||
subclass.target_basename: subclass.generate_tests
|
subclass.target_basename: subclass.generate_tests
|
||||||
for subclass in BaseTarget.__subclasses__()
|
for subclass in BaseTarget.__subclasses__()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user