MCPcopy Create free account
hub / github.com/apache/arrow / InvalidRowHandler

Class InvalidRowHandler

python/pyarrow/tests/test_csv.py:125–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124
125class InvalidRowHandler:
126 def __init__(self, result):
127 self.result = result
128 self.rows = []
129
130 def __call__(self, row):
131 self.rows.append(row)
132 return self.result
133
134 def __eq__(self, other):
135 return (isinstance(other, InvalidRowHandler) and
136 other.result == self.result)
137
138 def __ne__(self, other):
139 return (not isinstance(other, InvalidRowHandler) or
140 other.result != self.result)
141
142
143def test_split_rows_and_columns_utility():

Callers 2

test_parse_optionsFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_parse_optionsFunction · 0.68