Feat/executor tests - #11
Merged
Merged
Conversation
… `src/executor.rs`.
The following aspects of `PipelineExecutor` are covered:
- `new()`:
- Creation with an empty set of processing steps.
- Creation with multiple processing steps.
- `run_single_async()`:
- Execution with an empty pipeline.
- Execution with a single processing step.
- Execution with multiple processing steps, verifying order.
- Error propagation when a step fails.
- `run_batch_parallel_async()`:
- Execution with an empty list of documents.
- Execution with documents but an empty pipeline.
- Execution with multiple documents and multiple steps.
- Error handling for individual documents in a batch.
- Mixed success and failure scenarios in a batch.
A mock `ProcessingStep` implementation and a helper function for creating `TextDocument` instances were added to `tests/executor_test.rs` to facilitate testing. The `steps` field in `PipelineExecutor` was made public to allow assertions on the number of steps during testing.
Note: Due to an issue with the execution environment, I could not run these tests to confirm their passing status.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.