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

Function tf_test_selected

tests/test_main.c:1069–1084  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1067}
1068
1069bool tf_test_selected(const char *test) {
1070 if (!tf_only_active) {
1071 return true;
1072 }
1073 bool selected = false;
1074 for (size_t i = tf_only_suite_first; i < tf_only_suite_end; i++) {
1075 if (!tf_only_tokens[i].test[0] || strcmp(tf_only_tokens[i].test, test) == 0) {
1076 tf_only_tokens[i].state = TF_ONLY_MATCHED;
1077 selected = true;
1078 }
1079 }
1080 if (!selected) {
1081 tf_deselected_count++;
1082 }
1083 return selected;
1084}
1085
1086/* The strict half of the selection: every token this process was responsible
1087 * for must have entered its whole suite or matched its explicit test. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected