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
//! Traits for AUR operations, enabling testability via mock implementations.
use crateResult;
use crate;
use async_trait;
/// What: Trait for AUR operations, enabling testability via mock implementations.
///
/// Inputs: None (trait definition)
///
/// Output: Trait that defines the interface for AUR operations
///
/// Details:
/// - Defines the core AUR operations: search, info, comments, and pkgbuild
/// - Allows users to create mock implementations for unit testing
/// - The `Aur<'a>` struct implements this trait for real AUR operations
/// - Mock implementations can be used to test code without hitting real APIs