| 1 | # The deriver of required checks (derive/), and the composed-policy reader |
| 2 | # it derives from (composed/), each held by its own tests. |
| 3 | { |
| 4 | packages, |
| 5 | ... |
| 6 | }: |
| 7 | { |
| 8 | # Run with go vet: the glob language by example, a diff's paths read |
| 9 | # from git diff -z and every cut of it refused, and the deriver's rules |
| 10 | # over a policy written in the test. Then the deriver over the |
| 11 | # repository's own policy and the example policies, with layers in |
| 12 | # directories named like glob patterns, and changes drawn from a fixed |
| 13 | # seed: each answer is held to the paths whose entries the change |
| 14 | # differs in, the classes their globs match, and the checks those |
| 15 | # classes and the unclassified set require. Paths are bytes, a path |
| 16 | # holding a newline is one path, a class named unclassified is kept apart |
| 17 | # from the unclassified set, and the reader refuses what cue vet rejects, |
| 18 | # a schema older than the deriver, a layer with no document, and a class |
| 19 | # added at `policy` that requires an undefined check. |
| 20 | derive-unit = packages.derive.unit; |
| 21 | |
| 22 | # Run with go vet: a layer read out of real repositories as present, |
| 23 | # absent or refused, with directories named like patterns, and with the |
| 24 | # objects of a tip, a layer's tree or a document removed. |
| 25 | composed-unit = packages.composed.unit; |
| 26 | } |