jepsen.web
Web server frontend for browsing test results.
assert-file-in-scope!
(assert-file-in-scope! f)
Throws if the given file is outside our store directory.
dir-sort
(dir-sort files)
Sort a collection of Files. If everything’s an integer, sort numerically, else alphanumerically.
fast-tests
(fast-tests)
Abbreviated set of tests: just name, start-time, results. Memoizes (partially) via test-cache.
test-cache
An in-memory cache of {:name, :start-time, :valid?} maps, indexed by an ordered map of :start-time :name. Earliest start times at the front.
test-cache-mutable-window
How far back in the test cache do we refresh on every page load?
url-encode-path-components
(url-encode-path-components x)
URL encodes individual components of a path, leaving / as / instead of encoded.
zip-java
(zip-java req dir)
Serves a directory as a zip file, using the Java zip library. Strips .zip off the extension.
zip-shell
(zip-shell req dir)
Serves a directory as a zip file, shelling out to zip
. This is significantly faster than zip-java`, but less portable.