This is the cl-mock Reference Manual, version 1.1.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 05:09:57 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
cl-mock
Mocking library
Olof-Joachim Frahm <olof@macrolet.net>
AGPL-3+
Mocking library to test plain functions (extended version).
1.1.0
cl-mock-basic
(system).
trivia
(system).
src
(module).
cl-mock-basic
Mocking library
Olof-Joachim Frahm <olof@macrolet.net>
AGPL-3+
Mocking library to test plain functions.
1.1.0
closer-mop
(system).
alexandria
(system).
bordeaux-threads
(system).
Modules are listed depth-first from the system components tree.
cl-mock-basic/src
readme.md
(file).
cl-mock-basic
(system).
package.lisp
(file).
functions.lisp
(file).
mock.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
cl-mock/cl-mock.asd
cl-mock-basic/cl-mock-basic.asd
cl-mock/src/facade.lisp
cl-mock-basic/src/package.lisp
cl-mock-basic/src/functions.lisp
cl-mock-basic/src/mock.lisp
cl-mock/src/facade.lisp
cl-mock-basic/src/functions.lisp
src
(module).
call-with-function-bindings
(function).
dflet
(macro).
maybe-fdefinition
(function).
progf
(macro).
set-fdefinition
(function).
set-or-unbind-fdefinition
(function).
cl-mock-basic/src/mock.lisp
src
(module).
*arguments*
(special variable).
*previous*
(special variable).
call-previous
(function).
call-with-mocks
(function).
if-called
(function).
invocations
(function).
register-mock
(function).
unhandled
(function).
with-mocks
(macro).
*invocations*
(special variable).
*invocations-lock*
(special variable).
*mock-bindings*
(special variable).
*recordp*
(special variable).
find-and-invoke-mock
(function).
record-invocation
(function).
Packages are listed by definition order.
cl-mock
alexandria
.
closer-common-lisp
.
*arguments*
(special variable).
*previous*
(special variable).
answer
(macro).
call-previous
(function).
call-with-function-bindings
(function).
call-with-mocks
(function).
dflet
(macro).
if-called
(function).
invocations
(function).
maybe-fdefinition
(function).
progf
(macro).
register-mock
(function).
set-fdefinition
(function).
set-or-unbind-fdefinition
(function).
unhandled
(function).
with-mocks
(macro).
*invocations*
(special variable).
*invocations-lock*
(special variable).
*mock-bindings*
(special variable).
*recordp*
(special variable).
find-and-invoke-mock
(function).
record-invocation
(function).
true
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Like FLET, but dynamically sets the FDEFINITIONS during the duration of the BODY.
Like PROGV, but for FUNCTIONS.
Execute BODY in a new mocking context. Invocations will be recorded if RECORDP is set (default true).
Invokes the previous binding either with the current arguments or with the given ones. Use *PREVIOUS*/*ARGUMENTS* directly in edge cases.
Calls FUNCTION while temporarily binding all FUNCTIONS with the given names to VALUES. See PROGF and PROGV. If PREVIOUS is set, it has to be the list of original values for each function.
Call FUNCTION with a new mocking context. Invocations will be recorded if RECORDP is set (default true).
Registers a new binding, which should return true if it handled the invocation. If AT-START is set, the binding is put at the start of the bindings list instead. Calls REGISTER-MOCK automatically.
If NAME is FBOUNDP, return its FDEFINITION, else NIL.
Registers a mocked function under NAME. The mocked function will return no values. See IF-CALLED to add some behaviour to it.
FUNCALLABLE expansion of (SETF (FDEFINITION NAME) VALUE).
If VALUE is true, set the FDEFINITION of NAME to it, else FMAKUNBOUND it completely.
Jump to: | A C D F I M P R S T U W |
---|
Jump to: | A C D F I M P R S T U W |
---|
Jump to: | *
S |
---|
Jump to: | *
S |
---|
Jump to: | C F M P R S |
---|
Jump to: | C F M P R S |
---|