cljs.spec/with-gen

MOVED, please see cljs.spec.alpha/with-gen
functionremoved v1.9.542added v1.9.14Edit
(with-gen spec gen-fn)

Source docstring:
Takes a spec and a no-arg, generator-returning fn and returns a version of that spec that uses that generator
Source code @ clojurescript:src/main/cljs/cljs/spec.cljs
(defn with-gen
  [spec gen-fn]
  (let [spec (reg-resolve spec)]
    (if (regex? spec)
      (assoc spec ::gfn gen-fn)
      (with-gen* (specize spec) gen-fn))))