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

Method test_filled_like

numpy/core/tests/test_numeric.py:2926–2933  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2924 self.check_like_function(np.empty_like, None)
2925
2926 def test_filled_like(self):
2927 self.check_like_function(np.full_like, 0, True)
2928 self.check_like_function(np.full_like, 1, True)
2929 self.check_like_function(np.full_like, 1000, True)
2930 self.check_like_function(np.full_like, 123.456, True)
2931 # Inf to integer casts cause invalid-value errors: ignore them.
2932 with np.errstate(invalid="ignore"):
2933 self.check_like_function(np.full_like, np.inf, True)
2934
2935 @pytest.mark.parametrize('likefunc', [np.empty_like, np.full_like,
2936 np.zeros_like, np.ones_like])

Callers

nothing calls this directly

Calls 1

check_like_functionMethod · 0.95

Tested by

no test coverage detected