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.
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.