(
self,
arrow_path=None,
json_path=None,
command='VALIDATE',
quirks=None
)
| 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) |
no test coverage detected