MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

FunctionTestSend_Success
(t *testing.T)
internal/email/sender_test.go:19
FunctionTestSend_SuccessFalse
(t *testing.T)
internal/email/sender_test.go:127
FunctionTestSerializeWorkspaceSettingsRoundTrip
(t *testing.T)
internal/models/workspace_settings_test.go:43
FunctionTestServeInline
BUG-2413: ServeInline is the read path's inline-safe gate. Passive media plus PDF and plain text may be served inline; every other allowlisted type —
internal/attachments/mime_test.go:73
FunctionTestServedFilename
(t *testing.T)
internal/attachments/filename_test.go:125
FunctionTestServedResumesAreNotReportedAsGaps
The negative control, and the one that matters for the load posture: a resume this instance CAN serve must not be counted. Without it, a bus that repo
internal/events/observer_test.go:228
FunctionTestServerCapabilitiesAdvertisesAttachmentAttach
(t *testing.T)
internal/server/handlers_attachments_attach_test.go:295
FunctionTestServerCapabilitiesAdvertisesItemScopedCommentWrites
(t *testing.T)
internal/server/handlers_comments_item_scoped_test.go:225
FunctionTestServerCapabilities_AdvertisesItemFieldAppend
TestServerCapabilities_AdvertisesItemFieldAppend: the CLI decides BEFORE it writes whether to send an append, from this flag. Without it the CLI takes
internal/server/handlers_items_append_test.go:245
FunctionTestServerCapabilities_DegradedWhenProcessorMissing
TestServerCapabilities_DegradedWhenProcessorMissing — if no processor is wired, the endpoint reports an empty image-formats list rather than 500-ing.
internal/server/handlers_attachments_thumbnails_test.go:323
FunctionTestServerCapabilities_Endpoint
TestServerCapabilities_Endpoint — the new /api/v1/server/capabilities endpoint reports what the editor needs for rotate/crop UI gating.
internal/server/handlers_attachments_thumbnails_test.go:281
FunctionTestServerCapabilities_PublicAfterBootstrap
TestServerCapabilities_PublicAfterBootstrap — once any user exists the RequireAuth middleware kicks in for non-public paths, so the capabilities endpo
internal/server/handlers_attachments_thumbnails_test.go:352
FunctionTestServerIdentityAnyHost
(t *testing.T)
internal/server/handlers_server_identity_test.go:197
FunctionTestServerIdentityKnownAnswer
(t *testing.T)
internal/serveridentity/identity_test.go:14
FunctionTestServerIdentityNoDatabase
(t *testing.T)
internal/server/handlers_server_identity_test.go:188
FunctionTestServerIdentityNoEncryptionKey
(t *testing.T)
internal/server/handlers_server_identity_test.go:224
FunctionTestServerIdentityOutsideAuthStack
(t *testing.T)
internal/server/handlers_server_identity_test.go:149
FunctionTestServerIdentityProbeOmitsCredentials
(t *testing.T)
internal/cli/server_identity_test.go:14
FunctionTestServerIdentityRateLimited
(t *testing.T)
internal/server/handlers_server_identity_test.go:205
FunctionTestServerIdentityRejectsBadChallenge
(t *testing.T)
internal/server/handlers_server_identity_test.go:127
FunctionTestServerIdentitySharedAcrossInstances
(t *testing.T)
internal/server/handlers_server_identity_test.go:101
FunctionTestServerIdentitySignsExactTranscript
(t *testing.T)
internal/server/handlers_server_identity_test.go:83
FunctionTestServerInfoCarriesTheDecisionProviderThroughBothDoors
The tests above call describeDecisionProvider directly, so they have no opinion about whether collectServerInfo calls it, or whether the human-readabl
cmd/pad/server_info_decision_test.go:127
FunctionTestServerInfoReportsIdentityFingerprint
(t *testing.T)
cmd/pad/server_info_test.go:161
FunctionTestServerInfoSkipsIdentityProbeWhenUnhealthy
(t *testing.T)
cmd/pad/server_info_test.go:245
FunctionTestServerStartCallsConfigurePush
CONVE-19: the wiring is a claim. configurePush is tested above; this pins that server startup calls it and returns its error, and that nothing else in
cmd/pad/task3939c_configure_push_test.go:71
FunctionTestServerStartUsesTheObservedRoomManager
RunE must build the manager through the observed constructor; a bare collab.NewRoomManager there would compile and leave every counter at zero.
cmd/pad/collab_metrics_wiring_test.go:93
FunctionTestServerStart_LosingTheBindOpensNoDatabase
TASK-3620. A `pad server start` that loses the port must exit without having touched shared state. The CLI's auto-start spawned 206 losing starts in t
cmd/pad/server_start_bind_first_test.go:16
FunctionTestServer_BootstrapTokenHeaderOnly_NoQuerySupport
TestServer_BootstrapTokenHeaderOnly_NoQuerySupport pins the API contract that the token is accepted via X-Bootstrap-Token only (F6). A token in ?token
internal/server/bootstrap_test.go:275
FunctionTestServer_BootstrapTokenLifecycle
TestServer_BootstrapTokenLifecycle covers the in-memory state on the Server: SetBootstrapToken plumbs values, hasBootstrapToken reports presence, chec
internal/server/bootstrap_test.go:210
FunctionTestServer_FallbackVersion
TestServer_FallbackVersion locks the wire-level invariant that serverInfo.version is NEVER empty, even when the caller built the server with Options{}
internal/mcp/server_test.go:143
FunctionTestServer_GracefulShutdownOnContextCancel
TestServer_GracefulShutdownOnContextCancel verifies that cancelling the parent context (the path SIGINT / SIGTERM eventually take in production) retur
internal/mcp/server_test.go:159
FunctionTestServer_InitializeAdvertisesInstructions
TestServer_InitializeAdvertisesInstructions locks the wire-level invariant that the initialize response carries the server-level instructions string T
internal/mcp/server_test.go:109
FunctionTestServer_InitializeHandshake
TestServer_InitializeHandshake is the contract test: a real initialize round-trip through the stdio pipeline must return serverInfo with our canonical
internal/mcp/server_test.go:48
FunctionTestServer_StartMCPSessionTracker_Idempotent
TestServer_StartMCPSessionTracker_Idempotent guards the "called twice from a test that flips MCP transport state" path. First call wires the tracker;
internal/server/middleware_mcp_session_test.go:394
FunctionTestServer_Stop_DrainsBackgroundGoroutines
TestServer_Stop_DrainsBackgroundGoroutines pins BUG-842 part 2: any fire-and-forget goroutine spawned via Server.goAsync must be drained by Server.Sto
internal/server/server_test.go:478
FunctionTestServer_Stop_DrainsRateLimiterCleanup
TestServer_Stop_DrainsRateLimiterCleanup pins BUG-851: NewRateLimiters spawns one cleanup goroutine per ipRateLimiter (counted below rather than writt
internal/server/server_test.go:425
FunctionTestServer_TrackMCPSession_DeleteEvictsOnAnyStatus
TestServer_TrackMCPSession_DeleteEvictsOnAnyStatus pins the spec behavior: the client considers the session over once it sends DELETE, so the server s
internal/server/middleware_mcp_session_test.go:412
FunctionTestServer_TrackMCPSession_FailedInitializeDoesNotOpen
TestServer_TrackMCPSession_FailedInitializeDoesNotOpen guards against the bug the original v1 logic also tried to handle: a 500 on initialize must NOT
internal/server/middleware_mcp_session_test.go:337
FunctionTestServer_TrackMCPSession_LifecycleHappyPath
TestServer_TrackMCPSession_LifecycleHappyPath covers the integration seam the audit middleware uses: trackMCPSession pulls the session-id from the res
internal/server/middleware_mcp_session_test.go:289
FunctionTestServer_TrackMCPSession_NilTrackerIsSafe
TestServer_TrackMCPSession_NilTrackerIsSafe verifies the helper is a clean no-op on Servers that never wired the tracker (selfhost / tests).
internal/server/middleware_mcp_session_test.go:383
FunctionTestServer_TrackMCPSession_NoIDIsNoOp
TestServer_TrackMCPSession_NoIDIsNoOp verifies a request with no Mcp-Session-Id in either header doesn't churn the tracker. Covers the corner where th
internal/server/middleware_mcp_session_test.go:366
FunctionTestServer_goAsync_RecoversPanic
TestServer_goAsync_RecoversPanic pins BUG-2011: a panicking fn passed to goAsync (e.g. deriveThumbnails hitting a Go image-decoder panic on a crafted
internal/server/server_test.go:528
FunctionTestSessionActivityBlockedBodyProcess
(t *testing.T)
cmd/pad/cmd_session_activity_test.go:81
FunctionTestSessionActivityByWorker
(t *testing.T)
internal/server/task4040_presence_test.go:92
FunctionTestSessionActivityChildExplicitIdentity
(t *testing.T)
cmd/pad/session_activity_identity_test.go:15
FunctionTestSessionActivityDetachedTimestamp
(t *testing.T)
cmd/pad/session_activity_parent_test.go:61
FunctionTestSessionActivityHookProcess
(t *testing.T)
cmd/pad/cmd_session_activity_test.go:28
FunctionTestSessionActivityInvalidArgs
(t *testing.T)
cmd/pad/cmd_session_activity_test.go:61
FunctionTestSessionActivityInvalidFlags
(t *testing.T)
cmd/pad/cmd_session_activity_test.go:73
FunctionTestSessionActivityInvalidFormat
(t *testing.T)
cmd/pad/cmd_session_activity_test.go:69
FunctionTestSessionActivityMalformedBody
(t *testing.T)
internal/server/session_activity_decode_test.go:9
FunctionTestSessionActivityNullTimestamp
(t *testing.T)
internal/server/session_activity_decode_test.go:27
FunctionTestSessionActivityOverallDeadline
(t *testing.T)
cmd/pad/cmd_session_activity_test.go:95
FunctionTestSessionActivityParentIdentityResolution
(t *testing.T)
cmd/pad/session_activity_parent_test.go:93
FunctionTestSessionActivityParentNeverReports
(t *testing.T)
cmd/pad/session_activity_parent_test.go:14
FunctionTestSessionActivityPinnedTokenRefused
(t *testing.T)
internal/server/task4040_presence_test.go:166
FunctionTestSessionActivityRealBinaryReturnsBeforeResponse
(t *testing.T)
cmd/pad/session_activity_detach_test.go:20
FunctionTestSessionActivityReceiptExpiry
(t *testing.T)
internal/server/session_activity_ordering_test.go:192
FunctionTestSessionActivityRedisReplacesCorruptClientTimestamp
(t *testing.T)
internal/server/session_activity_corrupt_test.go:11
FunctionTestSessionActivityRedisWritesOnlyThroughScript
(t *testing.T)
internal/server/session_activity_ordering_test.go:285
FunctionTestSessionActivityReorderWindow
(t *testing.T)
internal/server/session_activity_ordering_test.go:141
FunctionTestSessionActivityReorderWindowDerivedFromReportBound
(t *testing.T)
internal/server/session_activity_ordering_test.go:15
FunctionTestSessionActivityRequiresResolvedUser
(t *testing.T)
internal/server/task4040_activity_registry_test.go:295
FunctionTestSessionActivityResolutionErrorSilent
(t *testing.T)
cmd/pad/cmd_session_activity_test.go:54
FunctionTestSessionActivityResolutionTimeoutDefault
(t *testing.T)
cmd/pad/cmd_session_activity_test.go:22
FunctionTestSessionActivitySpawnFailureSilent
(t *testing.T)
cmd/pad/cmd_session_activity_test.go:50
FunctionTestSessionActivitySurvivesParentProcessGroupKill
(t *testing.T)
cmd/pad/session_activity_process_group_unix_test.go:35
FunctionTestSessionActivityTimeoutDefaultsToReportBound
(t *testing.T)
cmd/pad/cmd_session_activity_test.go:16
FunctionTestSessionActivityTimestampOrdering
(t *testing.T)
internal/server/session_activity_ordering_test.go:24
FunctionTestSessionActivityTokenScopes
(t *testing.T)
internal/server/session_activity_scope_test.go:11
FunctionTestSessionActivityUnreachable
(t *testing.T)
cmd/pad/cmd_session_activity_test.go:46
FunctionTestSessionAuth_CancelledContextIsQuiet
The session middleware answers a request whose context is already done with nothing at all: no 500 body, no error log, and the query is not run.
internal/server/task4278_account_delete_budget_test.go:216
FunctionTestSessionAuth_ShortCircuitsOnAPITokenAuth
TestSessionAuth_ShortCircuitsOnAPITokenAuth verifies that when a request carries BOTH a valid API token (Authorization: Bearer pad_...) AND a stale se
internal/server/middleware_session_ip_test.go:297
FunctionTestSessionBindingMetadata
(t *testing.T)
internal/store/sessions_test.go:151
FunctionTestSessionContext_CancelStopsRenewUpdate
(t *testing.T)
internal/store/task4278_ctx_test.go:62
FunctionTestSessionContext_CancelStopsValidate
(t *testing.T)
internal/store/task4278_ctx_test.go:32
FunctionTestSessionCreateAndValidate
(t *testing.T)
internal/store/sessions_test.go:11
FunctionTestSessionDelete
(t *testing.T)
internal/store/sessions_test.go:87
FunctionTestSessionDirectionClearFailureStillDisarms
(t *testing.T)
cmd/pad/chat_r10_test.go:110
FunctionTestSessionDisarmClearsDirection
(t *testing.T)
cmd/pad/cmd_chat_direction_test.go:135
FunctionTestSessionExpired
(t *testing.T)
internal/store/sessions_test.go:66
FunctionTestSessionIPChange_CASDedupesRace
TestSessionIPChange_CASDedupesRace verifies that the compare-and-set update scheme produces at most one audit row per IP-change transition, even when
internal/server/middleware_session_ip_test.go:232
FunctionTestSessionIPChange_LogOnlyDefault
TestSessionIPChange_LogOnlyDefault verifies that without PAD_IP_CHANGE_ENFORCE=strict, a session that presents a different client IP is allowed throug
internal/server/middleware_session_ip_test.go:47
FunctionTestSessionIPChange_StrictAllowsPublicAPIPaths
TestSessionIPChange_StrictAllowsPublicAPIPaths verifies that a stale session cookie on a PUBLIC API path (login, password reset, health, share links,
internal/server/middleware_session_ip_test.go:184
FunctionTestSessionIPChange_StrictClearsCookies
TestSessionIPChange_StrictClearsCookies verifies that in strict mode the session cookie is explicitly cleared on the response (MaxAge=-1) so the brows
internal/server/middleware_session_ip_test.go:154
FunctionTestSessionIPChange_StrictDestroysSessionAtomically
TestSessionIPChange_StrictDestroysSessionAtomically verifies that in strict mode the session is destroyed as part of the IP-mismatch check and does NO
internal/server/middleware_session_ip_test.go:120
FunctionTestSessionIPChange_StrictRejects
TestSessionIPChange_StrictRejects verifies that with strict enforcement enabled, a session presenting a different client IP is rejected AND the sessio
internal/server/middleware_session_ip_test.go:85
FunctionTestSessionInvalidToken
(t *testing.T)
internal/store/sessions_test.go:53
FunctionTestSessionList_CwdMatchesDirectoryIdentity
TestSessionList_CwdMatchesDirectoryIdentity: a session registered from a directory reached through a symlink matches --cwd given as the real path AND
cmd/pad/cmd_session_registry_test.go:377
FunctionTestSessionList_EmptyAgentFilterExcludesLegacyAndMalformed
TestSessionList_EmptyAgentFilterExcludesLegacyAndMalformed: a legacy or malformed row has NO agent, not an empty one, so --agent "" returns only genui
cmd/pad/cmd_session_registry_test.go:330
FunctionTestSessionList_FiltersOrderAndAll
(t *testing.T)
cmd/pad/cmd_session_registry_test.go:181
FunctionTestSessionList_TableMarksLegacyAndAnonymous
(t *testing.T)
cmd/pad/cmd_session_registry_test.go:248
FunctionTestSessionList_TableMarksUnverifiedPid
TestSessionList_TableMarksUnverifiedPid: a harness pid claim that is not in the registering process's ancestry shows as "(unverified pid)" in the tabl
cmd/pad/cmd_session_registry_test.go:410
FunctionTestSessionList_TableNeutralizesControlCharacters
TestSessionList_TableNeutralizesControlCharacters: a self-declared agent name carrying a newline and an ANSI escape must not forge a row or drive the
cmd/pad/cmd_session_registry_test.go:355
FunctionTestSessionPrune_Verb
(t *testing.T)
cmd/pad/cmd_session_registry_test.go:282
FunctionTestSessionRecord_JSONShape
TestSessionRecord_JSONShape pins the consumer contract of `pad session list --format json`: the keys scripts read, present in the shape they expect, w
internal/cli/session_registry_test.go:399
FunctionTestSessionRegister_AgentResolution
(t *testing.T)
cmd/pad/cmd_session_registry_test.go:75
FunctionTestSessionRegister_HarnessPidAndSessionID
(t *testing.T)
cmd/pad/cmd_session_registry_test.go:106
FunctionTestSessionRegister_RejectsBadHarnessPid
(t *testing.T)
cmd/pad/cmd_session_registry_test.go:121
← previousnext →24,301–24,400 of 28,840, ranked by callers