NullStorageHandler#
- class NullStorageHandler(path)[source]#
Storage handler for no file access.
Does not save or load any results, used when no path is provided.
Saving has no effect, and
loadwill always return empty data.- Parameters:
- pathstr, or Path coercible
The path to the file to save to or load. Ignored, exists for API compatibility.
Methods
is_applicable(path)Return whether this handler supports the given results file path.
load()Load benchmark results from the file at
self.path.save(results)Save the results - dummy method without any effect.
- save(results: list[ResultObject])[source]#
Save the results - dummy method without any effect.
- Parameters:
- resultsResultObject
The results to save.
- static is_applicable(path)[source]#
Return whether this handler supports the given results file path.
- Parameters:
- pathpathlib.Path or None
Path to the results file, or
Nonefor NullStorageHandler. Must refer to a file, not a directory, when notNone.
- Returns:
- bool
Trueif this handler should be used forpath.