MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / TestUser_GetBillingAnchorDay_PaidUser

Function TestUser_GetBillingAnchorDay_PaidUser

api/pkg/entities/user_test.go:26–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

24}
25
26func 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
36func TestUser_GetBillingAnchorDay_PaidUserNilRenewsAt(t *testing.T) {
37 user := User{

Callers

nothing calls this directly

Calls 1

GetBillingAnchorDayMethod · 0.95

Tested by

no test coverage detected