Datasets:
Formats:
csv
Languages:
English
Size:
1K - 10K
Tags:
arxiv-artifact
reproducibility
research-artifact
computer-science
computer-logic
formal-methods
License:
| import csv | |
| from pcmt.pipeline import RunConfig, run_pipeline, validate_csv | |
| def test_pipeline_writes_trace_csv_and_certificates(tmp_path): | |
| output = tmp_path / "run" | |
| metrics = run_pipeline(RunConfig(output=output, fixture_root=tmp_path / "fixtures", clips=3, edits=["none", "crop"], use_gpu="cpu")) | |
| assert metrics["rows"] == 3 * 2 * 5 | |
| csv_path = output / "traces.csv" | |
| assert csv_path.exists() | |
| assert validate_csv(csv_path) == [] | |
| with csv_path.open("r", encoding="utf-8", newline="") as handle: | |
| rows = list(csv.DictReader(handle)) | |
| assert any(row["edit_type"] == "crop" and float(row["defect_score"]) > 0 for row in rows) | |
| assert list((output / "certificates").glob("*.json")) | |