Modules§
- assertions
- Test assertion macros and helpers.
- context
- Test context builders for all Forge function types.
- db
- Database provisioning for tests.
- mock_
dispatch - Mock dispatchers for testing job and workflow dispatch.
- mock_
email - Mock email sender for testing.
- mock_
http - HTTP mocking utilities for testing.
Structs§
- Dispatched
Job - Record of a dispatched job.
- Isolated
Test Db - A test database scoped to a single test. Call
cleanup()to drop it immediately, or rely on future test runs to clean up orphaned databases. - Mock
Email Sender - Records sent emails for assertion in tests.
- Mock
Http - Mock HTTP client for testing.
- Mock
Http Builder - Mock
JobDispatch - Records dispatched jobs for later verification.
- Mock
Request - Mock HTTP request.
- Mock
Response - Mock HTTP response.
- Mock
Workflow Dispatch - Records started workflows for later verification.
- Sent
Email - A recorded email send.
- Started
Workflow - Record of a started workflow.
- Test
Cron Context - Test context for cron functions.
- Test
Cron Context Builder - Test
Daemon Context - Test context for daemon functions.
- Test
Daemon Context Builder - Test
Database - Database access for tests.
- Test
JobContext - Test context for job functions.
- Test
JobContext Builder - Builder for TestJobContext.
- Test
McpTool Context - Test context for MCP tool functions.
- Test
McpTool Context Builder - Test
Mutation Context - Test context for mutation functions with mock dispatch and optional DB access.
- Test
Mutation Context Builder - Builder for TestMutationContext.
- Test
Progress Update - Progress update recorded during testing.
- Test
Query Context - Test context for query functions with optional DB access.
- Test
Query Context Builder - Builder for TestQueryContext.
- Test
Webhook Context - Test context for webhook functions.
- Test
Webhook Context Builder - Test
Workflow Context - Test context for workflow functions.
- Test
Workflow Context Builder - Builder for TestWorkflowContext.
Constants§
Functions§
- assert_
contains - Assert that an array contains an element matching a predicate.
- assert_
json_ matches - Assert that a value matches a JSON pattern (partial matching).