[WIP] tests: check all enum completeness#992
Draft
jkowalleck wants to merge 19 commits into
Draft
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Documentation build overview
8 files changed ·
|
jkowalleck
commented
Jun 8, 2026
| SNAPSHOTS_DIRECTORY = path.join(_TESTDATA_DIRECTORY, 'snapshots') | ||
|
|
||
| RECREATE_SNAPSHOTS = '1' == getenv('CDX_TEST_RECREATE_SNAPSHOTS') | ||
| RECREATE_SNAPSHOTS = True or '1' == getenv('CDX_TEST_RECREATE_SNAPSHOTS') |
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
ed7563b to
4ff6db8
Compare
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
jkowalleck
commented
Jun 15, 2026
|
|
||
| @serializable.serializable_enum | ||
| class CryptoPrimitive(str, Enum): | ||
| # TODO: rename to `CryptoAlgorithmPrimitive` |
| SIGNATURE = 'signature' | ||
| STREAM_CIPHER = 'stream-cipher' | ||
| XOF = 'xof' | ||
| # TODO: add `key-wrap` - since CDX1.7key-wrap |
| ARMV9_A = 'armv9-a' | ||
| ARMV9_M = 'armv9-m' | ||
| GENERIC = 'generic' | ||
| GENERIC = 'generic' # TODO: move down |
|
|
||
| @serializable.serializable_enum | ||
| class CryptoCertificationLevel(str, Enum): | ||
| # TODO: move to `CryptoAlgorithmCertificationLevel` |
|
|
||
| @serializable.serializable_enum | ||
| class CryptoMode(str, Enum): | ||
| # TODO: rename to `CryptoAlgorithmMode` |
|
|
||
| @serializable.serializable_enum | ||
| class CryptoImplementationPlatform(str, Enum): | ||
| # TODO: rename to `CryptoAlgorithmImplementationPlatform` |
|
|
||
| @serializable.serializable_enum | ||
| class CryptoExecutionEnvironment(str, Enum): | ||
| # TODO: rename to `CryptoAlgorithmExecutionEnvironment` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Resolves or fixes issue: #991
AI Tool Disclosure
[e.g. GitHub CoPilot, ChatGPT, JetBrains Junie etc.][e.g. GPT-4.1, Claude Haiku 4.5, Gemini 2.5 Pro etc.][Summarize the key prompts or instructions given to the AI tools]Affirmation