forked from cleveragents/cleveragents-core
72 lines
3.0 KiB
Gherkin
72 lines
3.0 KiB
Gherkin
Feature: InlineYAMLJinja Method Coverage
|
|
As a developer
|
|
I want to test all InlineYAMLJinja methods
|
|
So that code coverage reaches 90%
|
|
|
|
Scenario: Test InlineYAMLJinja initialization and basic functionality
|
|
Given I have an InlineYAMLJinja instance for coverage
|
|
When I test the initialization for coverage
|
|
Then the instance should be properly configured for coverage
|
|
And custom filters should be available for coverage
|
|
And custom tests should be available for coverage
|
|
|
|
Scenario: Test process_file method
|
|
Given I have an InlineYAMLJinja instance for coverage
|
|
And I have a test YAML file with templates for coverage
|
|
When I call process_file for coverage
|
|
Then the file should be processed correctly for coverage
|
|
|
|
Scenario: Test process_string method variations
|
|
Given I have an InlineYAMLJinja instance for coverage
|
|
When I test process_string with various inputs for coverage
|
|
Then all variations should work correctly for coverage
|
|
|
|
Scenario: Test has_templates detection
|
|
Given I have an InlineYAMLJinja instance for coverage
|
|
When I test _has_templates with various content for coverage
|
|
Then template detection should work correctly for coverage
|
|
|
|
Scenario: Test render_and_parse method
|
|
Given I have an InlineYAMLJinja instance for coverage
|
|
When I test _render_and_parse with templates for coverage
|
|
Then rendering and parsing should work correctly for coverage
|
|
|
|
Scenario: Test structure analysis
|
|
Given I have an InlineYAMLJinja instance for coverage
|
|
When I test _analyze_structure for coverage
|
|
Then structure analysis should work correctly for coverage
|
|
|
|
Scenario: Test structured rendering
|
|
Given I have an InlineYAMLJinja instance for coverage
|
|
When I test _render_structured for coverage
|
|
Then structured rendering should work correctly for coverage
|
|
|
|
Scenario: Test section splitting
|
|
Given I have an InlineYAMLJinja instance for coverage
|
|
When I test _split_into_sections for coverage
|
|
Then section splitting should work correctly for coverage
|
|
|
|
Scenario: Test block rendering
|
|
Given I have an InlineYAMLJinja instance for coverage
|
|
When I test _render_block for coverage
|
|
Then block rendering should work correctly for coverage
|
|
|
|
Scenario: Test YAML issue fixing
|
|
Given I have an InlineYAMLJinja instance for coverage
|
|
When I test _fix_yaml_issues for coverage
|
|
Then YAML issues should be fixed for coverage
|
|
|
|
Scenario: Test context preparation
|
|
Given I have an InlineYAMLJinja instance for coverage
|
|
When I test _prepare_context for coverage
|
|
Then context should be prepared correctly for coverage
|
|
|
|
Scenario: Test deferred storage and rendering
|
|
Given I have an InlineYAMLJinja instance for coverage
|
|
When I test deferred processing for coverage
|
|
Then deferred processing should work correctly for coverage
|
|
|
|
Scenario: Test error handling paths
|
|
Given I have an InlineYAMLJinja instance for coverage
|
|
When I test error conditions for coverage
|
|
Then errors should be handled correctly for coverage |