This is the factory-alien Reference Manual, version 0.0.3, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 05:08:49 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
factory-alien
Factory alien is a library for generating fixture data for testing applications.
Matt Novenstern <fisxoj@gmail.com>
MIT
.. image:: https://travis-ci.org/fisxoj/factory-alien.svg?branch=master
:target: https://travis-ci.org/fisxoj/factory-alien
:alt: Travis CI status badge
.. image:: https://coveralls.io/repos/github/fisxoj/factory-alien/badge.svg?branch=master
:target: https://coveralls.io/github/fisxoj/factory-alien?branch=master
:alt: Coveralls status badge
.. image:: https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg
:alt: Contributor Covenant
:target: CODE_OF_CONDUCT.md
:Source: ‘https://github.com/fisxoj/factory-alien <https://github.com/fisxoj/factory-alien>‘_ :Docs: ‘https://fisxoj.github.io/factory-alien/ <https://fisxoj.github.io/factory-alien/>‘_
factory-alien is a common lisp library that’s probably awesome.
——-
Example
——-
0.0.3
alexandria
(system).
closer-mop
(system).
sequences.lisp
(file).
traits.lisp
(file).
factories.lisp
(file).
factory-alien.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
factory-alien/factory-alien.asd
factory-alien/sequences.lisp
factory-alien/traits.lisp
factory-alien/factories.lisp
factory-alien/factory-alien.lisp
factory-alien/sequences.lisp
factory-alien
(system).
call-sequence
(function).
define-sequence
(macro).
make-anonymous-sequence
(function).
reset-sequence
(function).
reset-sequences
(function).
*anonymous-sequence-counter*
(special variable).
*sequence-state*
(special variable).
copy-sequence
(function).
make-sequence
(function).
sequence
(structure).
sequence-funcallable
(reader).
(setf sequence-funcallable)
(writer).
sequence-initial-value
(reader).
(setf sequence-initial-value)
(writer).
sequence-p
(function).
sequence-value
(reader).
(setf sequence-value)
(writer).
factory-alien/traits.lisp
factory-alien
(system).
collect-slot-values
(function).
process-trait-definitions
(function).
initialize-slot
(generic function).
make-trait-initializer
(generic function).
merge-traits
(function).
resolve-traits
(function).
factory-alien/factories.lisp
factory-alien
(system).
build-many
(generic function).
find-factory
(function).
slot-value
(function).
(setf slot-value)
(function).
*factories*
(special variable).
build
(generic function).
define-factory
(macro).
factory
(class).
get-default-trait
(function).
id-field-p
(function).
instantiable-class
(reader method).
no-such-factory
(condition).
parent-factories
(reader method).
traits
(reader method).
Packages are listed by definition order.
factory-alien.factories
common-lisp
.
build-many
(generic function).
find-factory
(function).
slot-value
(function).
(setf slot-value)
(function).
*factories*
(special variable).
build
(generic function).
define-factory
(macro).
factory
(class).
get-default-trait
(function).
id-field-p
(function).
instantiable-class
(generic reader).
no-such-factory
(condition).
parent-factories
(generic reader).
traits
(generic reader).
factory-alien.traits
common-lisp
.
collect-slot-values
(function).
process-trait-definitions
(function).
initialize-slot
(generic function).
make-trait-initializer
(generic function).
merge-traits
(function).
resolve-traits
(function).
factory-alien.sequences
common-lisp
.
call-sequence
(function).
define-sequence
(macro).
make-anonymous-sequence
(function).
reset-sequence
(function).
reset-sequences
(function).
*anonymous-sequence-counter*
(special variable).
*sequence-state*
(special variable).
copy-sequence
(function).
make-sequence
(function).
sequence
(structure).
sequence-funcallable
(reader).
(setf sequence-funcallable)
(writer).
sequence-initial-value
(reader).
(setf sequence-initial-value)
(writer).
sequence-p
(function).
sequence-value
(reader).
(setf sequence-value)
(writer).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Takes a symbol or class and, if a symbol is given, calls :function:‘find-class‘ on it.
Takes a function of one argument and returns the name of the sequence that calls that function.
Creates an alist of (trait-name . slot-initializer-alist), where slot-initializer-alist contains an alist mapping slot name keyword to a function that provides the value for that slot.
Like :variable:‘*gensym-counter*‘, gets used to generate unique names for anonymous sequences.
A map of factory names (as keywords) to instances of :class:‘factory‘.
The counters for every sequence as a mapping of symbol to an instance of :class:‘sequence‘. Named sequences are stored as their keyword symbol, anonymous sequences are given a numbered name by :function:‘make-anonymous-sequence‘.
If a field exists in b, it takes precedence over the field in a, but all fields in a OR b should end up in the final alist. Modifies b in-place for PERFORMANCE.
Given an alist of (slot-name . slot-initializer), call :function:‘initialize-slot‘ on each and return a new alist of (name . value).
condition
.
:factory-name
A factory that holds things like the traits defined for the factory, the classes factories it’s related to, and the class to build.
List of parent factories that should be run and merged into instances of this one.
:parent-factories
This slot is read-only.
The class to make an instance of.
:instantiable-class
This slot is read-only.
Jump to: | (
B C D F G I M P R S T |
---|
Jump to: | (
B C D F G I M P R S T |
---|
Jump to: | *
F I P S T V |
---|
Jump to: | *
F I P S T V |
---|
Jump to: | C F N P S T |
---|
Jump to: | C F N P S T |
---|