MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / te_digest_of

Function te_digest_of

src/mcp/test_impact_engine.c:455–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453}
454
455static 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
464static void te_receipt(te_ctx_t *c, cbm_test_result_receipt_t *r,
465 cbm_test_result_evidence_reason_t *graph_reason) {

Callers 1

te_receiptFunction · 0.85

Calls 3

cbm_sha256_initFunction · 0.85
cbm_sha256_updateFunction · 0.85
cbm_sha256_finalFunction · 0.85

Tested by

no test coverage detected