Skip to content

Add unit tests for the attestation parser #36

@IITI-tushar

Description

@IITI-tushar

Add unit tests for the attestation parser to cover common success and error cases.

Includes tests for:

Direct in-toto statement parsing
DSSE envelope parsing
Attestation type filtering
Empty attestation inputs
Invalid JSON / missing payload errors
File parsing paths
Helper functions for type normalization

Goal is to improve reliability and prevent regressions without changing production code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions