The de-mock-racy Reference Manual

This is the de-mock-racy Reference Manual, version 0.0.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 05:57:13 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 de-mock-racy

Simplistic mocking library.

Author

Marek Kochanowicz

License

BSD simplified

Version

0.0.0

Dependency

alexandria (system).

Source

de-mock-racy.asd.

Child Components

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


3.1 Lisp


3.1.1 de-mock-racy/de-mock-racy.asd

Source

de-mock-racy.asd.

Parent Component

de-mock-racy (system).

ASDF Systems

de-mock-racy.


3.1.2 de-mock-racy/package.lisp

Source

de-mock-racy.asd.

Parent Component

de-mock-racy (system).

Packages

de-mock-racy.


3.1.3 de-mock-racy/generics.lisp

Dependency

package.lisp (file).

Source

de-mock-racy.asd.

Parent Component

de-mock-racy (system).

Public Interface

3.1.4 de-mock-racy/variables.lisp

Dependency

generics.lisp (file).

Source

de-mock-racy.asd.

Parent Component

de-mock-racy (system).

Public Interface

3.1.5 de-mock-racy/types.lisp

Dependency

variables.lisp (file).

Source

de-mock-racy.asd.

Parent Component

de-mock-racy (system).

Public Interface

3.1.6 de-mock-racy/macros.lisp

Dependency

types.lisp (file).

Source

de-mock-racy.asd.

Parent Component

de-mock-racy (system).

Public Interface

3.1.7 de-mock-racy/methods.lisp

Dependency

macros.lisp (file).

Source

de-mock-racy.asd.

Parent Component

de-mock-racy (system).

Public Interface

3.1.8 de-mock-racy/functions.lisp

Dependency

methods.lisp (file).

Source

de-mock-racy.asd.

Parent Component

de-mock-racy (system).

Public Interface

4 Packages

Packages are listed by definition order.


4.1 de-mock-racy

Source

package.lisp.

Use List

common-lisp.

Public Interface

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


5.1 Public Interface


5.1.1 Special variables

Special Variable: *mock-controller*
Package

de-mock-racy.

Source

variables.lisp.

Special Variable: *thunk*
Package

de-mock-racy.

Source

variables.lisp.


5.1.2 Macros

Macro: define-mock-method (label mock-controller-class arguments &body body)

Defines execute-mockable-block method for a given mock-controller class and label.

Package

de-mock-racy.

Source

macros.lisp.

Macro: filter (label arguments &body body)

Expands into a lambda form suitable as :filter argument for the make-instance ’basic-waiting-call. Each form in body is supposed to return non-nil in order for filter to accept form.

Package

de-mock-racy.

Source

macros.lisp.

Macro: implementation (arguments &body body)

Expands into a lambda form suitable as :implementation argument for the make-instance ’basic-waiting-call.

Package

de-mock-racy.

Source

macros.lisp.

Macro: mockable-block ((label &rest arguments) &body body)

Defines block that can be later mocked.

Package

de-mock-racy.

Source

macros.lisp.

Macro: waiting-calls-enque-many (waiting-calls &body body)
Package

de-mock-racy.

Source

macros.lisp.


5.1.3 Ordinary functions

Function: call-thunk ()
Package

de-mock-racy.

Source

functions.lisp.

Function: execute-mockable-block (mock-controller label arguments thunk)
Package

de-mock-racy.

Source

functions.lisp.

Function: waiting-calls-enque-many* (waiting-calls &rest args)
Package

de-mock-racy.

Source

functions.lisp.


5.1.4 Generic functions

Generic Reader: content (waiting-calls)
Package

de-mock-racy.

Source

generics.lisp.

Methods
Reader Method: content ((basic-waiting-calls basic-waiting-calls))

automatically generated reader method

Source

types.lisp.

Target Slot

%content.

Generic Function: execute-mockable-block* (mock-controller label arguments thunk)
Package

de-mock-racy.

Source

generics.lisp.

Methods
Method: execute-mockable-block* :around ((mock-controller basic-mock-controller) label arguments thunk)
Source

methods.lisp.

Method: execute-mockable-block* ((mock-controller basic-mock-controller) label arguments thunk)
Source

methods.lisp.

