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
//! `rahti-native`'s own tests.
//!
//! Split by the thing under test rather than by file, and included from
//! `lib.rs` so they see the crate's private items — the same arrangement
//! `rahti` uses.
/// Serializes the tests that set process environment variables.
///
/// `std::env::set_var` is process-wide and a test binary runs its tests in
/// parallel threads, so two tests putting a different `AUTH_SECRET` in the
/// environment would read each other's. Everything that touches the real
/// environment takes this first.
pub static ENV_LOCK: Mutex = new;
/// A temporary directory that deletes itself.
///
/// Small enough to write, and smaller than the dependency: these tests need a
/// directory each and nothing else a temporary-file crate offers.
;