MCPcopy Index your code
hub / github.com/numpy/numpy / test_array_size

Method test_array_size

numpy/f2py/tests/test_crackfortran.py:225–232  ·  view source on GitHub ↗
(self, dimspec)

Source from the content-addressed store, hash-verified

223
224 @pytest.mark.parametrize("dimspec", all_dimspecs)
225 def test_array_size(self, dimspec):
226
227 count = self.all_dimspecs.index(dimspec)
228 get_arr_size = getattr(self.module, f"get_arr_size_{count}")
229
230 for n in [1, 2, 3, 4, 5]:
231 sz, a = get_arr_size(n)
232 assert a.size == sz
233
234 @pytest.mark.parametrize("dimspec", all_dimspecs)
235 def test_inv_array_size(self, dimspec):

Callers

nothing calls this directly

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected