(conf, exp, mockToken, msgType)
| 154 | |
| 155 | |
| 156 | def evalExpr(conf, exp, mockToken, msgType): |
| 157 | report_as_error = False |
| 158 | msg = msgType + ' ' + mockToken.str + ' violates naming convention' |
| 159 | |
| 160 | if isinstance(conf, dict): |
| 161 | report_as_error = conf[exp][0] |
| 162 | msg += ': ' + conf[exp][1] |
| 163 | |
| 164 | res = re.match(exp,mockToken.str) |
| 165 | if bool(res) == report_as_error: |
| 166 | reportNamingError(mockToken,msg) |
| 167 | |
| 168 | def check_include_guard_name(conf,directive): |
| 169 | parts = directive.str.split() |
no test coverage detected