Method: execute-mockable-block* ((mock-controller (eql nil)) label arguments thunk)
Source

methods.lisp.

Generic Reader: filter-closure (waiting-call)
Package

de-mock-racy.

Source

generics.lisp.

Methods
Reader Method: filter-closure ((basic-waiting-call basic-waiting-call))

automatically generated reader method

Source

types.lisp.

Target Slot

%filter-closure.

Generic Reader: implementation-closure (waiting-call)
Package

de-mock-racy.

Source

generics.lisp.

Methods
Reader Method: implementation-closure ((basic-waiting-call basic-waiting-call))

automatically generated reader method

Source

types.lisp.

Target Slot

%implementation-closure.

Generic Reader: no-mock-implementation-error-arguments (condition)
Package

de-mock-racy.

Methods
Reader Method: no-mock-implementation-error-arguments ((condition no-mock-implementation-error))
Source

types.lisp.

Target Slot

%arguments.

Generic Reader: no-mock-implementation-error-label (condition)
Package

de-mock-racy.

Methods
Reader Method: no-mock-implementation-error-label ((condition no-mock-implementation-error))
Source

types.lisp.

Target Slot

%label.

Generic Reader: usage-count (waiting-call)
Package

de-mock-racy.

Source

generics.lisp.

Methods
Reader Method: usage-count ((basic-waiting-call basic-waiting-call))

automatically generated reader method

Source

types.lisp.

Target Slot

%usage-count.

Generic Writer: (setf usage-count) (waiting-call)
Package

de-mock-racy.

Source

generics.lisp.

Methods
Writer Method: (setf usage-count) ((basic-waiting-call basic-waiting-call))

automatically generated writer method

Source

types.lisp.

Target Slot

%usage-count.

Generic Reader: usage-counter (waiting-call)
Package

de-mock-racy.

Source

generics.lisp.

Methods
Reader Method: usage-counter ((basic-waiting-call basic-waiting-call))

automatically generated reader method

Source

types.lisp.

Target Slot

%usage-counter.

Generic Writer: (setf usage-counter) (waiting-call)
Package

de-mock-racy.

Source

generics.lisp.

Methods
Writer Method: (setf usage-counter) ((basic-waiting-call basic-waiting-call))

automatically generated writer method

Source

types.lisp.

Target Slot

%usage-counter.

Generic Function: waiting-call-accept-p (waiting-call mock-controller label arguments)
Package

de-mock-racy.

Source

generics.lisp.

Methods
Method: waiting-call-accept-p ((waiting-call basic-waiting-call) mock-controller label arguments)
Source

methods.lisp.

Generic Reader: waiting-call-class (basic-waiting-calls)
Package

de-mock-racy.

Source

generics.lisp.

Methods
Reader Method: waiting-call-class ((basic-waiting-calls basic-waiting-calls))

automatically generated reader method

Source

types.lisp.

Target Slot

%waiting-call-class.

Generic Function: waiting-call-invoke (waiting-call mock-controller label arguments thunk)
Package

de-mock-racy.

Source

generics.lisp.

Methods
Method: waiting-call-invoke ((waiting-call basic-waiting-call) mock-controller label arguments thunk)
Source

methods.lisp.

Generic Function: waiting-call-used-up-p (waiting-call)
Package

de-mock-racy.

Source

generics.lisp.

Methods
Method: waiting-call-used-up-p ((waiting-call basic-waiting-call))
Source

methods.lisp.

Generic Reader: waiting-calls (mock-controller)
Package

de-mock-racy.

Source

generics.lisp.

Methods
Reader Method: waiting-calls ((basic-mock-controller basic-mock-controller))

automatically generated reader method

Source

types.lisp.

Target Slot

%waiting-calls.

Generic Function: waiting-calls-enque (waiting-calls &rest arguments)
Package

de-mock-racy.

Source

generics.lisp.

Methods
Method: waiting-calls-enque ((waiting-calls basic-waiting-calls) &rest arguments)
Source

methods.lisp.

Generic Function: waiting-calls-every-used-up-p (waiting-calls)
Package

de-mock-racy.

Source

generics.lisp.

Methods
Method: waiting-calls-every-used-up-p ((waiting-calls basic-waiting-calls))
Source

