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

Method test_index_raises

numpy/_core/tests/test_strings.py:784–788  ·  view source on GitHub ↗
(self, buf, sub, start, end, dt)

Source from the content-addressed store, hash-verified

782 ("rrarrrrrrrrra", "a", 4, 6),
783 ])
784 def test_index_raises(self, buf, sub, start, end, dt):
785 buf = np.array(buf, dtype=dt)
786 sub = np.array(sub, dtype=dt)
787 with pytest.raises(ValueError, match="substring not found"):
788 np.strings.index(buf, sub, start, end)
789
790 @pytest.mark.parametrize("buf,sub,start,end,res", [
791 ("abcdefghiabc", "", 0, None, 12),

Callers

nothing calls this directly

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected