Expand description
Shared test fixture builders for MockForge crates.
Provides reusable utilities for constructing test data that would otherwise be duplicated across every crate’s test modules.
Functions§
- fixture_
path - Resolve a fixture path relative to the calling crate’s
CARGO_MANIFEST_DIR. - minimal_
openapi_ spec - Create a minimal valid OpenAPI 3.0 spec as a JSON value.
- openapi_
spec_ crud - Create an OpenAPI spec with CRUD operations (GET, POST, PUT, DELETE) for a resource.
- openapi_
spec_ with_ get - Create an OpenAPI spec with a single GET endpoint that returns JSON.
- write_
spec_ to - Write a JSON value as an OpenAPI spec file to a specific path.
- write_
temp_ spec - Write a JSON value as an OpenAPI spec file to a temporary directory.