Coverage report: /home/ellis/comp/core/lib/organ/element/lesser/node-property.lisp
Kind | Covered | All | % |
expression | 20 | 21 | 95.2 |
branch | 0 | 0 | nil |
Key
Not instrumented
Conditionalized out
Executed
Not executed
Both branches taken
One branch taken
Neither branch taken
1
;;; lib/organ/element/lesser/node-property.lisp --- Org Node Property Element
3
;; Node properties match the patterns:
15
(define-org-element node-property ((name :initarg :name :accessor name) (value :initarg :value :accessor value)) :lesser t)
17
;; assumes caller is org-property-drawer = single line
18
(define-org-parser (node-property :from string)
19
(multiple-value-bind (match subs)
20
(scan-to-strings org-property-rx input)
22
(let ((name (aref subs 0))
23
(value (aref subs 1)))
24
(org-create :node-property :name name :value value)))))