| 1067 | } |
| 1068 | |
| 1069 | bool 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. */ |
nothing calls this directly
no outgoing calls
no test coverage detected