All Downloads are FREE. Search and download functionalities are using the official Maven repository.

clojure.spec.test__init.class Maven / Gradle / Ivy

The newest version!
????1?clojure/spec/test__initjava/lang/Objectload()Vconst__0Lclojure/lang/Var;		clojure/lang/Var
getRawRoot()Ljava/lang/Object;

clojure/lang/IFnconst__1Lclojure/lang/AFn;	invoke&(Ljava/lang/Object;)Ljava/lang/Object;.clojure/spec/test$loading__7732__auto____13329
 clojure/lang/Symbol"const__2$	%equals(Ljava/lang/Object;)Z'(
#)clojure/spec/test$fn__13331+
,java/util/concurrent/Callable.clojure/lang/LockingTransaction0runInTransaction3(Ljava/util/concurrent/Callable;)Ljava/lang/Object;23
14const__36	7const__49	:const__5<	=const__6?	@const__7B	C8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;EFconst__8H	I	const__17K	Lclojure/lang/IPersistentMapNsetMeta (Lclojure/lang/IPersistentMap;)VPQ
R"clojure/spec/test$throwable_QMARK_T
UbindRoot(Ljava/lang/Object;)VWX
Y	const__18[	\	const__21^	_clojure/spec/test$__GT_syma
b	const__22d	e	const__25g	hclojure/spec/test$__GT_varj
k	const__26m	n	const__29p	qclojure/spec/test$collectionizes
t	const__30v	w	const__34y	z%clojure/spec/test$enumerate_namespace|
}	const__35	?
setDynamic(Z)Lclojure/lang/Var;??
?	const__38?	?java/lang/Boolean?TRUELjava/lang/Boolean;??	??	const__39?	?	const__42?	? clojure/spec/test$fn_spec_QMARK_?
?	const__43?	?	const__46?	?*clojure/spec/test$with_instrument_disabled?
?setMacro?
?	const__47?	?	const__50?	?/clojure/spec/test$interpret_stack_trace_element?
?	const__51?	?	const__54?	?3clojure/spec/test$stacktrace_relevant_to_instrument?
?	const__55?	?	const__58?	?"clojure/spec/test$spec_checking_fn?
?	const__59?	?	const__62?	?clojure/spec/test$no_fspec?
?clojure/spec/test$fn__13375?
?	const__63?	?	const__66?	?&clojure/spec/test$instrument_choose_fn?
?	const__67?	?	const__70?	?(clojure/spec/test$instrument_choose_spec?
?	const__71?	?	const__74?	?clojure/spec/test$instrument_1?
?	const__75?	?	const__78?	?clojure/spec/test$unstrument_1?
?	const__79?	?	const__82?	?clojure/spec/test$opt_syms?
?	const__83?	?	const__86?	?%clojure/spec/test$fn_spec_name_QMARK_?
?	const__87		const__90	%clojure/spec/test$instrumentable_syms
	const__91
		const__94
	clojure/spec/test$instrument
	const__95		const__98	clojure/spec/test$unstrument
	const__99	
const__102	 clojure/spec/test$explain_check"
#
const__103%	&
const__106(	)clojure/spec/test$check_call+
,
const__107.	/
const__1101	2clojure/spec/test$quick_check4
5
const__1117	8
const__114:	;#clojure/spec/test$make_check_result=
>
const__115@	A
const__118C	Dclojure/spec/test$check_1F
G
const__119I	J
const__122L	M#clojure/spec/test$sym__GT_check_mapO
P
const__123R	S
const__126U	V%clojure/spec/test$validate_check_optsX
Y
const__127[	\
const__130^	_clojure/spec/test$check_fna
b
const__131d	e
const__134g	h clojure/spec/test$checkable_symsj
k
const__135m	n
const__138p	qclojure/spec/test$checks
t
const__139v	w
const__142y	zclojure/spec/test$failure_type|
}
const__143	?
const__146?	? clojure/spec/test$unwrap_failure?
?
const__147?	?
const__150?	?clojure/spec/test$result_type?
?
const__151?	?
const__154?	?clojure/spec/test$abbrev_result?
?
const__155?	?
const__158?	?#clojure/spec/test$summarize_results?
?__init0clojure.core?in-ns?clojure/lang/RT?var8(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Var;??
??clojure.spec.test?intern;(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Symbol;??
#?clojure/lang/AFn?clojure.spec.test.check?alias?stc?
throwable??private?keyword<(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Keyword;??
??arglists?x?clojure/lang/Tuple?create4(Ljava/lang/Object;)Lclojure/lang/IPersistentVector;??
??java/util/Arrays?asList%([Ljava/lang/Object;)Ljava/util/List;??
??clojure/lang/PersistentList?0(Ljava/util/List;)Lclojure/lang/IPersistentList;??
??line?java/lang/Integer?valueOf(I)Ljava/lang/Integer;??
??column?file?clojure/spec/test.clj?map2([Ljava/lang/Object;)Lclojure/lang/IPersistentMap;??
??->sym?->var?s-or-v?
collectionize?enumerate-namespace?ns-sym-or-syms?doc?wGiven a symbol naming an ns, or a collection of such symbols,
returns the set of all symbols naming vars in those nses.?*instrument-enabled*?dynamic?0if false, instrumented fns call straight through?fn-spec?m2Fn-spec must include at least :args or :ret specs.with-instrument-disabled&	bodyF(Ljava/lang/Object;Ljava/lang/Object;)Lclojure/lang/IPersistentVector;?
?8Disables instrument's checking of calls, within a scope.interpret-stack-trace-elementclsmethodj(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lclojure/lang/IPersistentVector;?
?(Given the vector-of-syms form of a stacktrace element produced
by e.g. Throwable->map, returns a map form that adds some keys
guessing the original Clojure names. Returns a map with

  :class         class name symbol from stack trace
  :method        method symbol from stack trace
  :file          filename from stack trace
  :line          line number from stack trace
  :var-scope     optional Clojure var symbol scoping fn def
  :local-fn      optional local Clojure symbol scoping fn def

For non-Clojure fns, :scope and :local-fn will be absent.!stacktrace-relevant-to-instrumentelems?Takes a coll of stack trace elements (as returned by
StackTraceElement->vec) and returns a coll of maps as per
interpret-stack-trace-element that are relevant to a
failure in instrument.!spec-checking-fn#v%f'fn-spec)X(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lclojure/lang/IPersistentVector;?+
?,no-fspec.spec0instrument-choose-fn2sym4over6gen8keys:stub<replace>Helper for instrument.@instrument-choose-specB	overridesDHelper for instrumentFinstrument-1HsJoptsLunstrument-1Nopt-symsP:Returns set of symbols referenced by 'instrument' opts mapR
fn-spec-name?Tinstrumentable-symsV"()Lclojure/lang/IPersistentVector;?X
?YVGiven an opts map as per instrument, returns the set of syms
that can be instrumented.[
instrument]sym-or-syms_?Instruments the vars named by sym-or-syms, a symbol or collection
of symbols, or all instrumentable vars if sym-or-syms is not
specified.

If a var has an :args fn-spec, sets the var's root binding to a
fn that checks arg conformance (throwing an exception on failure)
before delegating to the original fn.

The opts map can be used to override registered specs, and/or to
replace fn implementations entirely. Opts for symbols not included
in sym-or-syms are ignored. This facilitates sharing a common
options map across many different calls to instrument.

The opts map may have the following keys:

  :spec     a map from var-name symbols to override specs
  :stub     a set of var-name symbols to be replaced by stubs
  :gen      a map from spec names to generator overrides
  :replace  a map from var-name symbols to replacement fns

:spec overrides registered fn-specs with specs your provide. Use
:spec overrides to provide specs for libraries that do not have
them, or to constrain your own use of a fn to a subset of its
spec'ed contract.

:stub replaces a fn with a stub that checks :args, then uses the
:ret spec to generate a return value.

:gen overrides are used only for :stub generation.

:replace replaces a fn with a fn that checks args conformance, then
invokes the fn you provide, enabling arbitrary stubbing and mocking.

:spec can be used in combination with :stub or :replace.

Returns a collection of syms naming the vars instrumented.a
unstrumentc?Undoes instrument on the vars named by sym-or-syms, specified
as in instrument. With no args, unstruments all instrumented vars.
Returns a collection of syms naming the vars unstrumented.e
explain-checkg__init1argsjrolel
check-callnspecspdReturns true if call passes specs, otherwise *returns* an exception
with explain-data + ::s/failure.rquick-checktmake-check-resultv	check-symxtest-check-retzBuilds spec result map.|check-1~sym->check-map?validate-check-opts?check-fn?WRuns generative tests for fn f using spec and opts. See
'check' for options and return.?checkable-syms?LGiven an opts map as per check, returns the set of syms that
can be checked.?check??Run generative tests for spec conformance on vars named by
sym-or-syms, a symbol or collection of symbols. If sym-or-syms
is not specified, check all checkable vars.

The opts map includes the following optional keys, where stc
aliases clojure.spec.test.check: 

::stc/opts  opts to flow through test.check/quick-check
:gen        map from spec names to generator overrides

The ::stc/opts include :num-tests in addition to the keys
documented by test.check. Generator overrides are passed to
spec/gen when generating function args.

Returns a lazy sequence of check result maps with the following
keys

:spec       the spec tested
:sym        optional symbol naming the var tested
:failure    optional test failure
::stc/ret   optional value returned by test.check/quick-check

The value for :failure can be any exception. Exceptions thrown by
spec itself will have an ::s/failure value in ex-data:

:check-failed   at least one checked return did not conform
:no-args-spec   no :args spec provided
:no-fn          no fn provided
:no-fspec       no fspec provided
:no-gen         unable to generate :args
:instrument     invalid args detected by instrument
?failure-type?unwrap-failure?result-type?ret??Returns the type of the check result. This can be any of the
::s/failure keywords documented in 'check', or:

  :check-passed   all checked fn returns conformed
  :check-threw    checked fn threw an exception?
abbrev-result?NGiven a check result, returns an abbreviated version
suitable for summary use.?summarize-results?
check-results?summary-result??Given a collection of check-results, e.g. from 'check', pretty
prints the summary-result (default abbrev-result) of each.

Returns a map with :total, the total number of results, plus a
key with a count for each different :type of result.??
?i
?clojure.spec.test__init?classForName%(Ljava/lang/String;)Ljava/lang/Class;??
??java/lang/Class?getClassLoader()Ljava/lang/ClassLoader;??
??clojure/lang/Compiler?pushNSandLoader(Ljava/lang/ClassLoader;)V??
??
?popThreadBindings?
?CodeLineNumberTable!P$69<?BHK[^dgmpvy?????????????????????????

%(.17:@CILRU[^dgmpvy???????	?J0??
?????Y???!??#?&?*??W?,Y?-?/?5W?
???8??
???;??>???A?D?G?JY?M?O?SY?UY?V?Z?]Y?`?O?SY?bY?c?Z?fY?i?O?SY?kY?l?Z?oY?r?O?SY?tY?u?Z?xY?{?O?SY?}Y?~?Z????Y???O?SY???Z??Y???O?SY??Y???Z??Y???O?SY??Y???Z?????????Y???O?SY??Y???Z??Y???O?SY??Y???Z??Y???O?SY??Y???Z??Y???O?SY??Y?ǶZ??Y????!??Y???O?SY??Y?ӶZ??Y???O?SY??Y?ܶZ??Y???O?SY??Y??Z??Y???O?SY??Y??Z??Y???O?SY??Y???Z??Y???O?SY??Y??Z?Y??O?SY?Y?	?Z?Y??O?SY?Y??Z?Y??O?SY?Y??Z?Y?!?O?SY?#Y?$?Z?'Y?*?O?SY?,Y?-?Z?0Y?3?O?SY?5Y?6?Z?9Y?Y???Z?BY?E?O?SY?GY?H?Z?KY?N?O?SY?PY?Q?Z?TY?W?O?SY?YY?Z?Z?]Y?`?O?SY?bY?c?Z?fY?i?O?SY?kY?l?Z?oY?r?O?SY?tY?u?Z?xY?{?O?SY?}Y?~?Z??Y???O?SY??Y???Z??Y???O?SY??Y???Z??Y???O?SY??Y???Z??Y???O?SY??Y???Z??B				 	)	>	IOZ`kt?D????	??????????
????????????&??????8??????;??????>??????A??????D??????J
?Y???SY??SYŸ?SY?YǸ???S?Ӹ?SYڸ?SY??SY??SY??SY??SY	?S?????M?????]?YŸ?SY?YǸ???S?Ӹ?SYڸ?SY??SY??SY??SY??SY?S?????`?????f
?Y???SY??SYŸ?SY?Y????S?Ӹ?SYڸ?SY??SY??SY??SY??SY	?S?????i?????o
?Y???SY??SYŸ?SY?YǸ???S?Ӹ?SYڸ?SY&??SY??SY??SY??SY	?S?????r??????x
?YŸ?SY?Y?????S?Ӹ?SY???SY?SYڸ?SY,??SY??SY??SY??SY	?S?????{????????Y???SY??SY???SY??SYڸ?SY;??SY??SY??SY??SY	?SY
???SYS?????????????Y???SY??SYŸ?SY?Y????S?Ӹ?SY???SYSYڸ?SY???SY??SY	??SY
??SY?S????????????
?YŸ?SY?Y
?????S?Ӹ?SY???SYSYڸ?SYD??SY??SY??SY??SY	?S?????????????Y???SY??SYŸ?SY?Y??????ڸ????S?Ӹ?SY???SYSYڸ?SYJ??SY??SY	??SY
??SY?S?????????????Y???SY??SYŸ?SY?Y ????S?Ӹ?SY???SY"SYڸ?SYg??SY??SY	??SY
??SY?S???????$?????
?Y???SY??SYŸ?SY?Y&??(??*???-S?Ӹ?SYڸ?SYu??SY??SY??SY??SY	?S???????/?????
?Y???SY??SYŸ?SY?Y&??1???S?Ӹ?SYڸ?SY???SY??SY??SY??SY	?S???????3??????Y???SY??SYŸ?SY?Y(??1??5???Y7??SY9??SY;??SY=??????S??S?Ӹ?SY???SYASYڸ?SY???SY??SY	??SY
??SY?S???????C??????Y???SY??SYŸ?SY?Y1??5???YE??SY1??S??-S?Ӹ?SY???SYGSYڸ?SY???SY??SY	??SY
??SY?S???????I?????
?Y???SY??SYŸ?SY?YK??M???S?Ӹ?SYڸ?SY???SY??SY??SY??SY	?S???????O?????
?Y???SY??SYŸ?SY?YK????S?Ӹ?SYڸ?SY???SY??SY??SY??SY	?S???????Q??????Y???SY??SYŸ?SY?YM????S?Ӹ?SY???SYSSYڸ?SY???SY??SY	??SY
??SY?S???????U?????
?Y???SY??SYŸ?SY?YK????S?Ӹ?SYڸ?SY¸?SY??SY??SY??SY	?S???????W????
?YŸ?SY?Y?ZSYM????S?Ӹ?SY???SY\SYڸ?SYǸ?SY??SY??SY??SY	?S??????^????
?YŸ?SY?Y?ZSY`????SY`??M???S?Ӹ?SY???SYbSYڸ?SYҸ?SY??SY??SY??SY	?S??????d????
?YŸ?SY?Y?ZSY`????S?Ӹ?SY???SYfSYڸ?SY??SY??SY??SY??SY	?S??????h?????	i?	-	!
?Y???SY??SYŸ?SY?Yk??1??&??m???S?Ӹ?SYڸ?SY??SY??SY??SY??SY	?S?????!?o????'?Y???SY??SYŸ?SY?Y(??q??k???-S?Ӹ?SY???SYsSYڸ?SY??SY??SY	??SY
??SY?S?????*?u????0
?Y???SY??SYŸ?SY?Y(??q???Y9??SY9??SYM??SY?M??S??-S?Ӹ?SYڸ?SY.??SY??SY??SY??SY	?S?????3?w????9?Y???SY??SYŸ?SY?Yy??1??{???-S?Ӹ?SY???SY}SYڸ?SY7??SY??SY	??SY
??SY?S?????<?????B
?Y???SY??SYŸ?SY?Y?Y;??SYK??(??&??1???S??M???S?Ӹ?SYڸ?SYC??SY??SY??SY??SY	?S?????E??????K
?Y???SY??SYŸ?SY?YK????S?Ӹ?SYڸ?SYX??SY??SY??SY??SY	?S?????N??????T
?Y???SY??SYŸ?SY?YM????S?Ӹ?SYڸ?SY_??SY??SY??SY??SY	?S?????W??????]
?YŸ?SY?Y(??1???SY(??1??M???-S?Ӹ?SY???SY?SYڸ?SYc??SY??SY??SY??SY	?S?????`??????f
?YŸ?SY?Y?ZSYM????S?Ӹ?SY???SY?SYڸ?SYk??SY??SY??SY??SY	?S?????i??????o
?YŸ?SY?Y?ZSY`????SY`??M???S?Ӹ?SY???SY?SYڸ?SYt??SY??SY??SY??SY	?S?????r??????x
?Y???SY??SYŸ?SY?YǸ???S?Ӹ?SYڸ?SY???SY??SY??SY??SY	?S?????{???????
?Y???SY??SYŸ?SY?YǸ???S?Ӹ?SYڸ?SY???SY??SY??SY??SY	?S??????????????Y???SY??SYŸ?SY?Y?????S?Ӹ?SY???SY?SYڸ?SY???SY??SY	??SY
??SY?S?????????????
?YŸ?SY?YǸ???S?Ӹ?SY???SY?SYڸ?SY???SY??SY??SY??SY	?S?????????????
?YŸ?SY?Y?????SY???????S?Ӹ?SY???SY?SYڸ?SY???SY??SY??SY??SY	?S???????	??4 ????????????????????




© 2015 - 2025 Weber Informatics LLC | Privacy Policy