MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestAdminBillingStats_NonAdminReturns403
(t *testing.T)
internal/server/handlers_admin_billing_test.go:127
FunctionTestAdminBillingStats_SelfHostReturns404
--- Tests ---
internal/server/handlers_admin_billing_test.go:112
FunctionTestAdminBillingStats_SidecarSidecarError_DegradesToLocalOnly
(t *testing.T)
internal/server/handlers_admin_billing_test.go:291
FunctionTestAdminBillingStats_SidecarTransportError_DegradesToLocalOnly
(t *testing.T)
internal/server/handlers_admin_billing_test.go:271
FunctionTestAdminBillingStats_StripeNotConfigured_PropagatesFlag
(t *testing.T)
internal/server/handlers_admin_billing_test.go:314
FunctionTestAdminMCP_BlockedWithoutOrigin
On without a usable origin is blocked, with the reason, and not available.
internal/server/handlers_admin_mcp_test.go:96
FunctionTestAdminMCP_Cloud
Cloud is always on, and the toggle is the operator's.
internal/server/handlers_admin_mcp_test.go:148
FunctionTestAdminMCP_DefaultIsOff
An install that never touched the setting reads as off, from the stored setting, unlocked. This is the upgrade case: nothing turns on by itself.
internal/server/handlers_admin_mcp_test.go:38
FunctionTestAdminMCP_EnableHTTPS
Turning it on with a usable https origin: on, OAuth and PATs, and the DR-1 predicate agrees with the panel.
internal/server/handlers_admin_mcp_test.go:52
FunctionTestAdminMCP_EnvironmentLock
PAD_MCP_ENABLED forces the value and locks the toggle: GET reports it, PUT is refused 409 set_by_environment and stores nothing.
internal/server/handlers_admin_mcp_test.go:117
FunctionTestAdminMCP_HTTPIsPATOnly
(t *testing.T)
internal/server/handlers_admin_mcp_test.go:86
FunctionTestAdminMCP_RequiresAdminAndABody
(t *testing.T)
internal/server/handlers_admin_mcp_test.go:185
FunctionTestAdminMCP_SettingReadErrorIsOff
A setting that cannot be read counts as off (DR-2): the capability fails closed. The control leg shows the stored value reads as on first, so the off
internal/server/handlers_admin_mcp_test.go:165
FunctionTestAdminResendInvitation_DeletedWorkspace_NotFound
Admin resend reads by ID (GetInvitation, deliberately left generic), so it needs its own check: without one it re-mints a live code for a deleted work
internal/server/handlers_invitation_deleted_workspace_test.go:90
FunctionTestAdminSettings_DisableTearsDownLiveSender
TestAdminSettings_DisableTearsDownLiveSender pins the BUG-1890 follow-up: when a UI-configured (no env) instance disables email by clearing the key, t
internal/server/handlers_admin_settings_test.go:242
FunctionTestAdminSettings_EmptyKeyClears
TestAdminSettings_EmptyKeyClears confirms an explicit empty value still clears the key (the "disable email" path) — the guard only skips a non-empty m
internal/server/handlers_admin_settings_test.go:296
FunctionTestAdminSettings_MaskedKeyNotPersisted
TestAdminSettings_MaskedKeyNotPersisted is the core BUG-1890 regression: the admin GETs settings (key comes back masked), then PATCHes the whole objec
internal/server/handlers_admin_settings_test.go:125
FunctionTestAdminSettings_RealKeyUpdateWins
TestAdminSettings_RealKeyUpdateWins confirms the guard only skips the mask, not a genuine new key: a real value entered by the admin replaces the stor
internal/server/handlers_admin_settings_test.go:213
FunctionTestAdminSettings_SecretNotWritable
TestAdminSettings_SecretNotWritable pins the write side of deny-by-default: a PATCH cannot overwrite the 2FA secret (or any non-allowlisted key) throu
internal/server/handlers_admin_settings_test.go:70
FunctionTestAdminSettings_SecretsNotExposed
TestAdminSettings_SecretsNotExposed is the BUG-1909 regression: GET admin/settings must return ONLY admin-managed keys. The platform_settings table al
internal/server/handlers_admin_settings_test.go:16
FunctionTestAdminSettings_ShortKeyMaskNotPersisted
TestAdminSettings_ShortKeyMaskNotPersisted covers the other mask branch: a key of <=8 chars masks to the literal "****". Echoing "****" back must not
internal/server/handlers_admin_settings_test.go:183
FunctionTestAdminUpdateUser_NonAdminForbidden
TestAdminUpdateUser_NonAdminForbidden pins the existing admin gate: a member-role user can't PATCH another user's plan_overrides. Already covered indi
internal/server/handlers_admin_users_test.go:173
FunctionTestAdminUpdateUser_OmittedOverridesPreserved
TestAdminUpdateUser_OmittedOverridesPreserved pins the contract the admin UI relies on: PATCH with no plan_overrides field at all (e.g. when only the
internal/server/handlers_admin_users_test.go:118
FunctionTestAdminUpdateUser_PlanForcesAndReportsSource
The admin console's plan change is an operator's explicit choice: it lowers a Stripe pro, and the user detail then reports the source.
internal/server/handlers_plan_source_test.go:118
FunctionTestAdminUpdateUser_StorageOverrideRoundTrip
TestAdminUpdateUser_StorageOverrideRoundTrip pins TASK-883's acceptance criterion: an admin PATCHes plan_overrides with a storage_bytes key, and a fol
internal/server/handlers_admin_users_test.go:20
FunctionTestAdminUserActivityReturnsAKeysetCursor
(t *testing.T)
internal/server/activity_cursor_test.go:129
FunctionTestAdminVerifyEmail_ForceVerifiesUnverifiedUser
TestAdminVerifyEmail_ForceVerifiesUnverifiedUser pins TASK-1939's core acceptance criterion (PLAN-1933 DR-7): in cloud mode an unverified user is bloc
internal/server/handlers_admin_users_test.go:226
FunctionTestAdminVerifyEmail_NonAdminForbidden
TestAdminVerifyEmail_NonAdminForbidden pins the admin-only gate: a non-admin caller hitting the force-verify endpoint gets 403 (mirrors TestAdminUpdat
internal/server/handlers_admin_users_test.go:334
FunctionTestAdoptLegacyBuiltins_CollectionChangedAfterScanIsSeen
#2179: the collection's kind is re-read under the lock too. A conventions collection whose traits stop declaring it one after the scan is not adopted
internal/store/bug3806_legacy_adoption_race_test.go:100
FunctionTestAdoptLegacyBuiltins_EditAfterScanIsSeen
(t *testing.T)
internal/store/bug3806_legacy_adoption_race_test.go:50
FunctionTestAdoptingAnEpochOntoBufferedEventsIsAReset
(t *testing.T)
internal/events/redis_idspace_test.go:290
FunctionTestAdoptingAnEpochOntoEmptyBuffersIsNotAReset
(t *testing.T)
internal/events/redis_idspace_test.go:270
FunctionTestAdvertisedProtocolVersion
TestAdvertisedProtocolVersion is what replaced a tautology. The old assertion compared the payload against mcp.LATEST_PROTOCOL_VERSION while the paylo
internal/mcp/meta_test.go:52
FunctionTestAdvertisedRevisionMatchesWhatTheTransportServes
TestAdvertisedRevisionMatchesWhatTheTransportServes closes the loop the original defect ran through: pad://_meta/version publishes a maximum negotiabl
internal/mcp/transport_test.go:257
FunctionTestAgendaActionableSectionsAndRoles
(t *testing.T)
internal/server/handlers_me_agenda_test.go:424
FunctionTestAgendaAgentRoleFeeds
(t *testing.T)
internal/server/handlers_agenda_audience_test.go:11
FunctionTestAgendaAllDay
(t *testing.T)
internal/server/handlers_agenda_test.go:329
FunctionTestAgendaAllDayAtIsLocalMidnight
(t *testing.T)
internal/store/schedule_agenda_test.go:184
FunctionTestAgendaAppTokenCeilingMatchesItemList
A read-scoped app token sees what its item list shows, no more.
internal/server/handlers_agenda_test.go:598
FunctionTestAgendaCharacterization
(t *testing.T)
internal/server/handlers_agenda_characterization_test.go:33
FunctionTestAgendaClampIsNotSilent
(t *testing.T)
cmd/pad/task4105_agenda_test.go:191
FunctionTestAgendaCorruptOverrideKeyIsUnavailable
(t *testing.T)
internal/store/agenda_role_regression_test.go:24
FunctionTestAgendaCorruptScheduleIsUnavailableNotA500
One schedule whose stored state cannot be read is that schedule's problem, not a 500 for the agenda.
internal/server/handlers_agenda_test.go:574
FunctionTestAgendaCountsCap
(t *testing.T)
internal/store/agenda_counts_test.go:131
FunctionTestAgendaCountsCapIsShared
The cap covers creations and status changes together.
internal/store/agenda_counts_test.go:145
FunctionTestAgendaCountsLocalDays
23:30 local lands on that local day, and a window that starts mid-day still buckets by the zone's days.
internal/store/agenda_counts_test.go:99
FunctionTestAgendaCountsOddSpellingAgrees
A status spelled outside the schema's terminal values (an import, a legacy row) is open to the start-of-window query and to the replay alike, so the b
internal/store/agenda_counts_test.go:177
FunctionTestAgendaCountsScopeAndDeleted
(t *testing.T)
internal/store/agenda_counts_test.go:74
FunctionTestAgendaCountsSeries
completed / open at the end of the day / burn-down of the items open at the window's start. New items never add to the burn-down line.
internal/store/agenda_counts_test.go:49
FunctionTestAgendaCountsSkippedLocalDate
A zone that skips a whole local date must still end the day loop.
internal/store/agenda_counts_test.go:118
FunctionTestAgendaCountsUnicodeTerminal
A non-ASCII terminal value reads the same on SQLite and Postgres.
internal/store/agenda_counts_test.go:162
FunctionTestAgendaCreatedCompletedScope
(t *testing.T)
internal/store/agenda_item_events_test.go:11
FunctionTestAgendaCutOnADatedEntryHasNoNextFrom
next_from is a promise about instants before it. A cut that falls on a dated entry (selected by calendar day, not by instant) cannot make it, so the r
internal/server/handlers_agenda_bounds_test.go:141
FunctionTestAgendaDatabaseFailureDuringExpansionIs500
A database failure while expanding is a 500, not an incomplete 200.
internal/server/handlers_agenda_test.go:557
FunctionTestAgendaDatedItems
(t *testing.T)
internal/server/handlers_agenda_test.go:408
FunctionTestAgendaDefaultWindowStartsToday
(t *testing.T)
cmd/pad/task4105_agenda_test.go:59
FunctionTestAgendaDegradesPerSchedule
(t *testing.T)
internal/store/schedule_agenda_test.go:194
FunctionTestAgendaEachSectionReportsItsOwnCap
(t *testing.T)
internal/server/handlers_agenda_test.go:658
FunctionTestAgendaEffectivePlacementRoles
(t *testing.T)
internal/store/schedule_agenda_test.go:290
FunctionTestAgendaEndedScheduleRemainsUnplaced
(t *testing.T)
internal/server/agenda_roundtrip_regression_test.go:17
FunctionTestAgendaEntryCarriesForecast
(t *testing.T)
internal/server/handlers_agenda_forecast_test.go:48
FunctionTestAgendaEventCapPreservesDatedResume
(t *testing.T)
internal/server/handlers_me_agenda_events_test.go:105
FunctionTestAgendaEventsScopeBeforeLimit
Hidden rows that sort first must not use up the SQL limit: scope is applied before ORDER BY and LIMIT, so the one visible row is still returned.
internal/store/agenda_item_events_test.go:81
FunctionTestAgendaExpandClassifiesStoredStateVersusDatabase
r2-2: ExpandAgenda classifies. A stored-state parse failure is that schedule's `internal` outcome with a nil error; only a database failure is an erro
internal/store/schedule_agenda_test.go:271
FunctionTestAgendaExpandMergesOccurrenceState
(t *testing.T)
internal/store/schedule_agenda_test.go:37
FunctionTestAgendaExpansionUsesRequestClockAndDeadline
(t *testing.T)
internal/server/agenda_expansion_deadline_test.go:10
FunctionTestAgendaFiftySchedulesStayWithinTheBoundAndResume
50 schedules in one workspace agenda request (TASK-4236 acceptance): entries stay at the 500 bound, and truncated and next_from are set. Fifty hourly
internal/server/handlers_agenda_bounds_test.go:161
FunctionTestAgendaFloatingMergesByWall
A resolve writes the history row in the RECIPIENT's reading. The agenda reads a floating schedule in the caller's zone, where the same wall is another
internal/store/schedule_agenda_test.go:75
FunctionTestAgendaFloatingMissedAcrossFallBack
Hunter Q (TASK-4104 D1 r1): a FLOATING daily 09:00 viewed in New York across the 2026-11-01 fall-back. now is 08:30 EST on 11-02 (13:30Z), which a stu
internal/store/schedule_agenda_test.go:248
FunctionTestAgendaForecastGuestScope
(t *testing.T)
internal/server/handlers_agenda_forecast_test.go:141
FunctionTestAgendaForecastOnlyAdmission
(t *testing.T)
internal/server/handlers_agenda_forecast_test.go:254
FunctionTestAgendaFourRolesOneOccurrenceAndRoleOnlyWindows
(t *testing.T)
internal/store/schedule_agenda_test.go:338
FunctionTestAgendaGateReadErrorContinuesCandidates
(t *testing.T)
internal/server/agenda_roundtrip_regression_test.go:131
FunctionTestAgendaGroupReadErrorPreservesWindow
(t *testing.T)
internal/server/agenda_roundtrip_regression_test.go:91
FunctionTestAgendaGuestVisibility
(t *testing.T)
internal/server/handlers_agenda_test.go:200
FunctionTestAgendaHidesDoneItems
(t *testing.T)
internal/server/handlers_agenda_test.go:396
FunctionTestAgendaHistoryOutsideWindowDoesNotConsumeScan
(t *testing.T)
internal/server/agenda_history_scan_test.go:8
FunctionTestAgendaHistoryWindowAdmission
(t *testing.T)
internal/store/agenda_history_window_test.go:8
FunctionTestAgendaJSONIsVerbatim
(t *testing.T)
cmd/pad/task4105_agenda_test.go:181
FunctionTestAgendaLabelsFromRoles
(t *testing.T)
cmd/pad/task4105_agenda_test.go:269
FunctionTestAgendaListsAnEarlyResolvedScheduleAsDone
Marking a deadline done EARLY ends the schedule at the resolve time, while its history row keeps the due instant. The window around the due instant st
internal/server/handlers_agenda_test.go:542
FunctionTestAgendaMovedOccurrenceKeepsIdentityAtEffectiveTarget
(t *testing.T)
internal/store/schedule_agenda_test.go:135
FunctionTestAgendaMovedOnlyAtEffectiveTarget
(t *testing.T)
internal/store/schedule_agenda_test.go:306
FunctionTestAgendaNamesAScheduleItCouldNotExpand
A schedule the window cannot be expanded for (a scan cap: dtstart 30 years back on a minute-level rule) is named, never dropped; the others in the sam
internal/server/handlers_agenda_bounds_test.go:76
FunctionTestAgendaNoDateScope
(t *testing.T)
internal/server/agenda_scope_regression_test.go:9
FunctionTestAgendaNoResumeHintWhenNextFromIsTheSentEnd
The request sends the window end in whole seconds, so the server's next_from can equal that truncated end while the user typed a fraction of a second
cmd/pad/task4105_agenda_test.go:252
FunctionTestAgendaOneRunawayScheduleDoesNotTakeItDown
(t *testing.T)
internal/server/handlers_agenda_test.go:345
FunctionTestAgendaOrderIsDeterministic
(t *testing.T)
internal/server/handlers_agenda_test.go:446
FunctionTestAgendaOutstandingLeavesMissedCountingToConsumers
(t *testing.T)
internal/store/agenda_role_regression_test.go:9
FunctionTestAgendaPastForecastIsNotAMiss
(t *testing.T)
internal/server/handlers_agenda_forecast_test.go:112
FunctionTestAgendaPerScheduleCutCarriesNextFrom
The per-schedule cut (100) is a time-ordered cut: next_from is the first occurrence not shown. hourlyWindow starts 2031-03-10T00:00Z with the 100th (z
internal/server/handlers_agenda_bounds_test.go:28
FunctionTestAgendaPerScheduleCutIs100
(t *testing.T)
internal/server/handlers_agenda_test.go:472
FunctionTestAgendaPinnedHourlyAcrossFallBack
A pinned HOURLY rule across New York's 2026-11-01 fall-back (06:00Z is 01:00 EST, the second 01:xx hour), with a window edge inside the repeated hour:
internal/store/schedule_agenda_test.go:221
FunctionTestAgendaPinnedIgnoresViewerFloatingFollowsIt
(t *testing.T)
internal/store/schedule_agenda_test.go:113
FunctionTestAgendaPriorityIndependentOfWindowCap
(t *testing.T)
internal/server/handlers_me_agenda_test.go:521
FunctionTestAgendaPriorityRankDeadlineTargetAndID
(t *testing.T)
internal/server/handlers_me_agenda_test.go:547
FunctionTestAgendaPriorityStableIDAfterDeadlineAndTarget
(t *testing.T)
internal/server/handlers_agenda_test.go:687
FunctionTestAgendaReferenceDocumentsAreNotUnplacedWork
(t *testing.T)
internal/server/handlers_me_agenda_test.go:582
FunctionTestAgendaReferenceScheduleWithoutOccurrenceIsNotUnplaced
A reference item whose schedule has no current occurrence, or whose ending was dismissed, is not unplaced work either; a work item is (TASK-4554).
internal/server/handlers_me_agenda_test.go:605
FunctionTestAgendaRendersInUserZoneOnUTCBox
(t *testing.T)
cmd/pad/task4105_agenda_test.go:30
← previousnext →16,201–16,300 of 28,840, ranked by callers