blob: 6424cd901029be36ad00fcb7436774e0adae679f (
plain)
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
|
(define-module (tests mock-inferior)
#:use-module (guix records)
#:use-module (guix tests)
#:export (<mock-inferior-package>
mock-inferior-package
mock-inferior-package?
mock-inferior-package-name
mock-inferior-package-version
mock-inferior-package-synopsis
mock-inferior-package-description
mock-inferior-package-home-page
with-mock-inferior-packages))
(define-record-type* <mock-inferior-package>
mock-inferior-package make-mock-inferior-pacakge
mock-inferior-package?
(name mock-inferior-package-name)
(version mock-inferior-package-version)
(synopsis mock-inferior-package-synopsis)
(description mock-inferior-package-description)
(home-page mock-inferior-package-home-page))
(define (with-mock-inferior-packages f)
(mock
((guix inferior)
inferior-package-name
mock-inferior-package-name)
(mock
((guix inferior)
inferior-package-version
mock-inferior-package-version)
(mock
((guix inferior)
inferior-package-synopsis
mock-inferior-package-synopsis)
(mock
((guix inferior)
inferior-package-description
mock-inferior-package-description)
(mock
((guix inferior)
inferior-package-home-page
mock-inferior-package-home-page)
(f)))))))
|