Skip to content

Conversation

aydinfatih
Copy link
Contributor

No description provided.

deligoez added 3 commits June 10, 2025 09:56
…dReturn calls

Introduce a test case to verify handling of multiple `shouldReturn` calls within the same test. Ensures consistent behavior when alternating return values in `TestCountGuard`.
…un and shouldReturn calls

Introduce a new test case to validate combining `shouldRun` and `shouldReturn` calls within the same test. Confirms consistent behavior of `TestCountGuard` when alternating between the methods.
…dRun calls

Add a test case to ensure proper handling of multiple `shouldRun` calls across different behaviors. Validate consistent behavior of `TestIncrementAction` and `TestCountGuard` when expectations change dynamically.
Copy link
Member

@deligoez deligoez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fatih gayet ok, guzel cozum olmus hatta, emin olmak icin bir kac test daha ekledim.

deligoez added 9 commits June 10, 2025 10:16
…configurations

Update tests to validate `shouldRun` with various configurations, including multiple calls and resets. Improve coverage for dynamic behavior of `TestIncrementAction`.
…ldReturn without fake call

Validate that `shouldReturn` implicitly fakes the guard and maintains expected behavior during execution.
…ldRun without fake call

Validate that `shouldRun` implicitly fakes the guard and maintains expected behavior during execution.
…unt verification

Introduce a test case to validate accurate expectation counts for `TestIncrementAction`. Ensure exception is thrown when expectations are unmet.
… with reset and ordered expectations

Improve tests to include reset functionality and ordered return value scenarios for `TestCountGuard`. Ensure consistent handling of consecutive return values and enhance test coverage.
…ation with assertNotRan

Validate handling of consecutive `never()` calls for `TestIncrementAction` without invocation. Ensure no exceptions are thrown for `assertNotRan`.
…ple mock configurations

Introduce a test case to validate behavior when chaining configurations for `shouldRun` on `TestIncrementAction`. Ensure consistent handling of mocked actions and context updates.
…ests

Combine redundant test cases for `resetAllFakes`, ensuring proper verification of fake resets, container cleanup, and mockery expectations in a single test. Improve clarity and maintainability.
… isolation and consistency

Improve test clarity by consolidating assertions for fake isolation and consistency after resets. Remove redundant comments and streamline test structure for better readability.
@deligoez deligoez merged commit d9775d3 into main Jun 10, 2025
4 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants