MCPcopy Create free account
hub / github.com/numpy/numpy / test_args_empty

Method test_args_empty

numpy/distutils/tests/test_ccompiler_opt.py:287–299  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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":

Callers

nothing calls this directly

Calls 3

noptMethod · 0.95
cpu_baseline_namesMethod · 0.80
cpu_dispatch_namesMethod · 0.80

Tested by

no test coverage detected