Closed sweep-ai[bot] closed 1 year ago
SonarCloud Quality Gate failed.
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
0.0% Coverage
0.0% Duplication
Catch issues before they fail your Quality Gate with our IDE extension SonarLint
PR Feedback (click)
Description
This PR adds unit tests for the OverviewViewModel in the CashBud project. The existing OverviewViewModelTest.swift file did not have any unit tests, so this PR adds new test cases to ensure the functionality of the OverviewViewModel is properly tested.
Summary of Changes
TransactionsManagerMock.swift
in theCashBudTests/Tests/Manager/
directory. This file contains a mock implementation of theTransactionsManager
class.OverviewViewModelTest.swift
file in theCashBudTests/Tests/ViewModels/
directory to import theTransactionsManagerMock
file and use it to test theOverviewViewModel
.OverviewViewModelTest.swift
with new test cases that use theTransactionsManagerMock
to test theOverviewViewModel
.Please review and merge this PR to ensure proper test coverage for the
OverviewViewModel
.Fixes #77.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: