Class | ClosingBytesIO |
A io.BytesIO instance that closes itself after all its data has been read. This mimics the behavior of http.client.HTTPResponse in the standard library. |
Class | InvReader |
Undocumented |
Class | InvWriter |
Undocumented |
Class | PydoctorLogger |
Partial implementation of pydoctor.model.System.msg() that records logged messages. |
Class | PydoctorNoLogger |
Partial implementation of pydoctor.model.System.msg() that asserts if any message is logged. |
Class | TestIntersphinxCache |
Tests for sphinx.IntersphinxCache |
Class | TestParseMaxAge |
Tests for sphinx.parseMaxAge |
Class | UnknownType |
Documentable type to help with testing. |
Function | cacheDirectory |
Undocumented |
Function | get_inv_writer_with_logger |
|
Function | inv_reader |
Undocumented |
Function | inv_reader_nolog |
Undocumented |
Function | inv_writer_nolog |
|
Function | test_ClosingBytesIO |
ClosingBytesIO closes itself when all its data has been read. |
Function | test_generate_empty_functional |
Functional test for index generation of empty API. |
Function | test_generateContent |
Return a string with inventory for all targeted objects, recursive. |
Function | test_generateLine_attribute |
Check inventory for attributes. |
Function | test_generateLine_class |
Check inventory for class. |
Function | test_generateLine_function |
Check inventory for function. |
Function | test_generateLine_method |
Check inventory for method. |
Function | test_generateLine_module |
Check inventory for module. |
Function | test_generateLine_package |
Check inventory for package. |
Function | test_generateLine_unknown |
When object type is uknown a message is logged and is handled as generic object. |
Function | test_getLink_found |
Return the link from internal state. |
Function | test_getLink_not_found |
Return None if link does not exists. |
Function | test_getLink_self_anchor |
Return the link with anchor as target name when link end with $. |
Function | test_getPayload_content |
Return content as string. |
Function | test_getPayload_empty |
Return empty string. |
Function | test_getPayload_invalid_decode |
Return empty string and log an error when failing to uncompress data. |
Function | test_getPayload_invalid_uncompress |
Return empty string and log an error when failing to uncompress data. |
Function | test_parseInventory_empty |
Return empty dict for empty input. |
Function | test_parseInventory_invalid_lines |
Skip line and log an error. |
Function | test_parseInventory_single_line |
Return a dict with a single member. |
Function | test_parseInventory_spaces |
Sphinx inventory lines always contain 5 values, separated by spaces. However, the first and fifth value can contain internal spaces. The parser must be able to tell apart separators from internal spaces. |
Function | test_parseInventory_type_filter |
Ignore entries that don't have a 'py:' type field. |
Function | test_prepareCache |
The cache directory is deleted when clearCache is True ; an IntersphinxCache is created with a session on which is mounted cachecontrol.CacheControlAdapter for http and https URLs. |
Function | test_update_bad_url |
Log an error when failing to get base url from url. |
Function | test_update_fail |
Log an error when failing to get content from url. |
Function | test_update_functional |
Functional test for updating from an empty inventory. |
Constant | IGNORE_SYSTEM |
Passed as a System when we don't want the system to be accessed. |
Variable | maxAgeAmounts |
Undocumented |
Variable | maxAgeUnits |
Undocumented |
Undocumented
Parameters | |
request:FixtureRequest | Undocumented |
tmp_path_factory:TempPathFactory | Undocumented |
Returns | |
Path | Undocumented |
Parameters | |
name:str | Undocumented |
version:str | Undocumented |
Returns | |
Tuple[ | Tuple of a Sphinx inventory writer connected to the logger. |
Returns | |
sphinx.SphinxInventoryWriter | A Sphinx inventory writer that is connected to a null logger. |
Functional test for index generation of empty API.
Header is plain text while content is compressed.
Parameters | |
inv_writer_nolog:sphinx.SphinxInventoryWriter | Undocumented |
Parameters | |
inv_writer_nolog:sphinx.SphinxInventoryWriter | Undocumented |
Parameters | |
inv_writer_nolog:sphinx.SphinxInventoryWriter | Undocumented |
Check inventory for function.
Functions are inside a module.
Parameters | |
inv_writer_nolog:sphinx.SphinxInventoryWriter | Undocumented |
Check inventory for method.
Methods are functions inside a class.
Parameters | |
inv_writer_nolog:sphinx.SphinxInventoryWriter | Undocumented |
Parameters | |
inv_writer_nolog:sphinx.SphinxInventoryWriter | Undocumented |
Parameters | |
inv_writer_nolog:sphinx.SphinxInventoryWriter | Undocumented |
Parameters | |
inv_reader_nolog:sphinx.SphinxInventory | Undocumented |
Parameters | |
inv_reader_nolog:sphinx.SphinxInventory | Undocumented |
Parameters | |
inv_reader_nolog:sphinx.SphinxInventory | Undocumented |
Parameters | |
inv_reader_nolog:sphinx.SphinxInventory | Undocumented |
Parameters | |
inv_reader_nolog:sphinx.SphinxInventory | Undocumented |
Parameters | |
inv_reader:InvReader | Undocumented |
Parameters | |
inv_reader:InvReader | Undocumented |
Parameters | |
inv_reader_nolog:sphinx.SphinxInventory | Undocumented |
Parameters | |
inv_reader:InvReader | Undocumented |
Parameters | |
inv_reader_nolog:sphinx.SphinxInventory | Undocumented |
Parameters | |
inv_reader:InvReader | Undocumented |
True
; an IntersphinxCache
is created with a session on which is mounted cachecontrol.CacheControlAdapter for http and https URLs.Parameters | |
cacheDirectory:Path | Undocumented |
clearCache:bool | Undocumented |
enableCache:bool | Undocumented |
cacheDirectoryName:str | Undocumented |
maxAgeAmount:int | Undocumented |
maxAgeUnit:str | Undocumented |
Parameters | |
inv_reader:InvReader | Undocumented |
Parameters | |
inv_reader:InvReader | Undocumented |
Parameters | |
inv_reader_nolog:sphinx.SphinxInventory | Undocumented |
Value |
|