function | previously cljs.spec.test/instrumentable-syms | clojure.spec.test.alpha/instrumentable-syms | Edit |
(instrumentable-syms)
(instrumentable-syms opts)
Given an opts map as per instrument, returns the set of syms that can be instrumented.
(defn instrumentable-syms
([] (instrumentable-syms nil))
([opts]
(assert (every? ident? (keys (:gen opts))) "instrument :gen expects ident keys")
(reduce into #{} [(filter fn-spec-name? (keys (s/registry)))
(keys (:spec opts))
(:stub opts)
(keys (:replace opts))])))