code.framework.common
analyse-test
multimethod
added in 3.0
seed function for analyse-test
(analyse-test :fact (nav/parse-root (slurp “test/code/framework_test.clj”)))
display-entry
added in 3.0
(display-entry entry)entry
added in 3.0
(entry m)gather-meta
added in 3.0
(gather-meta nav)gets the metadata for a particular form (-> (nav/parse-string “^{:refer clojure.core/+ :added "1.1"}\n(fact …)”) nav/down nav/right nav/down gather-meta) => ’{:added “1.1”, :ns clojure.core, :var +, :refer clojure.core/+}
gather-string
added in 3.0
(gather-string nav)creates correctly spaced code string from normal docstring
(-> (nav/parse-string “"hello\nworld\nalready"”) (gather-string) (block/string)) => “"hello\n world\n already"”
line-lookup
added in 3.0
(line-lookup ns analysis)creates a function lookup for the project
test-frameworks
multimethod
added in 3.0
lists the framework that a namespace uses
(test-frameworks ’code.test) => :fact
(test-frameworks ’clojure.test) => :clojure