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
62
63
64
65
66
67
68
69
70
71
//! The port to the executables on the machine.
//!
//! Pure trait definition with no executable logic, so it carries no inline tests.
//!
//! # Responsibilities
//!
//! - [`Binary`] answers whether a named binary is on `PATH`, what `airsl --version` printed and how
//! `airsl test` ended in a directory.
//! - [`LuaTestRun`] is what one `airsl test` run ended with.
//!
//! # Non-responsibilities
//!
//! It judges nothing. Reading a version out of the printed text and comparing it with a
//! requirement belong to the rules in `types`; searching `PATH` and running `airsl` belong to the
//! `process` adapter.
use io;
use Path;
use crateBinaryName;
use crateAirslAnswer;
/// How one `airsl test` run ended.
///
/// # Examples
///
/// ```
/// use agentstacks::port::binary::LuaTestRun;
///
/// let run = LuaTestRun { success: true, stdout: "2 passed\n".to_owned(), stderr: String::new() };
/// assert!(run.success);
/// ```
/// The binaries a pack or an extension needs.