Raxol.Core.Runtime.Plugins.DependencyManagerTestHelper (Raxol v0.4.0)

View Source

Test helper functions for DependencyManager tests.

Summary

Functions

Creates a complex version requirements structure for testing.

Creates a dependency chain for testing.

Creates a plugin set for dependency tests.

Measures the memory usage of a function or operation.

Measures the execution time of a function or operation.

Functions

create_complex_version_requirements(input)

@spec create_complex_version_requirements(term()) :: term()

Creates a complex version requirements structure for testing.

create_dependency_chain(input)

@spec create_dependency_chain(term()) :: term()

Creates a dependency chain for testing.

create_plugin_set(input)

@spec create_plugin_set(term()) :: term()

Creates a plugin set for dependency tests.

measure_memory_usage(fun)

@spec measure_memory_usage((-> any())) :: integer()

Measures the memory usage of a function or operation.

measure_time(fun)

@spec measure_time((-> any())) :: integer()

Measures the execution time of a function or operation.