| 453 | } |
| 454 | |
| 455 | static cbm_test_result_digest_t te_digest_of(const cbm_git_bytes_t *b) { |
| 456 | cbm_test_result_digest_t d = {.present = true}; |
| 457 | cbm_sha256_ctx ctx; |
| 458 | cbm_sha256_init(&ctx); |
| 459 | cbm_sha256_update(&ctx, b->data ? b->data : (const unsigned char *)"", b->length); |
| 460 | cbm_sha256_final(&ctx, d.bytes); |
| 461 | return d; |
| 462 | } |
| 463 | |
| 464 | static void te_receipt(te_ctx_t *c, cbm_test_result_receipt_t *r, |
| 465 | cbm_test_result_evidence_reason_t *graph_reason) { |
no test coverage detected