olvrwn / CashBud

0 stars 0 forks source link

Add Unit Tests for TransactionsListViewModel #95

Open sweep-ai[bot] opened 1 year ago

sweep-ai[bot] commented 1 year ago

PR Feedback (click)

The unit tests cover all the public methods in the ViewModel, including getTransactions(), sortTransactions(), deleteTransactionAndUpdate(at:), calculateCostsPerMonth(for:), getIconString(for:), and makeRecurrenceDescription(recurrence:). The tests also cover the initialization of the ViewModel and the setting of its properties. Mock objects are used to simulate the behavior of the TransactionsManagerProtocol and test data is used for transactions.

Summary of Changes

Fixes #93.


๐ŸŽ‰ Latest improvements to Sweep:


๐Ÿ’ก To get Sweep to edit this pull request, you can:

sweep-ai[bot] commented 1 year ago

Rollback Files For Sweep

sonarcloud[bot] commented 1 year ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint