Crate moon_pdk_test_utils

Source

Macros§

anyhow
Construct an ad-hoc error from a string or existing non-anyhow error value.
api_enum
Wrap an enum with common derives and serde required attributes.
api_struct
Wrap a struct with common derives and serde required attributes.
api_unit_enum
Wrap a unit-only enum with common derives and serde required attributes.
config_struct
Apply default attributes for configuration based structs. Will assume that all keys are in camel case.
json_config
shared_config
toml_config

Structs§

CalVer
Container for a calendar version.
DefineDockerMetadataInput
Input passed to the define_docker_metadata function.
DefineDockerMetadataOutput
Output returned from the define_docker_metadata function.
DefineToolchainConfigOutput
Output returned from the define_toolchain_config function.
EmptyInput
Represents an empty input.
ExecCommand
ExecCommandInput
Input passed to the exec_command host function.
ExecCommandOutput
Output returned from the exec_command host function.
ExecuteExtensionInput
Input passed to the execute_extension function.
ExtendProjectGraphInput
Input passed to the extend_project_graph function.
ExtendProjectGraphOutput
Output returned from the extend_project_graph function.
ExtendProjectOutput
Output utilized within the extend_project_graph function.
ExtendTaskCommandInput
Input passed to the extend_task_command function.
ExtendTaskCommandOutput
Output returned from the extend_task_command function.
ExtendTaskScriptInput
Input passed to the extend_task_script function.
ExtendTaskScriptOutput
Output returned from the extend_task_script function.
ExtensionTestWrapper
FileLocator
A file system locator.
GitHubLocator
A GitHub release locator.
HashTaskContentsInput
Input passed to the hash_task_contents function.
HashTaskContentsOutput
Output returned from the hash_task_contents function.
HostEnvironment
Information about the host environment (the current runtime).
HostLogInput
Input passed to the host_log host function.
Id
InitializeToolchainInput
Input passed to the initialize_toolchain function.
InitializeToolchainOutput
Output returned from the initialize_toolchain function.
InstallDependenciesInput
Input passed to the install_dependencies function. Requires locate_dependencies_root.
InstallDependenciesOutput
Output returned from the install_dependencies function.
LocateDependenciesRootInput
Input passed to the locate_dependencies_root function.
LocateDependenciesRootOutput
Output returned from the locate_dependencies_root function.
LockDependency
Represents a dependency definition in a lock file.
ManifestDependency
Represents a dependency definition in a manifest file.
MoonContext
Information about the current moon workspace.
MoonWasmSandbox
Operation
An operation can be used to track timings, statuses, and results for business logic that was performed within an action (a plugin function).
ParseLockInput
Input passed to the parse_lock function.
ParseLockOutput
Output returned from the parse_lock function.
ParseManifestInput
Input passed to the parse_manifest function.
ParseManifestOutput
Output returned from the parse_manifest function.
ProjectDependency
A project-to-project relationship.
ProjectFragment
Fragment of a project including important fields.
PruneDockerInput
Input passed to the prune_docker function. Requires locate_dependencies_root.
PruneDockerOutput
Output returned from the prune_docker function.
RegisterExtensionInput
Input passed to the register_extension function.
RegisterExtensionOutput
Output returned from the register_extension function.
RegisterToolchainInput
Input passed to the register_toolchain function.
RegisterToolchainOutput
Output returned from the register_toolchain function.
ScaffoldDockerInput
Input passed to the scaffold_docker function.
ScaffoldDockerOutput
Output returned from the scaffold_docker function.
SemVer
Container for a semantic version.
SendRequestInput
Input passed to the send_request host function.
SendRequestOutput
Output returned from the send_request host function.
SettingCondition
Represents a condition against another setting.
SettingPrompt
Represents a prompt (question) for a configuration setting.
SetupEnvironmentInput
Input passed to the setup_environment function.
SetupEnvironmentOutput
Output returned from the setup_environment function.
SetupToolchainInput
Input passed to the setup_toolchain function.
SetupToolchainOutput
Output returned from the setup_toolchain function.
SyncOutput
Output returned from the sync_workspace and sync_project functions.
SyncProjectInput
Input passed to the sync_project function.
SyncWorkspaceInput
Input passed to the sync_workspace function.
TaskFragment
Fragment of a task including important fields.
TeardownToolchainInput
Input passed to the teardown_toolchain function.
TestEnvironment
Information about the current testing environment.
ToolchainTestWrapper
UrlLocator
A HTTPS URL locator.
Version
SemVer version as defined by https://semver.org.
VersionReq
SemVer version requirement describing the intersection of some version comparators, such as >=1.2.3, <1.8.

Enums§

CacheInput
Types of inputs that can be cached.
ConditionType
A type of condition to evaluate against a setting value.
Extend
Type of extend/merge strategy.
HostArch
Architecture of the system environment.
HostLibc
Libc being used in the system environment.
HostLogTarget
Target where host logs should be written to.
HostOS
Operating system of the current environment.
OperationStatus
The status of a performed operation.
PluginLocator
Strategies and protocols for locating plugins.
PluginLocatorError
Errors during plugin locator parsing.
PromptType
The type of prompt to render to receive an answer.
ScaffoldDockerPhase
The different scaffolding phases.
UnresolvedVersionSpec
Represents an unresolved version or alias that must be resolved to a fully-qualified version.
VersionSpec
Represents a resolved version or alias.
VirtualPath
A container for WASI virtual paths that can also keep a reference to the original real path.

Functions§

create_empty_moon_sandbox
create_moon_sandbox

Type Aliases§

AnyResult
Represents any result (using anyhow).
ConfigSchema