(defn-generate-test fn-name args & body)
Wrap function definition that output a test definition for real data
Usage:
-(defn my-function
+(defn-generate-test my-function
[arg]
(do-stuff arg))
Wrap function definition that output a test definition for real data Usage: ```diff -(defn my-function +(defn-generate-test my-function [arg] (do-stuff arg)) ```
(defn-group fn-name & decls)
Wrap function definition console group
Usage:
-(defn my-function
+(defn-group my-function
[arg]
(do-stuff arg))
Wrap function definition console group Usage: ```diff -(defn my-function +(defn-group my-function [arg] (do-stuff arg)) ```
(defn-group-io fn-name & decls)
Wrap function definition console group and log input and output
Usage:
-(defn my-function
+(defn-group-io my-function
[arg]
(do-stuff arg))
Wrap function definition console group and log input and output Usage: ```diff -(defn my-function +(defn-group-io my-function [arg] (do-stuff arg)) ```
(defn-io fn-name & decls)
Log input and output of a function definition
Usage:
-(defn my-function
+(defn-io my-function
[arg]
(do-stuff arg))
Log input and output of a function definition Usage: ```diff -(defn my-function +(defn-io my-function [arg] (do-stuff arg)) ```
(fn-group label args & body)
Wrap function console group
Usage:
-(fn
+(fn-group "some label to help while debugging"
[arg]
(do-stuff arg))
Wrap function console group Usage: ```diff -(fn +(fn-group "some label to help while debugging" [arg] (do-stuff arg)) ```
(fn-group-io label args & body)
Wrap function console group and log input and output
Usage:
-(fn
+(fn-group-io "some label to help while debugging"
[arg]
(do-stuff arg))
Wrap function console group and log input and output Usage: ```diff -(fn +(fn-group-io "some label to help while debugging" [arg] (do-stuff arg)) ```
(fn-input label args & body)
Log input of a function
Usage:
-(fn
+(fn-input "some label to help while debugging"
[arg]
(do-stuff arg))
Log input of a function Usage: ```diff -(fn +(fn-input "some label to help while debugging" [arg] (do-stuff arg)) ```
(fn-io label args & body)
Log input and output of a function
Usage:
-(fn
+(fn-io "some label to help while debugging"
[arg]
(do-stuff arg))
Log input and output of a function Usage: ```diff -(fn +(fn-io "some label to help while debugging" [arg] (do-stuff arg)) ```
(fn-output label args & body)
Log output of a function
Usage:
-(fn
+(fn-output "some label to help while debugging"
[arg]
(do-stuff arg))
Log output of a function Usage: ```diff -(fn +(fn-output "some label to help while debugging" [arg] (do-stuff arg)) ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close