#!/usr/bin/env python3
"""Audit the checked-in NUnit-to-Rust parity catalog and source markers."""

from __future__ import annotations

import argparse
from pathlib import Path

from generate_surface import check_test_parity


def main() -> None:
    parser = argparse.ArgumentParser()
    parser.add_argument("--root", type=Path, default=Path("."))
    parser.add_argument("--require-reviewed", action="store_true")
    args = parser.parse_args()
    report = check_test_parity(args.root.resolve(), args.require_reviewed)
    print(
        "test parity: "
        + ", ".join(f"{name}={count}" for name, count in report.items())
    )


if __name__ == "__main__":
    main()
