Module test_utils

Source
Expand description

Test utilities for direct command testing

This module provides utilities to test command functions directly instead of spawning the CLI binary, which improves test coverage.

Structs§

LargeFilesCommand
Large files command implementation
SyncCommand
Sync command implementation
TestCommandResult
Test result that captures both stdout and stderr along with exit code

Traits§

TestCommand
Generic command trait to allow different command types

Functions§

execute_command_in_dir
Execute a command with directory context (changes to dir, runs command, restores dir)
large_files_command
Helper to create a large files command for testing
large_files_command_direct
Execute a large files command directly
sync_command
Helper to create a sync command for testing
sync_command_direct
Execute a sync command directly