MCPcopy
hub / github.com/numpy/numpy / test_features

Method test_features

numpy/_core/tests/test_cpu_features.py:77–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 pass
76
77 def test_features(self):
78 self.load_flags()
79 for gname, features in self.features_groups.items():
80 test_features = [self.cpu_have(f) for f in features]
81 assert_features_equal(
82 __cpu_features__.get(gname),
83 all(test_features),
84 gname,
85 )
86
87 for feature_name in self.features:
88 cpu_have = self.cpu_have(feature_name)
89 npy_have = __cpu_features__.get(feature_name)
90 assert_features_equal(npy_have, cpu_have, feature_name)
91
92 def cpu_have(self, feature_name):
93 map_names = self.features_map.get(feature_name, feature_name)

Callers

nothing calls this directly

Calls 6

load_flagsMethod · 0.95
cpu_haveMethod · 0.95
assert_features_equalFunction · 0.85
allFunction · 0.85
itemsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected