Liking cljdoc? Tell your friends :D

jepsen.store

Persistent storage for test runs and later analysis.

Persistent storage for test runs and later analysis.
raw docstring

base-dirclj


console-appenderclj


default-nonserializable-keysclj

What keys in a test can't be serialized to disk, by default?

What keys in a test can't be serialized to disk, by default?
raw docstring

delete!clj

(delete!)
(delete! test-name)
(delete! test-name test-time)

Deletes all tests, or all tests under a given name, or, if given a date as well, a specific test.

Deletes all tests, or all tests under a given name, or, if given a date as
well, a specific test.
raw docstring

delete-file-recursively!clj

(delete-file-recursively! f)

dir?clj

(dir? f)

Is this a directory?

Is this a directory?
raw docstring

file-nameclj

(file-name f)

Maps a File to a string name.

Maps a File to a string name.
raw docstring

fressian-fileclj

(fressian-file test)

Gives the path to a fressian file encoding all the results from a test.

Gives the path to a fressian file encoding all the results from a test.
raw docstring

fressian-file!clj

(fressian-file! test)

Gives the path to a fressian file encoding all the results from a test, ensuring its containing directory exists.

Gives the path to a fressian file encoding all the results from a test,
ensuring its containing directory exists.
raw docstring

latestclj

(latest)

Loads the latest test

Loads the latest test
raw docstring

loadclj

(load test-name test-time)

Loads a specific test by name and time.

Loads a specific test by name and time.
raw docstring

load-resultsclj

(load-results test-name test-time)

Loads only a results.edn by name and time.

Loads only a results.edn by name and time.
raw docstring

memoized-load-resultsclj


nonserializable-keysclj

(nonserializable-keys test)

What keys in a test can't be serialized to disk? The union of default nonserializable keys, plus any in :nonserializable-keys.

What keys in a test can't be serialized to disk? The union of default
nonserializable keys, plus any in :nonserializable-keys.
raw docstring

pathclj

(path test)
(path test & args)

With one arg, a test, returns the directory for that test's results. Given additional arguments, returns a file with that name in the test directory. Nested paths are flattened: (path t [:a [:b :c] :d) expands to .../a/b/c/d. Nil path components are ignored: (path t :a nil :b) expands to .../a/b.

Test must have only two keys: :name, and :start-time. :start-time may be a string, or a DateTime.

With one arg, a test, returns the directory for that test's results. Given
additional arguments, returns a file with that name in the test directory.
Nested paths are flattened: (path t [:a [:b :c] :d) expands to .../a/b/c/d.
Nil path components are ignored: (path t :a nil :b) expands to .../a/b.

Test must have only two keys: :name, and :start-time. :start-time may be a
string, or a DateTime.
raw docstring

path!clj

(path! & args)

Like path, but ensures the path's containing directories exist.

Like path, but ensures the path's containing directories exist.
raw docstring

read-handlersclj


save-1!clj

(save-1! test)

Writes a history and fressian file to disk and updates latest symlinks. Returns test.

Writes a history and fressian file to disk and updates latest symlinks.
Returns test.
raw docstring

save-2!clj

(save-2! test)

Phase 2: after computing results, we re-write the fressian file, histories, and also dump results as edn. Returns test.

Phase 2: after computing results, we re-write the fressian file, histories,
and also dump results as edn. Returns test.
raw docstring

start-logging!clj

(start-logging! test)

Starts logging to a file in the test's directory.

Starts logging to a file in the test's directory.
raw docstring

stop-logging!clj

(stop-logging!)

Resets logging to console only.

Resets logging to console only.
raw docstring

symlink?clj

(symlink? f)

Is this a symlink?

Is this a symlink?
raw docstring

test-namesclj

(test-names)

Returns a seq of all known test names.

Returns a seq of all known test names.
raw docstring

testsclj

(tests)
(tests test-name)

If given a test name, returns a map of test runs to deref-able tests. With no test name, returns a map of test names to maps of runs to deref-able tests.

If given a test name, returns a map of test runs to deref-able tests. With
no test name, returns a map of test names to maps of runs to deref-able
tests.
raw docstring

update-symlinks!clj

(update-symlinks! test)

Creates latest symlinks to the given test, if a store directory exists.

Creates `latest` symlinks to the given test, if a store directory exists.
raw docstring

virtual-dir?clj

(virtual-dir? f)

Is this a . or .. directory entry?

Is this a . or .. directory entry?
raw docstring

with-out-fileclj/smacro

(with-out-file test filename & body)

Binds stdout to a file for the duration of body.

Binds stdout to a file for the duration of body.
raw docstring

write-fressian!clj

(write-fressian! test)

Write the entire test as a .fressian file

Write the entire test as a .fressian file
raw docstring

write-handlersclj


write-history!clj

(write-history! test)

Writes out history.txt and history.edn files.

Writes out history.txt and history.edn files.
raw docstring

write-results!clj

(write-results! test)

Writes out a results.edn file.

Writes out a results.edn file.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close