methods.lisp.

Generic Function: waiting-calls-find-matching (waiting-calls mock-controller label arguments)
Package

de-mock-racy.

Source

generics.lisp.

Methods
Method: waiting-calls-find-matching ((waiting-calls basic-waiting-calls) mock-controller label arguments)
Source

methods.lisp.


5.1.5 Conditions

Condition: no-mock-implementation-error
Package

de-mock-racy.

Source

types.lisp.

Direct superclasses

error.

Direct methods
Direct slots
Slot: %label
Initargs

:label

Readers

no-mock-implementation-error-label.

Writers

This slot is read-only.

Slot: %arguments
Initargs

:arguments

Readers

no-mock-implementation-error-arguments.

Writers

This slot is read-only.


5.1.6 Classes

Class: basic-mock-controller
Package

de-mock-racy.

Source

types.lisp.

Direct methods
Direct Default Initargs
InitargValue
:waiting-calls(make-instance (quote basic-waiting-calls))
Direct slots
Slot: %waiting-calls
Initargs

:waiting-calls

Readers

waiting-calls.

Writers

This slot is read-only.

Class: basic-waiting-call
Package

de-mock-racy.

Source

types.lisp.

Direct methods
Direct Default Initargs
InitargValue
:usage-count1
Direct slots
Slot: %implementation-closure
Initargs

:implementation

Readers

implementation-closure.

Writers

This slot is read-only.

Slot: %filter-closure
Initargs

:filter

Readers

filter-closure.

Writers

This slot is read-only.

Slot: %usage-count
Initargs

:usage-count

Readers

usage-count.

Writers

(setf usage-count).

Slot: %usage-counter
Initform

0

Readers

usage-counter.

Writers

(setf usage-counter).

Class: basic-waiting-calls
Package

de-mock-racy.

Source

types.lisp.

Direct methods
Direct Default Initargs
InitargValue
:waiting-call-class(quote basic-waiting-call)
:content(make-array 0 adjustable t fill-pointer 0)
Direct slots
Slot: %content
Initargs

:content

Readers

content.

Writers

This slot is read-only.

Slot: %waiting-call-class
Initargs

:waiting-call-class

Readers

waiting-call-class.

Writers

This slot is read-only.


5.2 Internals


Appendix A Indexes


A.1 Concepts


A.2 Functions

