1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//! The pure rules behind `agentstacks ext test`: what the scratch project holds, whether an
//! extension has Lua tests, and whether the check passed.
//!
//! The command checks an extension by installing the built-in conformance pack, and any packs the
//! author names, into a temporary project, planning, applying and planning again. Each decision on
//! the way is a rule over data in hand, so it lives here and the flow that calls it stays a
//! sequence of steps.
//!
//! # Responsibilities
//!
//! - [`conformance`]: the conformance pack, embedded in the binary, and the [`NAME`] it is listed
//! under.
//! - [`CheckError`]: the refusals of the run itself, `airsl` missing and `airsl test` that could
//! not start.
//! - [`stage()`]: the files of the scratch project, its `agentstacks.toml` text and the rules for
//! the packs the author names ([`GivenPack`]), as [`StagedFile`]s and [`StageError`] refusals.
//! - [`has_tests()`] and [`summary()`]: whether a walked extension holds a Lua test file, and which
//! line of an `airsl test` run to show.
//! - [`second_plan()`]: whether a second plan has nothing to change, with the [`NotRepeatable`]
//! refusal when it has, and the [`Verdict`] a run ends with.
//!
//! # Non-responsibilities
//!
//! Opening directories, writing the scratch project and running `airsl` belong to the adapters
//! behind the ports. Putting the steps in order and printing them belong to the flow in `app` and
//! to the command line.
//!
//! This file is an export-only module with no executable logic, so it carries no inline tests.
pub use CONFORMANCE;
pub use NAME;
pub use CheckError;
pub use has_tests;
pub use summary;
pub use GivenPack;
pub use StageError;
pub use StagedFile;
pub use pack_name;
pub use stage;
pub use NotRepeatable;
pub use Verdict;
pub use second_plan;