(t *testing.T)
| 24 | } |
| 25 | |
| 26 | func TestUser_GetBillingAnchorDay_PaidUser(t *testing.T) { |
| 27 | renewsAt := time.Date(2026, 6, 15, 0, 0, 0, 0, time.UTC) |
| 28 | user := User{ |
| 29 | SubscriptionName: SubscriptionNameProMonthly, |
| 30 | SubscriptionRenewsAt: &renewsAt, |
| 31 | CreatedAt: time.Date(2026, 1, 5, 10, 0, 0, 0, time.UTC), |
| 32 | } |
| 33 | assert.Equal(t, 15, user.GetBillingAnchorDay()) |
| 34 | } |
| 35 | |
| 36 | func TestUser_GetBillingAnchorDay_PaidUserNilRenewsAt(t *testing.T) { |
| 37 | user := User{ |
nothing calls this directly
no test coverage detected