| 
 
Ran
 
 | 
 
Jobs
1
 
 | 
 
Files
58
 
 | 
 
Run time
79min
 
 | 
 
Badge
 
README BADGES
 | 
push
github
#378 : Name to AttackPointAES128 classmethod (#380) This pull request introduces new utility methods for managing subclasses in the `AttackPointAES128` class and adds corresponding unit tests to ensure their correctness. These changes aim to simplify subclass management and improve test coverage. ### Enhancements to subclass management: * Added three class methods to `AttackPointAES128` in `scaaml/stats/attack_points/aes_128/attack_points.py`: * [`_all_subclasses`](diffhunk://#diff-<a class=hub.com/google/scaaml/commit/<a class="double-link" href="https://git"><a class=hub.com/google/scaaml/commit/061c79e8d98c49074c45fbabea14f72363c37ff8">061c79e8d81cac71ebfa5244c1a66b37cR26-R46): Recursively retrieves all subclasses of the class. * [`subclass_names`](diffhunk://#diff-061c79e8d98c49074c45fbabea14f72363c37ff881cac71ebfa5244c1a66b37cR26-R46): Returns a list of all subclass names as strings. * [`from_name`](diffhunk://#diff-061c79e8d98c49074c45fbabea14f72363c37ff881cac71ebfa5244c1a66b37cR26-R46): Retrieves a subclass by its name or raises a `ValueError` if no match is found. ### Improved test coverage: * Added a unit test `test_attack_point_aes128_subclass_names_and_lookup` in `tests/stats/attack_points/test_aes128.py` to validate: * Correct listing of all subclass names via `subclass_names`. * Accurate retrieval of subclasses using `from_name`. * Proper error handling in `from_name` for invalid subclass names.
15 of 15 new or added lines in 1 file covered. (100.0%)
2891 of 3338 relevant lines covered (86.61%)
0.87 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 15384293327.1 | 58 | 
86.61  | 
GitHub Action Run | 
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | 
|---|