Jump to:   (  
C   D   E   F   G   I   M   N   U   W  
Index Entry  Section

(
(setf usage-count): Public generic functions
(setf usage-count): Public generic functions
(setf usage-counter): Public generic functions
(setf usage-counter): Public generic functions

C
call-thunk: Public ordinary functions
content: Public generic functions
content: Public generic functions

D
define-mock-method: Public macros

E
execute-mockable-block: Public ordinary functions
execute-mockable-block*: Public generic functions
execute-mockable-block*: Public generic functions
execute-mockable-block*: Public generic functions
execute-mockable-block*: Public generic functions

F
filter: Public macros
filter-closure: Public generic functions
filter-closure: Public generic functions
Function, call-thunk: Public ordinary functions
Function, execute-mockable-block: Public ordinary functions
Function, waiting-calls-enque-many*: Public ordinary functions

G
Generic Function, (setf usage-count): Public generic functions
Generic Function, (setf usage-counter): Public generic functions
Generic Function, content: Public generic functions
Generic Function, execute-mockable-block*: Public generic functions
Generic Function, filter-closure: Public generic functions
Generic Function, implementation-closure: Public generic functions
Generic Function, no-mock-implementation-error-arguments: Public generic functions
Generic Function, no-mock-implementation-error-label: Public generic functions
Generic Function, usage-count: Public generic functions
Generic Function, usage-counter: Public generic functions
Generic Function, waiting-call-accept-p: Public generic functions
Generic Function, waiting-call-class: Public generic functions
Generic Function, waiting-call-invoke: Public generic functions
Generic Function, waiting-call-used-up-p: Public generic functions
Generic Function, waiting-calls: Public generic functions
Generic Function, waiting-calls-enque: Public generic functions
Generic Function, waiting-calls-every-used-up-p: Public generic functions
Generic Function, waiting-calls-find-matching: Public generic functions

I
implementation: Public macros
implementation-closure: Public generic functions
implementation-closure: Public generic functions

M
Macro, define-mock-method: Public macros
Macro, filter: Public macros
Macro, implementation: Public macros
Macro, mockable-block: Public macros
Macro, waiting-calls-enque-many: Public macros
Method, (setf usage-count): Public generic functions
Method, (setf usage-counter): Public generic functions
Method, content: Public generic functions
Method, execute-mockable-block*: Public generic functions
Method, execute-mockable-block*: Public generic functions
Method, execute-mockable-block*: Public generic functions
Method, filter-closure: Public generic functions
Method, implementation-closure: Public generic functions
Method, no-mock-implementation-error-arguments: Public generic functions
Method, no-mock-implementation-error-label: Public generic functions
Method, usage-count: Public generic functions
Method, usage-counter: Public generic functions
Method, waiting-call-accept-p: Public generic functions
Method, waiting-call-class: Public generic functions
Method, waiting-call-invoke: Public generic functions
Method, waiting-call-used-up-p: Public generic functions
Method, waiting-calls: Public generic functions
Method, waiting-calls-enque: Public generic functions
Method, waiting-calls-every-used-up-p: Public generic functions
Method, waiting-calls-find-matching: Public generic functions
mockable-block: Public macros

N
no-mock-implementation-error-arguments: Public generic functions
no-mock-implementation-error-arguments: Public generic functions
no-mock-implementation-error-label: Public generic functions
no-mock-implementation-error-label: Public generic functions

U
usage-count: Public generic functions
usage-count: Public generic functions
usage-counter: Public generic functions
usage-counter: Public generic functions

W
waiting-call-accept-p: Public generic functions
waiting-call-accept-p: Public generic functions
waiting-call-class: Public generic functions
waiting-call-class: Public generic functions
waiting-call-invoke: Public generic functions
waiting-call-invoke: Public generic functions
waiting-call-used-up-p: Public generic functions
waiting-call-used-up-p: Public generic functions
waiting-calls: Public generic functions
waiting-calls: Public generic functions
waiting-calls-enque: Public generic functions
waiting-calls-enque: Public generic functions
waiting-calls-enque-many: Public macros
waiting-calls-enque-many*: Public ordinary functions
waiting-calls-every-used-up-p: Public generic functions
waiting-calls-every-used-up-p: Public generic functions
waiting-calls-find-matching: Public generic functions
waiting-calls-find-matching: Public generic functions


A.4 Data types

Jump to:   B   C   D   F   G   M   N   P   S   T   V  
Index Entry  Section

B
basic-mock-controller: Public classes
basic-waiting-call: Public classes
basic-waiting-calls: Public classes

C
Class, basic-mock-controller: Public classes
Class, basic-waiting-call: Public classes
Class, basic-waiting-calls: Public classes
Condition, no-mock-implementation-error: Public conditions

D
de-mock-racy: The de-mock-racy system
de-mock-racy: The de-mock-racy package
de-mock-racy.asd: The de-mock-racy/de-mock-racy․asd file

F
File, de-mock-racy.asd: The de-mock-racy/de-mock-racy․asd file
File, functions.lisp: The de-mock-racy/functions․lisp file
File, generics.lisp: The de-mock-racy/generics․lisp file
File, macros.lisp: The de-mock-racy/macros․lisp file
File, methods.lisp: The de-mock-racy/methods․lisp file
File, package.lisp: The de-mock-racy/package․lisp file
File, types.lisp: The de-mock-racy/types․lisp file
File, variables.lisp: The de-mock-racy/variables․lisp file
functions.lisp: The de-mock-racy/functions․lisp file

G
generics.lisp: The de-mock-racy/generics․lisp file

M
macros.lisp: The de-mock-racy/macros․lisp file
methods.lisp: The de-mock-racy/methods․lisp file

N
no-mock-implementation-error: Public conditions

P
Package, de-mock-racy: The de-mock-racy package
package.lisp: The de-mock-racy/package․lisp file

S
System, de-mock-racy: The de-mock-racy system

T
types.lisp: The de-mock-racy/types․lisp file

V
variables.lisp: The de-mock-racy/variables․lisp file