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 load will 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 None for NullStorageHandler. Must refer to a file, not a directory, when not None.

Returns:
bool

True if this handler should be used for path.

load() list[ResultObject][source]#

Load benchmark results from the file at self.path.

Returns:
list of ResultObject

Loaded results. Returns an empty list if the file does not exist.