Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up mocking using mockall crate #110

Merged
merged 1 commit into from
May 13, 2024
Merged

Set up mocking using mockall crate #110

merged 1 commit into from
May 13, 2024

Conversation

spencewenski
Copy link
Member

@spencewenski spencewenski commented May 13, 2024

Create general mocks to use throughout Roadster for the AppContext and the App trait and its associated types.

Use the new mocks to write tests for the ServiceRegistry. Also needed to create mocks for the AppService and AppServiceBuilder traits.

#99

Copy link

codecov bot commented May 13, 2024

Codecov Report

Attention: Patch coverage is 39.47368% with 46 lines in your changes are missing coverage. Please review.

Files Coverage Δ
src/cli/migrate.rs 0.00% <ø> (ø)
src/cli/print_config.rs 0.00% <ø> (ø)
src/config/service/http/initializer.rs 78.84% <ø> (ø)
src/config/service/http/middleware.rs 88.54% <ø> (ø)
src/config/service/mod.rs 0.00% <ø> (ø)
src/controller/health.rs 0.00% <ø> (ø)
src/controller/mod.rs 0.00% <ø> (ø)
src/service/http/builder.rs 0.00% <ø> (ø)
src/service/http/initializer/default.rs 0.00% <ø> (ø)
src/service/http/initializer/mod.rs 0.00% <ø> (ø)
... and 20 more

Create general mocks to use throughout Roadster for the
`AppContext` and the `App` trait and its associated types.

Use the new mocks to write tests for the `ServiceRegistry`. Also needed
to create mocks for the `AppService` and `AppServiceBuilder` traits.

#99
@spencewenski spencewenski merged commit 0ddda76 into main May 13, 2024
6 checks passed
@spencewenski spencewenski deleted the gh-99-context-mock branch May 13, 2024 09:51
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