Skip to main content

Module test_helpers

Module test_helpers 

Source

Structs§

GenerationTest
Configuration for a generation test
GenerationTestResult
Result of a generation test
GeneratorConfigOverrides
Overrides for generator configuration
TestScenario
A test scenario to generate

Enums§

ConstructionAssertion
Assertion to make on a constructed value
FieldValue
Value to use when constructing a field
TestBehavior
Different test behaviors we can generate

Functions§

assert_compilation_success
Assert that the test compiled successfully
assert_no_underscores_in_type_name
Assert that a type name doesn’t contain underscores
find_type_definition
Find a type definition in the generated files
minimal_spec
Helper to create a minimal OpenAPI spec for testing
run_generation_test
Run a complete generation test
should_compile_tests
Check if we should run full compilation tests (via environment variable)
test_generation
Fast test function that only validates syntax (no compilation) When called from tests, automatically creates/verifies snapshots