Description
The test file (test/widget_test.dart) is a placeholder with no real tests. Core business logic should be unit-tested.
Key functions to test
BillService.computeNetBalance() — core balance computation, edge cases with many bills
BillService.computeRunningBalances() — running totals in timeline
isNewerVersion() — version comparison (e.g. v1.0.3 vs v1.0.10, v2.0.0 vs v1.9.9)
Bill.fromMap() / Group.fromMap() — null/missing field handling, malformed data
AuthService.validatePassword() — boundary cases (exactly 8 chars, missing number, etc.)
isValidEmail() — malformed inputs, edge cases
Priority
High — these are untested paths that handle money and authentication.
Description
The test file (
test/widget_test.dart) is a placeholder with no real tests. Core business logic should be unit-tested.Key functions to test
BillService.computeNetBalance()— core balance computation, edge cases with many billsBillService.computeRunningBalances()— running totals in timelineisNewerVersion()— version comparison (e.g.v1.0.3vsv1.0.10,v2.0.0vsv1.9.9)Bill.fromMap()/Group.fromMap()— null/missing field handling, malformed dataAuthService.validatePassword()— boundary cases (exactly 8 chars, missing number, etc.)isValidEmail()— malformed inputs, edge casesPriority
High — these are untested paths that handle money and authentication.