io.github.hglabplh_tech.spy-and-mock.mocking-jay

any-boolean?

(any-boolean? value)

any-byte?

(any-byte? value)

any-char?

(any-char? value)

any-collection?

(any-collection? value)

any-double?

(any-double? value)

any-float?

(any-float? value)

any-int?

(any-int? value)

any-list?

(any-list? value)

any-long?

(any-long? value)

any-map?

(any-map? value)

any-object?

(any-object? value)

any-set-of?

(any-set-of? value pred)

any-set?

(any-set? value)

any-short?

(any-short? value)

any-string?

(any-string? value)

any-vararg?

(any-vararg? value)

call-cond->

(call-cond-> fun cond? ret-val-predicate delim args-vect when-action-vect else? else-action-vect)

collect-flow-calls

(collect-flow-calls func-name ret-value & args)

collect-meta-active-data

(collect-meta-active-data func-name func-meta)

collect-meta-by-ns

(collect-meta-by-ns the-fun-ns)

do-nothing

(do-nothing dummy)

filter-action

(filter-action func func-name & args)

filter-stack-data

(filter-stack-data real-ns base-fun the-rest fname-st-element lineno-st-element invocation-type ns-sym-vect fun-meta)

find-action-rule-for-fun

(find-action-rule-for-fun func-name)

find-in-list

(find-in-list the-list to-find)

find-meta-for-fun

(find-meta-for-fun func-name)

find-mocked-fun

(find-mocked-fun func-name)

find-ns-data

(find-ns-data)

fun-spy-call

(fun-spy-call fun fun-meta stack-trace-data)

get-it-spyed

(get-it-spyed fun fun-meta stack-trace-data)

get-processed-stackdata

(get-processed-stackdata stack-trace fun-meta)

get-set-of?

(get-set-of? pred)

get-type-pred-by-key

(get-type-pred-by-key key)

make-fn

macro

(make-fn m)

mock

macro

(mock & namespaces)
mocks 1..n functions take care and only mock if the functions call things which you do not want to have
in your UNIT - Test AND which are extern to your project otherwise if this is neccessary
you may have to do a redesign of this part for in a well designed project this should NEVER
be needed if itfis your own code

mock-control-flow

mock-hook

(mock-hook sut)
Add some basic instrumentation to each var in a given namespace `sut`.
A poor man's profiler, this simply prints out the name of each
fn (var) when run.

mock-meta

ns-f-meta-atom

prolog

macro

(prolog key & names)

redirected-bindings

restore-orig-funs

macro

(restore-orig-funs & names)
restore the functions to original references

restore-real-fun

(restore-real-fun sut)

return-val

(return-val value)

rule-vect

spy

macro

(spy & name-spaces)

spy-hook

(spy-hook sut)
This hook adds spy functionality to get data for profiling and
test data generation and more

store-real-fun

(store-real-fun fun-name meta-ns-name meta-fun-name fun-meta-data)

the-prolog-1

(the-prolog-1 var-name)

throw-ex

(throw-ex excp)

type-predicate-map