has-matching-signature?

clojure.contrib.mock.test-adapter

  • (has-matching-signature? fn-name args)
Calls no-matching-function-signature if no match is found for the given
function. If no argslist meta data is available for the function, it is
not called.

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 clojure/contrib/mock.clj:105 top

(defn has-matching-signature?
  "Calls no-matching-function-signature if no match is found for the given
function. If no argslist meta data is available for the function, it is
not called."
  [fn-name args]
  (let [arg-count (count args)
            arg-lists (:arglists (meta (resolve fn-name)))]
        (if (and arg-lists (not (has-arg-count-match? arg-lists arg-count)))
          (no-matching-function-signature fn-name arg-lists args))))
Vars in clojure.contrib.mock.test-adapter/has-matching-signature?: and defn let not
Used in 0 other vars

Comments top

No comments for has-matching-signature?. Log in to add a comment.