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

Method _get_input

numpy/f2py/tests/test_string.py:64–85  ·  view source on GitHub ↗
(self, intent="in")

Source from the content-addressed store, hash-verified

62 return i
63
64 def _get_input(self, intent="in"):
65 if intent in ["in"]:
66 yield ""
67 yield "1"
68 yield "1234"
69 yield "12345"
70 yield b""
71 yield b"\0"
72 yield b"1"
73 yield b"\01"
74 yield b"1\0"
75 yield b"1234"
76 yield b"12345"
77 yield np.ndarray((), np.bytes_, buffer=b"") # array(b'', dtype='|S0')
78 yield np.array(b"") # array(b'', dtype='|S1')
79 yield np.array(b"\0")
80 yield np.array(b"1")
81 yield np.array(b"1\0")
82 yield np.array(b"\01")
83 yield np.array(b"1234")
84 yield np.array(b"123\0")
85 yield np.array(b"12345")
86
87 def test_intent_in(self):
88 for s in self._get_input():

Callers 2

test_intent_inMethod · 0.95
test_intent_inoutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected