Methods
-
getType( item ) → {string}
-
Description
Attempt to get the type of item.
This is NOT equivalent to the built-in
typeofoperator. Hence, results are explicitly NOT lower-cased in order to reduce chances of conflicts.Parameters
Name Type Description itemobject Item to inspect.
Returns
Details
-
repr( item ) → {string}
-
Description
Returns a string representation of the item using the registration system.
Parameters
Name Type Description itemobject Anything.
Returns
Details
-
getReprFunc( item ) → {NexusHoratio.xunit.TypeTool~ReprFunc}
-
Description
Find a ReprFunc for the given item.
Parameters
Name Type Description itemobject Item of interest.
Returns
Details
-
addReprFunc( type, func )
-
Parameters
Name Type Description typestring Type of interest.
funcNexusHoratio.xunit.TypeTool~ReprFunc Function for this type.
Details
-
reprString( item ) → {string}
-
Parameters
Name Type Description itemstring String to wrap.
Returns
Details
-
reprArray( array ) → {string}
-
Parameters
Name Type Description arrayArray.<object> Array of anything.
Returns
Details
-
reprObject( obj ) → {string}
-
Parameters
Name Type Description objobject Any object.
Returns
Details
-
reprMap( map ) → {string}
-
Parameters
Name Type Description mapMap.<object, object> Any Map.
Returns
Details
-
reprSet( set ) → {string}
-
Parameters
Name Type Description setSet.<object> Any Set.
Returns
Details
Type Definitions
-
ReprFunc( item ) → {string}
-
Parameters
Name Type Description itemobject Anything.
Returns
Details