Liking cljdoc? Tell your friends :D

lucid.core.code.test.common


analyse-testcljmultimethod

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")
              {})
raw docstring

frameworkscljmultimethod

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
raw docstring

gather-metaclj

(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/+}
raw docstring

gather-stringclj

(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""
raw docstring

join-nodesclj

(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"
raw docstring

strip-quotesclj

(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"
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close