Generates Elixir DSL code from YAML policy test files.
This allows converting YAML policy tests to Elixir DSL for:
- Importing tests from external tools
- Converting documentation to executable tests
- Migrating from YAML to DSL format
Examples
code = DslGenerator.generate("policy_tests/document.yaml")
File.write!("test/policy_tests/document_test.exs", code)
Summary
Functions
Generates Elixir DSL code from a YAML file.
Generates Elixir DSL code from parsed YAML data.