MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestBundleLinks_ImportBoundsOverrideWork
A link with a great many override rows costs the import work per row, a drop entry and a log line per refused row, and (for a distinct civil offset) s
internal/store/schedule_link_hostile_test.go:208
FunctionTestBundleLinks_ImportBoundsTheComponentWorkOfAHostileBundle
The other ceiling is on work, not on count: links that each re-check a big component run out of budget long before maxImportedLinks, and a bundle of t
internal/store/schedule_link_hostile_test.go:137
FunctionTestBundleLinks_ImportBoundsTheWorkOfAHostileBundle
A bundle that makes the import check the same big component over and over must cost a bounded amount of work: links past maxImportedLinks are not exam
internal/store/schedule_link_hostile_test.go:97
FunctionTestBundleLinks_ImportChecksAnOffsetWhenTheParentHasNoDate
A parent with no outstanding occurrence has no date to apply an offset to, so the check falls back to whether ANY supported date could take it.
internal/store/schedule_link_import_test.go:496
FunctionTestBundleLinks_ImportChecksOverrideOffsetsAgainstTheParentDate
An override is checked against the parent's current date as the link is: a later linked move would otherwise fail on the edge.
internal/store/schedule_link_import_test.go:651
FunctionTestBundleLinks_ImportChecksTheFiftyAndSixteenLimits
(t *testing.T)
internal/store/schedule_link_import_test.go:440
FunctionTestBundleLinks_ImportClassifiesAParseErrorOfADateAsData
isScheduleDataError has two arms, and a schedule.MalformedError (the year 1756 of the test above) is only one. A timed schedule whose earliest role is
internal/store/schedule_link_import_test.go:927
FunctionTestBundleLinks_ImportDoesNotRangeCheckALinkToAnEndedChild
The cascade drops an edge whose child has no outstanding occurrence (planLinkedTx), so a link to an ended child is checked against no derived date. A
internal/store/schedule_link_import_test.go:805
FunctionTestBundleLinks_ImportDropsABadOverrideAndKeepsTheLink
(t *testing.T)
internal/store/schedule_link_import_test.go:410
FunctionTestBundleLinks_ImportDropsALinkOnAScheduleWhoseDatesCannotBeRead
A date that cannot be read from a schedule's stored role data is a fact about that schedule, not a fault of the database: an all-day schedule whose ea
internal/store/schedule_link_import_test.go:777
FunctionTestBundleLinks_ImportDropsALinkWhoseChildHasNoReadableDates
The dates of the CHILD are read for every accepted link too, whatever state the parent is in: a later linked move reads the dates of every live schedu
internal/store/schedule_link_import_test.go:897
FunctionTestBundleLinks_ImportEnforcesTheComponentCap
The component cap a live write enforces (maxLinkComponent) holds on import: the layout keeps every footprint under 50 and 16, so the cap is the only r
internal/store/schedule_link_hostile_test.go:71
FunctionTestBundleLinks_ImportFoldsRefusedOverrideRowsPerReason
Refused override rows past the individually listed ones are counted per reason, not in one shared count: here two reasons, the second of which has exa
internal/store/schedule_link_import_test.go:943
FunctionTestBundleLinks_ImportIsAtomicWithTheSchedules
(t *testing.T)
internal/store/schedule_link_import_test.go:475
FunctionTestBundleLinks_ImportKeysOverridesByTheChildsFloatingPolicy
An override key is the child's occurrence key, and a floating child keys by wall alone, so rows written while it was pinned can meet on one key: the l
internal/store/schedule_link_import_test.go:524
FunctionTestBundleLinks_ImportMirrorsTheChildZoneYearBackstop
The cascade also refuses a derived date that reads as a year past 2200 in the CHILD's own zone (commitment_cascade.go planLinkedTx), whatever zone the
internal/store/schedule_link_import_test.go:681
FunctionTestBundleLinks_ImportNeverMovesADate
(t *testing.T)
internal/store/schedule_link_import_test.go:166
FunctionTestBundleLinks_ImportRefusesWhatALiveWriteRefuses
(t *testing.T)
internal/store/schedule_link_import_test.go:319
FunctionTestBundleLinks_ImportReportsLinksOfASkippedSchedule
(t *testing.T)
internal/store/schedule_link_import_test.go:378
FunctionTestBundleLinks_ImportSurfacesAFailureToReadTheParentsDates
A parent with no outstanding occurrence is an expected non-error (there is no date to check); a failure to read the parent's dates is a real error and
internal/store/schedule_link_import_test.go:722
FunctionTestBundleLinks_ImportedLinksDriveALiveCascade
(t *testing.T)
internal/store/schedule_link_import_test.go:197
FunctionTestBundleLinks_OldBundlesImportUnchanged
(t *testing.T)
internal/store/schedule_link_import_test.go:219
FunctionTestBundleLinks_OlderBundlesCannotCarryLinks
(t *testing.T)
internal/store/schedule_link_import_test.go:246
FunctionTestBundleLinks_RoundTripIsLossless
(t *testing.T)
internal/store/schedule_link_import_test.go:128
FunctionTestBundleSchemaVersionMatchesCollab
The bundle's schema version is web/src/lib/collab/schemaVersion.ts's, and it must be the server's, or the materializer would accept rows the collab ro
internal/materialize/materialize_test.go:99
FunctionTestBundleV1_StillImportsThroughFourKind
(t *testing.T)
internal/store/commitment_bundle_v2_test.go:380
FunctionTestBundleV1_WithV2MembersRefused
(t *testing.T)
internal/store/commitment_bundle_v2_test.go:423
FunctionTestBundleV2_DeletedScheduleJournalKept
(t *testing.T)
internal/store/commitment_bundle_v2_test.go:280
FunctionTestBundleV2_DroppedScheduleTakesItsJournal
(t *testing.T)
internal/store/commitment_bundle_v2_test.go:299
FunctionTestBundleV2_ExternalDependencyUnresolved
(t *testing.T)
internal/store/commitment_bundle_v2_test.go:329
FunctionTestBundleV2_FloatingAndAllDayKeys
(t *testing.T)
internal/store/commitment_bundle_v2_test.go:242
FunctionTestBundleV2_JournalFollowsRemappedIds
(t *testing.T)
internal/store/commitment_bundle_v2_test.go:174
FunctionTestBundleV2_JournalInvalidRowsAndMissingParents
(t *testing.T)
internal/store/commitment_bundle_v2_test.go:647
FunctionTestBundleV2_JournalRowNeedsTimeAndCleanText
(t *testing.T)
internal/store/commitment_bundle_v2_test.go:693
FunctionTestBundleV2_NoMisbinding
(t *testing.T)
internal/store/commitment_bundle_v2_test.go:309
FunctionTestBundleV2_OccurrenceKeysCanonical
(t *testing.T)
internal/store/commitment_bundle_v2_test.go:205
FunctionTestBundleV2_RefusesMalformedRoles
(t *testing.T)
internal/store/commitment_bundle_v2_test.go:341
FunctionTestBundleV2_RoundTripNativeCommitment
(t *testing.T)
internal/store/commitment_bundle_v2_test.go:102
FunctionTestBundleV2_SourceIDsGuard
(t *testing.T)
internal/store/commitment_bundle_v2_test.go:622
FunctionTestBundleV2_UnknownScheduleJournalNeedsOneItem
(t *testing.T)
internal/store/commitment_bundle_v2_test.go:672
FunctionTestBusyMapping_55P03
(t *testing.T)
internal/server/task4278_error_mapping_test.go:284
FunctionTestBusyMapping_57014
(t *testing.T)
internal/server/task4278_error_mapping_test.go:279
FunctionTestBusyMapping_IdleTermination
A session idle in a transaction past idle_in_transaction_session_timeout is terminated (25P03); the next statement on it returns that error (or a dead
internal/server/task4278_error_mapping_test.go:293
FunctionTestByMonthDay31SkipsShortMonths
(t *testing.T)
internal/schedule/conformance_test.go:249
FunctionTestByMonthDayMinus1LeapAndNonLeap
(t *testing.T)
internal/schedule/conformance_test.go:253
FunctionTestByMonthDayMixedPositiveNegative
TestByMonthDayMixedPositiveNegative is RFC example 18: 1 and -1 together, started on the 30th.
internal/schedule/conformance_test.go:259
FunctionTestBypassSetupToken_AfterBootstrap_GateClosed
TestBypassSetupToken_AfterBootstrap_GateClosed verifies that the UserCount==0 gate still works under bypass. Once the first admin is created, subseque
internal/server/handlers_auth_bootstrap_bypass_test.go:205
FunctionTestBypassSetupToken_CloudMode_StillLockedDown
TestBypassSetupToken_CloudMode_StillLockedDown pins the cloud-mode hard-rule: even with bypass=true (which an operator might set thinking it's univers
internal/server/handlers_auth_bootstrap_bypass_test.go:97
FunctionTestBypassSetupToken_DoesNotClearLoadedToken
TestBypassSetupToken_PreservesTokenPath documents an interaction with the logs-token feature: SetBypassSetupToken does not clear any in-memory bootstr
internal/server/handlers_auth_bootstrap_bypass_test.go:233
FunctionTestBypassSetupToken_DoesNotLoadToken
TestBypassSetupToken_DoesNotPersistToken verifies a side effect we rely on for clean operation: when bypass is on, no .bootstrap-token file is written
internal/server/handlers_auth_bootstrap_bypass_test.go:57
FunctionTestBypassSetupToken_LoopbackStillWorks
TestBypassSetupToken_LoopbackStillWorks regression-checks the loopback path: even when bypass is off, a localhost peer still succeeds. Bypass is purel
internal/server/handlers_auth_bootstrap_bypass_test.go:119
FunctionTestBypassSetupToken_NonLoopback_NoBypass_StillRejected
TestBypassSetupToken_NonLoopback_NoBypass_StillRejected pins the existing pre-bypass behavior: when bypass is OFF and no token is configured, a non-lo
internal/server/handlers_auth_bootstrap_bypass_test.go:78
FunctionTestBypassSetupToken_NonLoopback_NoHeaderAccepted
Tests for the PAD_BYPASS_SETUP_TOKEN open-bootstrap escape hatch. The bypass lets an operator on a trusted network claim the first admin from any IP
internal/server/handlers_auth_bootstrap_bypass_test.go:31
FunctionTestBypassSetupToken_SessionCheck_AdvertisesOpen
TestBypassSetupToken_SessionCheck_AdvertisesOpen verifies the frontend signal: with bypass on + zero users, the session payload returns setup_method=o
internal/server/handlers_auth_bootstrap_bypass_test.go:133
FunctionTestBypassSetupToken_SessionCheck_BypassWinsOverLogsToken
TestBypassSetupToken_SessionCheck_BypassWinsOverLogsToken pins the priority order in handleSessionCheck: when an operator has both PAD_BYPASS_SETUP_TO
internal/server/handlers_auth_bootstrap_bypass_test.go:163
FunctionTestBypassSetupToken_SessionCheck_CloudModeIgnoresBypass
TestBypassSetupToken_SessionCheck_CloudModeIgnoresBypass pins F9 parity for the bypass: cloud mode never advertises 'open' even if the operator set th
internal/server/handlers_auth_bootstrap_bypass_test.go:184
FunctionTestC
(t *testing.T)
internal/buildtools/testdata/shardpkg/shard_test.go:9
FunctionTestCIWorkflow_EveryShardedPackageHasARequiredCoverageCheck
Every sharded package has a coverage check in ci.yml that proves its 3 shards run each test exactly once, with the shards' build flags, and CI result
internal/buildtools/ci_release_branches_test.go:405
FunctionTestCIWorkflow_NixRefusesStaleVendorHashOffMain
Off main nothing heals, so a stale committed vendorHash must fail the Nix job on a push there, and on a PR into release-*, instead of passing on the r
internal/buildtools/ci_release_branches_test.go:176
FunctionTestCIWorkflow_PushOnlyWorkRunsOnEveryPush
The push-only work runs on every push (main and release-*), never on PRs: the race steps, their stop-the-line notices (which name the branch rather th
internal/buildtools/ci_release_branches_test.go:218
FunctionTestCIWorkflow_RaceStepsExcludeExactlyTheShardedPackages
The ./... race steps leave out exactly the packages race.yml shards, and no more: internal/server/render and internal/store/storetest stay in them. Th
internal/buildtools/ci_release_branches_test.go:349
FunctionTestCIWorkflow_VendorHashHealRunsOnlyOnMainPushes
The heal job commits to the branch its run is on. On a release branch that would add a commit after the tree being tagged, so it runs on main only.
internal/buildtools/ci_release_branches_test.go:153
FunctionTestCIWorkflows_NoOtherBranchGates
Nothing else in either workflow may depend on the branch: a job or step gated to main would make a release-* push run less than a main push does. The
internal/buildtools/ci_release_branches_test.go:596
FunctionTestCIWorkflows_RunOnMainAndReleasePushes
(t *testing.T)
internal/buildtools/ci_release_branches_test.go:101
FunctionTestCLIAndMCPAgreeOnContentPendingFlush
(t *testing.T)
internal/mcp/bug3133_pending_guard_test.go:106
FunctionTestCLIAndMCPAgreeOnLeaseHeld
(t *testing.T)
internal/mcp/bug2772_remote_agent_identity_test.go:409
FunctionTestCLIAndMCPAgreeOnTheCodeString
TestCLIAndMCPAgreeOnTheCodeString pins the two duplicated string constants together. They are deliberately not shared (internal/mcp does not import in
internal/mcp/stored_state_unreadable_test.go:242
FunctionTestCLIAuthBrowserURLRewritesBindAllHost
TestCLIAuthBrowserURLRewritesBindAllHost covers the regression from TASK-839: when the local server is bound to a bind-all address such as 0.0.0.0 or
cmd/pad/cli_auth_url_test.go:16
FunctionTestCLIAuthScheme
(t *testing.T)
internal/server/handlers_cli_auth_test.go:12
FunctionTestCSRF_AdminSessionRegister_RequiresCSRF
TestCSRF_AdminSessionRegister_RequiresCSRF covers a gap found in TASK-1932: handleRegister has an admin-session branch (an already-logged-in admin can
internal/server/middleware_csrf_test.go:498
FunctionTestCSRF_AdminSessionRegister_ValidCSRFStillSucceeds
TestCSRF_AdminSessionRegister_ValidCSRFStillSucceeds is the companion to the test above: an admin session WITH a valid double-submit pair must still b
internal/server/middleware_csrf_test.go:522
FunctionTestCSRF_AllMutationMethodsBlocked
(t *testing.T)
internal/server/middleware_csrf_test.go:415
FunctionTestCSRF_AnonymousRegister_StillExempt
TestCSRF_AnonymousRegister_StillExempt confirms the fix didn't collateral-damage the genuinely anonymous case: a request carrying no session at all mu
internal/server/middleware_csrf_test.go:549
FunctionTestCSRF_AuthEndpointsExempt
(t *testing.T)
internal/server/middleware_csrf_test.go:52
FunctionTestCSRF_AuthMutatingEndpoints_RequireCSRF
TestCSRF_AuthMutatingEndpoints_RequireCSRF covers B8 (TASK-1932): every cookie-session-authenticated mutation under /api/v1/auth/* — not just the gene
internal/server/middleware_csrf_test.go:261
FunctionTestCSRF_BearerTokenExempt
(t *testing.T)
internal/server/middleware_csrf_test.go:28
FunctionTestCSRF_CLISessionApprove_RequiresCSRF
TestCSRF_CLISessionApprove_RequiresCSRF covers the specific finding that approving a pending CLI login (a cookie-session-authenticated mutation that c
internal/server/middleware_csrf_test.go:318
FunctionTestCSRF_CLISessionsSubpath_DoesNotInheritCreateExemption
TestCSRF_CLISessionsSubpath_DoesNotInheritCreateExemption guards the other direction of the same exact-match design: the exempt bare "/api/v1/auth/cli
internal/server/middleware_csrf_test.go:396
FunctionTestCSRF_FreshInstallExempt
(t *testing.T)
internal/server/middleware_csrf_test.go:161
FunctionTestCSRF_GarbageBearerNoCookie_StaysCLIRecoveryPath
TestCSRF_GarbageBearerNoCookie_StaysCLIRecoveryPath is the companion to the test above: a PURE Bearer client (no session cookie at all) with an invali
internal/server/middleware_csrf_test.go:611
FunctionTestCSRF_LegacyCookieFallback_NotAcceptedWhenSecure
TestCSRF_LegacyCookieFallback_NotAcceptedWhenSecure pins a deliberate asymmetry (TASK-1932): SessionAuth falls back from the __Host--prefixed session
internal/server/middleware_csrf_test.go:455
FunctionTestCSRF_LoginAndBootstrap_ExemptEvenWithAmbientSessionCookie
TestCSRF_LoginAndBootstrap_ExemptEvenWithAmbientSessionCookie pins the exact regression the CI (E2E) run caught: an earlier fix gated the WHOLE authCS
internal/server/middleware_csrf_test.go:673
FunctionTestCSRF_LoginSetsCSRFCookie
(t *testing.T)
internal/server/middleware_csrf_test.go:181
FunctionTestCSRF_LogoutClearsCSRFCookie
(t *testing.T)
internal/server/middleware_csrf_test.go:217
FunctionTestCSRF_MatchingTokenAllowed
(t *testing.T)
internal/server/middleware_csrf_test.go:128
FunctionTestCSRF_MismatchBlocked
(t *testing.T)
internal/server/middleware_csrf_test.go:105
FunctionTestCSRF_MissingTokenBlocked
(t *testing.T)
internal/server/middleware_csrf_test.go:83
FunctionTestCSRF_SafeMethodsAllowed
(t *testing.T)
internal/server/middleware_csrf_test.go:10
FunctionTestCSRF_SessionCookiePlusGarbageBearer_RequiresCSRF
TestCSRF_SessionCookiePlusGarbageBearer_RequiresCSRF covers the case where the old Bearer exemption fired on header PRESENCE, not validation. TokenAut
internal/server/middleware_csrf_test.go:582
FunctionTestCSRF_TrailingSlashVariant_OfExemptPath_NotExempted
TestCSRF_TrailingSlashVariant_OfExemptPath_NotExempted guards the exact- match design of authCSRFUnconditionalExemptPaths: a trailing-slash variant of
internal/server/middleware_csrf_test.go:372
FunctionTestCSRF_ValidBearerPlusSessionCookie_ExemptRegardless
TestCSRF_ValidBearerPlusSessionCookie_ExemptRegardless proves the third required semantic: a request carrying a Bearer credential TokenAuth actually v
internal/server/middleware_csrf_test.go:640
FunctionTestCalendarCapIsOneAndCutsBetweenDays
(t *testing.T)
internal/server/handlers_calendar_test.go:350
FunctionTestCalendarCapSchedulesCountToo
(t *testing.T)
internal/server/handlers_calendar_test.go:394
FunctionTestCalendarCarriedInSpansFillingTheCapStillPage
--- paging ---
internal/server/handlers_calendar_test.go:713
FunctionTestCalendarCollectionGuestKeepsOtherGrants
(t *testing.T)
internal/server/handlers_calendar_test.go:291
FunctionTestCalendarCompletedInstantThatIsNoInstantIsAnError
(t *testing.T)
internal/server/handlers_calendar_test.go:1025
FunctionTestCalendarCompletedPlacement
(t *testing.T)
internal/server/handlers_calendar_test.go:222
FunctionTestCalendarDayOverCapKeepsEarliestByValue
More items on one day than the cap, with ids in the opposite order of their time-of-day values: the SQL order and the handler's order are the same tot
internal/server/handlers_calendar_test.go:1192
FunctionTestCalendarEarlyStopPagesWithoutGapOrRepeat
The read stops once the cap is in hand, whichever key dates the items, and paging from next_from covers every item once.
internal/server/handlers_calendar_test.go:794
FunctionTestCalendarEndFieldOverlap
(t *testing.T)
internal/server/handlers_calendar_test.go:168
← previousnext →17,801–17,900 of 28,840, ranked by callers