test-function-name

circumspec.test

  • (test-function-name desc)
Create a test function name. If the provided desc is a var,
append suffix to prevent name collision between var and test.
If desc is a human friendly string, dasherize it.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source circumspec/test.clj:19 top

(defn test-function-name
  "Create a test function name. If the provided desc is a var,
   append suffix to prevent name collision between var and test.
   If desc is a human friendly string, dasherize it."
  [desc]
  (symbol (if (symbol? desc)
            (str  (denamespace (str desc)) "-test")
            (make-test-name (str desc)))))
Vars in circumspec.test/test-function-name: defn str symbol symbol?
Used in 0 other vars

Comments top

No comments for test-function-name. Log in to add a comment.