Update references to file targets in docstrings

Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
Werner Lewis 2022-09-14 16:26:54 +01:00
parent ac446c8a04
commit 52ae326ebb
2 changed files with 7 additions and 6 deletions

View file

@ -35,8 +35,9 @@ T = TypeVar('T') #pylint: disable=invalid-name
class BaseTarget(metaclass=ABCMeta): class BaseTarget(metaclass=ABCMeta):
"""Base target for test case generation. """Base target for test case generation.
Derive directly from this class when adding new file Targets, setting Child classes of this class represent an output file, and can be referred
`target_basename`. to as file targets. These indicate where test cases will be written to for
all subclasses of the file target, which is set by `target_basename`.
Attributes: Attributes:
count: Counter for test cases from this class. count: Counter for test cases from this class.

View file

@ -6,11 +6,11 @@ generate only the specified files.
Class structure: Class structure:
Child classes of test_generation.BaseTarget (file Targets) represent a target Child classes of test_generation.BaseTarget (file targets) represent an output
file. These indicate where test cases will be written to, for all subclasses of file. These indicate where test cases will be written to, for all subclasses of
this Target. Multiple Target classes should not reuse a `target_basename`. this target. Multiple file targets should not reuse a `target_basename`.
Each subclass derived from a file Target can either be: Each subclass derived from a file target can either be:
- A concrete class, representing a test function, which generates test cases. - A concrete class, representing a test function, which generates test cases.
- An abstract class containing shared methods and attributes, not associated - An abstract class containing shared methods and attributes, not associated
with a test function. An example is BignumOperation, which provides with a test function. An example is BignumOperation, which provides
@ -24,7 +24,7 @@ from abstract and concrete classes).
Adding test case generation for a function: Adding test case generation for a function:
A subclass representing the test function should be added, deriving from a A subclass representing the test function should be added, deriving from a
file Target such as BignumTarget. This test class must set/implement the file target such as BignumTarget. This test class must set/implement the
following: following:
- test_function: the function name from the associated .function file. - test_function: the function name from the associated .function file.
- test_name: a descriptive name or brief summary to refer to the test - test_name: a descriptive name or brief summary to refer to the test