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

Function test_objectscript_timeout_extractor

tests/test_pipeline.c:2559–2580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2557static CBM_TLS bool objectscript_timeout_mismatch;
2558
2559static CBMFileResult *test_objectscript_timeout_extractor(
2560 const char *source, int source_len, CBMLanguage language, const char *project,
2561 const char *rel_path, int64_t timeout_micros, const char **extra_defines,
2562 const char **include_paths, const CBMMacroTable *macro_table,
2563 const CBMReturnTypeTable *return_type_table) {
2564 (void)source;
2565 (void)source_len;
2566 (void)language;
2567 (void)project;
2568 (void)rel_path;
2569 (void)extra_defines;
2570 (void)include_paths;
2571 (void)macro_table;
2572 (void)return_type_table;
2573 objectscript_timeout_calls++;
2574 objectscript_timeout_mismatch |= timeout_micros != objectscript_expected_timeout;
2575 CBMFileResult *result = calloc(1, sizeof(*result));
2576 if (result) {
2577 cbm_arena_init(&result->arena);
2578 }
2579 return result;
2580}
2581
2582TEST(pipeline_objectscript_export_forwards_parse_timeout) {
2583 const char *xml =

Callers

nothing calls this directly

Calls 1

cbm_arena_initFunction · 0.50

Tested by

no test coverage detected