Coverage report: /home/runner/work/geb/geb/test/gui/graphing.lisp
Kind | Covered | All | % |
expression | 127 | 129 | 98.4 |
branch | 0 | 0 | nil |
Key
Not instrumented
Conditionalized out
Executed
Not executed
Both branches taken
One branch taken
Neither branch taken
3
(define-test geb-gui-graphing :parent geb-gui)
6
(define-test notes-work :parent geb-gui-graphing
7
(let (;; don't want to clutter the allocation globally, so we don't
12
(cons-note (make-squash
13
:value (graphize geb-bool:bool nil))
15
:value (graphize geb-bool:bool nil)
22
(cons-note (make-squash
23
:value (graphize geb-bool:bool nil))
24
(cons-note (make-squash
25
:value (graphize geb-bool:bool nil))
28
(hash-table-count (geb.mixins::meta (make-instance 'node))))
33
:value (graphize geb-bool:bool nil)
37
:value (graphize geb-bool:bool nil)
41
(format t "~A ~A" population (hash-table-count (geb.mixins::meta node)))
43
;; with how it works now it's actually 5! but we just need to
46
(hash-table-count (geb.mixins::meta node))
47
"By inserting these nodes we should have increased the
48
hashtable by at least two slots")
52
geb-gui.graphing::children
53
car geb-gui.graphing::children)
55
"Merging should remove the extra indirection")
58
(~> node-merge-all geb-gui.graphing::children)
60
"All should be merged into one")))
62
(define-test composition-works :parent geb-gui-graphing
63
(let* ((term (comp (<-left so1 so1) (init geb-bool:bool)))
66
(is obj-equalp (dom term) (geb-gui.graphing::value node)
67
"We should be displaying the dom of the first term")
69
(~> node geb-gui.graphing::children car
70
geb-gui.graphing::children car
71
geb-gui.graphing::representation)
73
"The stack should work and remove the redundant 1 + 1")))
75
(define-test composition-with-notes-behaves :parent geb-gui-graphing
76
(let* ((term (comp (<-left so1 so1) (init geb-bool:bool)))
80
(cons-note (make-squash :value (graphize geb-bool:bool nil))
82
:value (graphize geb-bool:bool nil)
89
geb-gui.graphing::children car
91
geb-gui.graphing::children car
93
geb-gui.graphing::children car
95
geb-gui.graphing::children)
97
"The nodes should collapse")))