code.framework.common

*path*

dynamic

*test-examples*

dynamic

*test-full*

dynamic

+test-vars+

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)

creates a map represenation of the entry

(display-entry {:ns {:a {:test {} :source {}} :b {:test {}} :c {:source {}}}}) => {:source {:ns :a :c} :test {:ns :a :b}}

entry

added in 3.0

(entry m)

creates an entry for analysis

(entry {:ns {:a {:test {} :source {}} :b {:test {}} :c {:source {}}}}) ;;#code{:source {:ns :a :c}, :test {:ns :a :b}} => code.framework.common.Entry

entry?

added in 3.0

(entry? x)

checks if object is an entry

(entry? (entry {})) => true

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