forked from cleveragents/cleveragents-core
30 lines
1.2 KiB
Gherkin
30 lines
1.2 KiB
Gherkin
Feature: Agent Decorators Coverage
|
|
Test coverage for agent decorators module
|
|
|
|
Scenario: Log action decorator logs function name
|
|
Given I have a function to decorate
|
|
When I apply the log_action decorator
|
|
And I call the decorated function
|
|
Then the function name should be printed
|
|
And the original function should be executed
|
|
|
|
Scenario: Log action decorator preserves return value
|
|
Given I have a function that returns a value
|
|
When I apply the log_action decorator
|
|
And I call the decorated function
|
|
Then the return value should be preserved
|
|
And the execution should be logged
|
|
|
|
Scenario: Log action decorator handles arguments
|
|
Given I have a function with arguments
|
|
When I apply the log_action decorator
|
|
And I call the decorated function with arguments
|
|
Then the arguments should be passed correctly
|
|
And the function should execute with those arguments
|
|
|
|
Scenario: Log action decorator handles keyword arguments
|
|
Given I have a function with keyword arguments
|
|
When I apply the log_action decorator
|
|
And I call the decorated function with kwargs
|
|
Then the kwargs should be passed correctly
|
|
And the function should execute properly |