(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestUser_GetBillingAnchorDay_FreeUser(t *testing.T) { |
| 11 | user := User{ |
| 12 | SubscriptionName: SubscriptionNameFree, |
| 13 | CreatedAt: time.Date(2026, 3, 20, 10, 0, 0, 0, time.UTC), |
| 14 | } |
| 15 | assert.Equal(t, 20, user.GetBillingAnchorDay()) |
| 16 | } |
| 17 | |
| 18 | func TestUser_GetBillingAnchorDay_EmptySubscription(t *testing.T) { |
| 19 | user := User{ |
nothing calls this directly
no test coverage detected