func: operator name func_list: names of all operators Check whether func_list contains func. If yes, return matching content, or else return "".
(func, func_list)
| 185 | |
| 186 | |
| 187 | def match_test_func(func, func_list): |
| 188 | """ |
| 189 | func: operator name |
| 190 | func_list: names of all operators |
| 191 | |
| 192 | Check whether func_list contains func. If yes, return matching content, or else return "". |
| 193 | """ |
| 194 | match_res = "" |
| 195 | for i in range(len(func_list)): |
| 196 | if pure_match(func_list[i], func): |
| 197 | match_res = func_list[i] |
| 198 | break |
| 199 | return match_res |
| 200 | |
| 201 | |
| 202 | if __name__ == "__main__": |
no test coverage detected