seed function for analyse-test
(analyse-test :fact (z/of-file "test/lucid/core/code/test/common_test.clj") {})
seed function for analyse-test (analyse-test :fact (z/of-file "test/lucid/core/code/test/common_test.clj") {})
lists the framework that a namespace uses
(frameworks 'hara.test) => :fact
(frameworks 'clojure.test) => :clojure
lists the framework that a namespace uses (frameworks 'hara.test) => :fact (frameworks 'clojure.test) => :clojure
(gather-meta zloc)
gets the metadata for a particular form (-> (z/of-string "^{:refer clojure.core/+ :added "1.1"}\n(fact ...)") z/down z/right z/down gather-meta) => '{:added "1.1", :ns clojure.core, :var +, :refer clojure.core/+}
gets the metadata for a particular form (-> (z/of-string "^{:refer clojure.core/+ :added \"1.1\"}\n(fact ...)") z/down z/right z/down gather-meta) => '{:added "1.1", :ns clojure.core, :var +, :refer clojure.core/+}
(gather-string zloc)
creates correctly spaced code string from normal docstring
(-> (z/of-string ""hello\nworld\nalready"") (gather-string) (str)) => ""hello\n world\n already""
creates correctly spaced code string from normal docstring (-> (z/of-string "\"hello\nworld\nalready\"") (gather-string) (str)) => ""hello\n world\n already""
(join-nodes nodes)
join nodes together into a string
(join-nodes [(z/node (z/of-string "hello")) (z/node (z/of-string "world"))]) => "helloworld"
join nodes together into a string (join-nodes [(z/node (z/of-string "hello")) (z/node (z/of-string "world"))]) => "helloworld"
(strip-quotes s)
takes away the quotes from a string for formatting purposes
(strip-quotes ""hello"") => "hello"
takes away the quotes from a string for formatting purposes (strip-quotes "\"hello\"") => "hello"
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close