Provides Cues test fixtures.
Provides Cues test fixtures.
(attempt-index-from-1 appender i)
For testing purposes only.
For testing purposes only.
(index-from-1 tailer)
For testing purposes only.
For testing purposes only.
(last-index-from-1 queue)
For testing purposes only.
For testing purposes only.
(last-read-index-from-1 tailer)
For testing purposes only.
For testing purposes only.
(simplify-exceptions messages)
(to-index-from-1 tailer i)
For testing purposes only.
For testing purposes only.
(with-graph-and-delete [sym :as binding] & body)
(with-test-indices f)
A number of cues.queue functions are rebound to make queue indices easier to work with in unit tests. While ChronicleQueue indicies are deterministic, they have a complex relationship to the roll cycles of the data on disk. Queue indices are guaranteed to increase monotonically, but not always continguously, and in general code that tries to predict future indices should be avoided. However, under the narrow constraints of the unit tests and test queue configurations, these new bindings will start all indices at 1 and then increase continguously. Just beware that this does NOT hold in general, and you should never rebind these methods outside of unit tests.
A number of cues.queue functions are rebound to make queue indices easier to work with in unit tests. While ChronicleQueue indicies are deterministic, they have a complex relationship to the roll cycles of the data on disk. Queue indices are guaranteed to increase monotonically, but not always continguously, and in general code that tries to predict future indices should be avoided. However, under the narrow constraints of the unit tests and test queue configurations, these new bindings will start all indices at 1 and then increase continguously. Just beware that this does NOT hold in general, and you should never rebind these methods outside of unit tests.
(with-warn f)
(written-index-from-1 queue i)
For testing purposes only.
For testing purposes only.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close