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

Function suite_requested

tests/test_main.c:1649–1666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1647static bool *g_suite_arg_matched = NULL;
1648
1649static bool suite_requested(const char *name) {
1650 /* Every registered suite passes through here, requested or not: this is
1651 * where a selection token learns that its suite exists in this build. */
1652 size_t token_end = 0;
1653 size_t token_first = tf_only_suite_run(name, &token_end);
1654 tf_only_raise(token_first, token_end, TF_ONLY_REGISTERED);
1655 if (g_suite_argc <= 1) {
1656 return true;
1657 }
1658 bool requested = false;
1659 for (int i = 1; i < g_suite_argc; i++) {
1660 if (strcmp(g_suite_argv[i], name) == 0) {
1661 g_suite_arg_matched[i] = true;
1662 requested = true;
1663 }
1664 }
1665 return requested;
1666}
1667
1668/* --list-suites: print every registered suite name, one per line, without
1669 * running anything. The list and the run share this ONE macro table, so the

Callers

nothing calls this directly

Calls 2

tf_only_suite_runFunction · 0.85
tf_only_raiseFunction · 0.85

Tested by

no test coverage detected