This is the delorean Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 05:01:37 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
delorean
Delorean is a time machine for unit tests
Andy Chambers
local-time
(system).
delorean.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
delorean/delorean.lisp
delorean
(system).
clock-now
(method).
clock-now
(method).
clock-now
(method).
frozen-clock
(class).
scaled-clock
(class).
shifted-clock
(class).
with-frozen-clock
(macro).
with-scaled-clock
(macro).
with-shifted-clock
(macro).
created-at
(reader method).
(setf created-at)
(writer method).
frozen-time
(reader method).
(setf frozen-time)
(writer method).
mock-clock
(class).
parent-clock
(reader method).
(setf parent-clock)
(writer method).
parent-now
(method).
scale
(reader method).
(setf scale)
(writer method).
shifted-time
(reader method).
(setf shifted-time)
(writer method).
Packages are listed by definition order.
delorean
A set of macros loosely based on travisjeffery’s timecop
library with the purpose of making it easier to test time-sensitive code
common-lisp
.
frozen-clock
(class).
scaled-clock
(class).
shifted-clock
(class).
with-frozen-clock
(macro).
with-scaled-clock
(macro).
with-shifted-clock
(macro).
created-at
(generic reader).
(setf created-at)
(generic writer).
frozen-time
(generic reader).
(setf frozen-time)
(generic writer).
mock-clock
(class).
parent-clock
(generic reader).
(setf parent-clock)
(generic writer).
parent-now
(generic function).
scale
(generic reader).
(setf scale)
(generic writer).
shifted-time
(generic reader).
(setf shifted-time)
(generic writer).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Freezes the notion of local-time’s ‘now’ function
Within body (and any code called by body), calling (now) will always return ‘time’
Accelerates (or decelarates) time by a factor indicated by ‘scale’
Teleports to the time indicated by ‘to’ before executing ‘body’
frozen-clock
)) ¶local-time
.
shifted-clock
)) ¶local-time
.
scaled-clock
)) ¶local-time
.
A clock which allows time to be frozen in perpetuity
:frozen-time
A clock which allows time to proceed faster or slower than normal
:scale
A clock which allows time to be shifted to the specified time
:shifted-time
mock-clock
)) ¶automatically generated reader method
mock-clock
)) ¶automatically generated writer method
frozen-clock
)) ¶automatically generated reader method
frozen-clock
)) ¶automatically generated writer method
mock-clock
)) ¶automatically generated reader method
mock-clock
)) ¶automatically generated writer method
mock-clock
)) ¶scaled-clock
)) ¶automatically generated reader method
scaled-clock
)) ¶automatically generated writer method
shifted-clock
)) ¶automatically generated reader method
shifted-clock
)) ¶automatically generated writer method
The base class that is extended by all mock clocks
Jump to: | (
C F G M P S W |
---|
Jump to: | (
C F G M P S W |
---|
Jump to: | C F P S |
---|
Jump to: | C F P S |
---|
Jump to: | C D F M P S |
---|
Jump to: | C D F M P S |
---|