Skip to content

Feat/executor tests - #11

Merged
kris927b merged 2 commits into
mainfrom
feat/executor-tests
Jun 19, 2025
Merged

Feat/executor tests#11
kris927b merged 2 commits into
mainfrom
feat/executor-tests

Conversation

@kris927b

Copy link
Copy Markdown
Owner

No description provided.

google-labs-jules Bot and others added 2 commits June 18, 2025 11:48
… `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.
@kris927b
kris927b merged commit bb91f52 into main Jun 19, 2025
@kris927b
kris927b deleted the feat/executor-tests branch June 19, 2025 08:33
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.

1 participant