Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
B

6‡Çd²’ã@s dZdd„Zdd„Zdd„ZdS)z"Determine contexts for coverage.pycs,ˆsdStˆƒdkrˆdS‡fdd„}|S)aCreate a single context switcher from multiple switchers.

    `context_switchers` is a list of functions that take a frame as an
    argument and return a string to use as the new context label.

    Returns a function that composites `context_switchers` functions, or None
    if `context_switchers` is an empty list.

    When invoked, the combined switcher calls `context_switchers` one-by-one
    until a string is returned.  The combined switcher returns None if all
    `context_switchers` return None.
    Néécs&x ˆD]}||ƒ}|dk	r|SqWdS)z,The combiner for multiple context switchers.N©)ÚframeZswitcherZnew_context)Úcontext_switchersrú/build/wlanpi-profiler-7IIg1Q/wlanpi-profiler-1.0.11/debian/wlanpi-profiler/opt/wlanpi-profiler/lib/python3.7/site-packages/coverage/context.pyÚshould_start_contexts

z7combine_context_switchers.<locals>.should_start_context)Úlen)rrr)rrÚcombine_context_switcherss
r	cCs&|jj}| d¡s|dkr"t|ƒSdS)z(Is this frame calling a test_* function?ÚtestZrunTestN)Úf_codeÚco_nameÚ
startswithÚqualname_from_frame)rrrrrÚ"should_start_context_test_function%srcCs®|j}|j}d}|jr>|jddkr>|j dd¡}t||dƒ}|dkrl|j |¡}|dkr^dS|jd|St|ddƒ}|dkrž|j	}|jd|j
d|S|jd|jS)z5Get a qualified name for the code running in `frame`.NrÚselfÚ.Ú__func__)rrÚco_argcountÚco_varnamesÚf_localsÚgetÚgetattrÚ	f_globalsÚ
__module__Ú	__class__Ú__name__Ú__qualname__)rÚcoÚfnameÚmethodrÚfuncÚclsrrrr-s rN)Ú__doc__r	rrrrrrÚ<module>s