Datasets:
Download source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test.sh from Vinyeh/AutoOntologyBench: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/datasets/Vinyeh/AutoOntologyBench/resolve/main/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test.sh
- Command line
-
hf download hf://datasets/Vinyeh/AutoOntologyBench/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test.sh
-
curl -L -o test.sh https://huggingface.co/datasets/Vinyeh/AutoOntologyBench/resolve/main/source_data/pinned/gatekeeper-library/commit-a8d4799d8daf/test.sh
473 Bytes
| set -eu | |
| # Ensure OPA strict mode compliance | |
| # https://www.openpolicyagent.org/docs/latest/policy-language/#strict-mode | |
| opa check --strict src | |
| for folder in src/*/* | |
| do | |
| # TODO: enforce coverage | |
| # needs https://github.com/open-policy-agent/opa/issues/2562 to see what was not covered | |
| # needs https://github.com/open-policy-agent/opa/issues/2139 to see verbose output when using coverage | |
| echo "opa test ${folder}/*.rego" | |
| opa test ${folder}/*.rego | |
| done | |