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

Method _run

dev/archery/archery/integration/tester_cpp.py:60–88  ·  view source on GitHub ↗
(
        self,
        arrow_path=None,
        json_path=None,
        command='VALIDATE',
        quirks=None
    )

Source from the content-addressed store, hash-verified

58 name = 'C++'
59
60 def _run(
61 self,
62 arrow_path=None,
63 json_path=None,
64 command='VALIDATE',
65 quirks=None
66 ):
67 cmd = [_INTEGRATION_EXE, '--integration']
68
69 if arrow_path is not None:
70 cmd.append('--arrow=' + arrow_path)
71
72 if json_path is not None:
73 cmd.append('--json=' + json_path)
74
75 cmd.append('--mode=' + command)
76
77 if quirks:
78 if "no_decimal_validate" in quirks:
79 cmd.append("--validate_decimals=false")
80 if "no_date64_validate" in quirks:
81 cmd.append("--validate_date64=false")
82 if "no_times_validate" in quirks:
83 cmd.append("--validate_times=false")
84
85 if self.debug:
86 log(' '.join(cmd))
87
88 run_cmd(cmd)
89
90 def validate(self, json_path, arrow_path, quirks=None):
91 return self._run(arrow_path, json_path, 'VALIDATE', quirks=quirks)

Callers 2

validateMethod · 0.95
json_to_fileMethod · 0.95

Calls 3

run_cmdFunction · 0.70
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected