(append-file path contents)
Append contents
to file at path
. The file is created
if it doesn't already exist.
Append `contents` to file at `path`. The file is created if it doesn't already exist.
(arg-count f)
Determines the number of arguments accepted by the provided function. Avoids reflection, and works with anonymous functions.
Determines the number of arguments accepted by the provided function. Avoids reflection, and works with anonymous functions.
(create-report-name simulation-name)
Create a gatling compatible filename for report output: 'SimulationName-Timestamp'
Create a gatling compatible filename for report output: 'SimulationName-Timestamp'
(exception->str e)
Convert an exception object to a string representation.
Convert an exception object to a string representation.
(failure-message ex)
Generates a Gatling-suitable failure message for returned errors. Drops the data from ExceptionInfo structures, as it would be too complex. Drops the class from AssertionError, Exception, ExceptionInfo, and Throwable, as it is not useful. Stringifies the error in all other cases.
Generates a Gatling-suitable failure message for returned errors. Drops the data from ExceptionInfo structures, as it would be too complex. Drops the class from AssertionError, Exception, ExceptionInfo, and Throwable, as it is not useful. Stringifies the error in all other cases.
(log-exception path e)
Log exception e
to file at path
.
Log exception `e` to file at `path`.
(split-equally size coll)
Split a collection into a vector of (as close as possible) equally sized parts
Split a collection into a vector of (as close as possible) equally sized parts
(split-number-equally size number)
Split a number into a vector of (as close as possible) equally sized numbers
Split a number into a vector of (as close as possible) equally sized numbers
(weighted-scenarios users scenarios)
(weighted-scenarios users rate scenarios)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close