Skip to content

Test: Add unit tests for MainViewModel#1337

Merged
cortinico merged 2 commits into
ChuckerTeam:mainfrom
shivanandyadav11:Add-MainViewModel-Unit-Test-Cases
Jan 20, 2025
Merged

Test: Add unit tests for MainViewModel#1337
cortinico merged 2 commits into
ChuckerTeam:mainfrom
shivanandyadav11:Add-MainViewModel-Unit-Test-Cases

Conversation

@shivanandyadav11

Copy link
Copy Markdown
Contributor

📷 Screenshots

MainViewModel Unit Test Case MainViewModel Unit Test Coverage
Screenshot1 Screenshot1

📄 Context

Add comprehensive unit tests for the MainViewModel to ensure proper functionality of transaction filtering, searching, and management.

📝 Changes

Added new test class MainViewModelTest.kt with the following test coverage:

  • Testing empty search query behavior
  • Testing digit-only search query behavior
  • Testing text search query behavior
  • Testing getAllTransactions functionality
  • Testing clearTransactions functionality

🚫 Breaking

No breaking changes - This is a test-only addition

@shivanandyadav11 shivanandyadav11 requested a review from a team as a code owner January 19, 2025 12:04
@shivanandyadav11

Copy link
Copy Markdown
Contributor Author

@cortinico Please take a look and review when you get some time.

@cortinico cortinico enabled auto-merge (squash) January 20, 2025 10:46
auto-merge was automatically disabled January 20, 2025 15:09

Head branch was pushed to by a user without write access

@shivanandyadav11

Copy link
Copy Markdown
Contributor Author

Lints have been fixed and this should be good with pipeline now.
@cortinico Not sure how to re-run the pipelines.

@cortinico cortinico enabled auto-merge (squash) January 20, 2025 16:15
@cortinico cortinico merged commit d236048 into ChuckerTeam:main Jan 20, 2025
@shivanandyadav11 shivanandyadav11 deleted the Add-MainViewModel-Unit-Test-Cases branch June 24, 2025 01:45
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.

2 participants