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

Method _get_input

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

Source from the content-addressed store, hash-verified

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