(self)
| 285 | assert_(not getattr(opt, "cc_is_" + wrong_cc)) |
| 286 | |
| 287 | def test_args_empty(self): |
| 288 | for baseline, dispatch in ( |
| 289 | ("", "none"), |
| 290 | (None, ""), |
| 291 | ("none +none", "none - none"), |
| 292 | ("none -max", "min - max"), |
| 293 | ("+vsx2 -VSX2", "vsx avx2 avx512f -max"), |
| 294 | ("max -vsx - avx + avx512f neon -MAX ", |
| 295 | "min -min + max -max -vsx + avx2 -avx2 +NONE") |
| 296 | ) : |
| 297 | opt = self.nopt(cpu_baseline=baseline, cpu_dispatch=dispatch) |
| 298 | assert(len(opt.cpu_baseline_names()) == 0) |
| 299 | assert(len(opt.cpu_dispatch_names()) == 0) |
| 300 | |
| 301 | def test_args_validation(self): |
| 302 | if self.march() == "unknown": |
nothing calls this directly
no test coverage detected