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

Function te_oid

src/mcp/test_impact_engine.c:432–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432static cbm_test_result_oid_t te_oid(const te_ctx_t *c, const char *hex) {
433 cbm_test_result_oid_t oid = {0};
434 if (!c->id || !hex || !hex[0]) {
435 return oid;
436 }
437 size_t bytes = c->id->oid_hex_length == 64 ? 32 : 20;
438 if (te_hex_bytes(hex, oid.bytes, bytes)) {
439 oid.format = bytes == 32 ? CBM_TEST_RESULT_OBJECT_SHA256 : CBM_TEST_RESULT_OBJECT_SHA1;
440 } else {
441 memset(oid.bytes, 0, sizeof(oid.bytes));
442 }
443 return oid;
444}
445
446static cbm_test_result_digest_t te_digest_hex(const char *hex) {
447 cbm_test_result_digest_t d = {0};

Callers 1

te_receiptFunction · 0.85

Calls 1

te_hex_bytesFunction · 0.85

Tested by

no test coverage detected