I have a function that pulls messages from an AMPQ message bus:
(defn get-message [queue client]
(let [msg (mq/get-message client queue)]
(if msg
(logit msg))))
mq/get-message and logit are both side-effects, one depends on network access, the other on disk IO on the local machine.
Is there an idiomatic way of unit-testing side-effects in Clojure? My first thought was mocks/stubs, but if there was something better.