(fit, searchTokens)
| 102 | else: |
| 103 | |
| 104 | def isMatch(fit, searchTokens): |
| 105 | for token in searchTokens: |
| 106 | if ( |
| 107 | token not in fit.name.lower() and |
| 108 | token not in fit.shipName.lower() and |
| 109 | token not in fit.shipNameShort.lower() |
| 110 | ): |
| 111 | return False |
| 112 | return True |
| 113 | |
| 114 | matches = [] |
| 115 | searchTokens = [t.lower() for t in re.split(r'\s+', searchPattern)] |
nothing calls this directly
no outgoing calls
no test coverage detected