MCPcopy Create free account

hub / github.com/Facets-cloud/flow / functions

Functions972 in github.com/Facets-cloud/flow

FunctionTestMigrationHarnessSurvivesSessionInvariantRebuild
TestMigrationHarnessSurvivesSessionInvariantRebuild pins the fix for a bug where DBs upgrading from a pre-session-invariant version (e.g. v0.1.0-alpha
internal/flowdb/db_test.go:516
FunctionTestMigrationIdempotent
(t *testing.T)
internal/flowdb/db_test.go:489
FunctionTestNewUUIDFormat
(t *testing.T)
internal/harness/claude/claude_test.go:14
FunctionTestNewUUIDUniqueness
(t *testing.T)
internal/harness/claude/claude_test.go:26
FunctionTestNonBgModeSkipsRegistry
Regression guard: with FLOW_TERM unset (non-bg mode), flow show / list must NOT query the background-agent registry — no `claude agents` subprocess, n
internal/app/background_test.go:351
FunctionTestNowISO
(t *testing.T)
internal/flowdb/db_test.go:174
FunctionTestOpenDBConcurrentDoesNotBusy
TestOpenDBConcurrentDoesNotBusy pins that two parallel OpenDB calls on the same path don't race during schema setup. Without busy_timeout applied at o
internal/flowdb/db_test.go:71
FunctionTestOpenDBCreatesSchema
(t *testing.T)
internal/flowdb/db_test.go:41
FunctionTestOpenDBIdempotent
(t *testing.T)
internal/flowdb/db_test.go:52
FunctionTestOpenDBOnPreMigrationDB
TestOpenDBOnPreMigrationDB simulates an existing user upgrading from a pre-feat/playbooks flow.db: tasks table exists but lacks the kind and playbook_
internal/flowdb/db_test.go:275
FunctionTestOverrideBeatsEnv
TestOverrideBeatsEnv confirms the test escape hatch: setting Override pins the backend regardless of env vars, so individual tests can pin the dispatc
internal/spawner/spawner_test.go:97
FunctionTestOwnerShowReconcilesDeadTick
(t *testing.T)
internal/app/owner_tick_test.go:493
FunctionTestOwnerShowShowsRunningTick
(t *testing.T)
internal/app/owner_tick_test.go:468
FunctionTestOwnerTickDispatchEnvIsSessionless
Each tick is a FRESH, sessionless run: the detached child's env must not carry CLAUDE_CODE_SESSION_ID from the parent, or the tick would resume the pa
internal/app/owner_tick_test.go:267
FunctionTestOwnerTickDueDispatchesAndReschedules
(t *testing.T)
internal/app/owner_tick_test.go:12
FunctionTestOwnerTickDueFastFinishingChildKeepsResult
A tick that finishes BEFORE the scheduler records its pid must not have its result clobbered. The scheduler dispatch write must touch only the running
internal/app/owner_tick_test.go:305
FunctionTestOwnerTickDueRecordsRunningPID
(t *testing.T)
internal/app/owner_tick_test.go:56
FunctionTestOwnerTickDueRedispatchesStaleTick
An owner whose tick_pid looks alive (pid reuse after a reboot) but whose tick started long ago must NOT be skipped forever (gap 6) — the staleness cap
internal/app/owner_tick_test.go:172
FunctionTestOwnerTickDueSecondPassDoesNotRedispatch
After dispatch advances next_wake_at into the future, an immediate second scheduler pass must not re-dispatch the same owner.
internal/app/owner_tick_test.go:202
FunctionTestOwnerTickDueSkipsInvalidEvery
tick-due must skip (not crash, not launch) an owner with an unparseable --every — a defensive path since CreateOwner / direct writes don't validate th
internal/app/owner_tick_test.go:242
FunctionTestOwnerTickDueSkipsOwnerWithRunningTick
(t *testing.T)
internal/app/owner_tick_test.go:526
FunctionTestOwnerTickFieldsPersist
(t *testing.T)
internal/flowdb/owners_test.go:295
FunctionTestOwnerTickManualAutoRefusesWhileTickRunning
A hand-triggered `flow owner tick --auto` must not stack a second tick on top of one already running (e.g. a scheduled tick, or an event-triggered tic
internal/app/owner_tick_test.go:88
FunctionTestOwnerTickManualAutoRunsHeadless
(t *testing.T)
internal/app/owner_tick_test.go:703
FunctionTestOwnerTickManualInteractiveSpawnsTab
(t *testing.T)
internal/app/owner_tick_test.go:653
FunctionTestOwnerTickPromptUsesAbsoluteOwnerDir
Tick prompts must reference the ABSOLUTE owner dir, so a headless run (cwd=work_dir) reads/writes the real charter+journal under $FLOW_ROOT instead of
internal/app/owner_tick_test.go:121
FunctionTestPainter_Disabled
(t *testing.T)
internal/listfmt/listfmt_test.go:78
FunctionTestPainter_Enabled
(t *testing.T)
internal/listfmt/listfmt_test.go:86
FunctionTestParseBackgroundAgents
(t *testing.T)
internal/harness/claude/background_test.go:79
FunctionTestParseBackgroundAgentsDropsInteractive
`claude agents --json --all` also returns interactive (non-background) sessions. parseBackgroundAgents must drop them — flow's bg surfaces (bg_status,
internal/harness/claude/background_test.go:65
FunctionTestParseBackgroundBanner
(t *testing.T)
internal/harness/claude/background_test.go:29
FunctionTestParseDueDate
(t *testing.T)
internal/app/update_test.go:10
FunctionTestParseFormat
(t *testing.T)
internal/listfmt/listfmt_test.go:9
FunctionTestParseSince
parseSince unit tests exercise the date logic directly without needing to stand up a DB. Kept here next to the command that uses it.
internal/app/list_test.go:339
FunctionTestParseSince
(t *testing.T)
internal/stats/report_test.go:158
FunctionTestPlaybookCRUD
(t *testing.T)
internal/flowdb/db_test.go:422
FunctionTestPlaybookRunBootstrapMentionsPersistAdjustments
(t *testing.T)
internal/app/skill_test.go:567
FunctionTestPlaybooksTableExists
(t *testing.T)
internal/flowdb/db_test.go:343
FunctionTestProjectCRUD
(t *testing.T)
internal/flowdb/db_test.go:96
FunctionTestReconcileAutoRunDeadPid
TestReconcileAutoRunDeadPid: a 'running' row whose supervisor pid is no longer alive is reconciled to 'dead' on read.
internal/app/auto_test.go:263
FunctionTestReconcileAutoRunLivePidStaysRunning
TestReconcileAutoRunLivePidStaysRunning: a live pid keeps 'running'.
internal/app/auto_test.go:289
FunctionTestRender
(t *testing.T)
internal/harness/claude/transcript_test.go:37
FunctionTestRenderCardHTML
(t *testing.T)
internal/app/card_test.go:13
FunctionTestRenderCardHTMLAutomationBand
(t *testing.T)
internal/app/card_test.go:52
FunctionTestRenderCardPNG
TestRenderCardPNG verifies that renderCardPNG returns a non-nil image with positive dimensions for both automation-present and automation-absent Stats
internal/app/card_png_test.go:65
FunctionTestRenderCompact
(t *testing.T)
internal/harness/claude/transcript_test.go:74
FunctionTestRenderJSON
(t *testing.T)
internal/listfmt/listfmt_test.go:190
FunctionTestRenderReportContainsSections
(t *testing.T)
internal/app/stats_test.go:11
FunctionTestRenderReportHidesAutomationWhenZero
(t *testing.T)
internal/app/stats_test.go:58
FunctionTestRenderTSV
(t *testing.T)
internal/listfmt/listfmt_test.go:206
FunctionTestRendersEntriesWithoutTimestamp
TestRendersEntriesWithoutTimestamp pins that entries lacking a `timestamp` field still render — the renderer never inspects timestamps, so a missing o
internal/harness/claude/transcript_test.go:123
FunctionTestRendersWholeTranscript
TestRendersWholeTranscript pins the no-cutoff contract: every user/assistant entry is rendered regardless of its timestamp, so a retrospective `--here
internal/harness/claude/transcript_test.go:110
FunctionTestResolvePlaybook
(t *testing.T)
internal/app/resolve_test.go:9
FunctionTestResolvePlaybookArchived
(t *testing.T)
internal/app/resolve_test.go:30
FunctionTestResolveTranscriptPathGlobFallback
TestResolveTranscriptPathGlobFallback simulates the bg/worktree gotcha: the session ran with cwd under a git worktree but its jsonl is keyed under the
internal/harness/claude/transcript_test.go:170
FunctionTestResolveTranscriptPathNotFound
TestResolveTranscriptPathNotFound: neither deterministic nor glob hits.
internal/harness/claude/transcript_test.go:195
FunctionTestResolveTranscriptPathPrefersDeterministic
TestResolveTranscriptPathPrefersDeterministic: when the cwd-encoded path exists, it wins — no glob needed.
internal/harness/claude/transcript_test.go:135
FunctionTestResumeBackgroundCapturesNewID
ResumeBackground resumes the OLD id under --bg but, because --bg mints a fresh id, must return the NEW captured agent (history inherited).
internal/harness/claude/background_test.go:217
FunctionTestResumeCmd_PreservesByteIdentity
(t *testing.T)
internal/harness/claude/claude_test.go:158
FunctionTestRetireOwner
(t *testing.T)
internal/flowdb/owners_test.go:223
FunctionTestRunSlugBasic
(t *testing.T)
internal/app/run_test.go:14
FunctionTestRunSlugMinuteCollision
(t *testing.T)
internal/app/run_test.go:27
FunctionTestRunSlugSecondCollision
(t *testing.T)
internal/app/run_test.go:48
FunctionTestRunSlugUTCNormalization
(t *testing.T)
internal/app/run_test.go:67
FunctionTestScanJSONL
(t *testing.T)
internal/stats/scan_test.go:8
FunctionTestScriptBodyExecReplaces
TestScriptBodyExecReplaces — the final non-empty line is exec, so bash is replaced by the command process. No orphan bash, clean ^C.
internal/warp/warp_test.go:186
FunctionTestScriptBodySelfDeletes
TestScriptBodySelfDeletes — first non-shebang line is rm -- "$0". This is what makes the temp script disappear ~immediately on successful execution.
internal/warp/warp_test.go:164
FunctionTestShellQuote
TestShellQuote is a sanity check on the local helper — same contract as iterm.ShellQuote.
internal/terminal/terminal_test.go:287
FunctionTestShellQuote
TestShellQuote is a sanity check on the local helper — same contract as iterm.ShellQuote and terminal.ShellQuote.
internal/ghostty/ghostty_test.go:83
FunctionTestShellQuote
TestShellQuote — same contract as iterm.ShellQuote / terminal.ShellQuote.
internal/zellij/zellij_test.go:320
FunctionTestShellQuote
TestShellQuote — same contract as iterm/terminal/zellij.
internal/kitty/kitty_test.go:415
FunctionTestShellQuote
TestShellQuote — same contract as iterm.ShellQuote / terminal.ShellQuote zellij.ShellQuote.
internal/warp/warp_test.go:345
FunctionTestShellQuoteParity
TestShellQuoteParity makes sure the re-exported helper matches every backend's implementation. All backends quote identically.
internal/spawner/spawner_test.go:457
FunctionTestShowProjectListsAuxFiles
(t *testing.T)
internal/app/show_test.go:565
FunctionTestShowProjectNoAuxFiles
(t *testing.T)
internal/app/show_test.go:587
FunctionTestShowTaskListsAuxFiles
(t *testing.T)
internal/app/show_test.go:516
FunctionTestShowTaskNoAuxFiles
(t *testing.T)
internal/app/show_test.go:549
FunctionTestSkillEmphasizesCloseOutValue
TestSkillEmphasizesCloseOutValue pins §4.7's framing of `flow done` as the load-bearing moment that persists the session's learnings — it triggers the
internal/app/skill_test.go:458
FunctionTestSkillHasAccessibilityErrorRecipe
TestSkillHasAccessibilityErrorRecipe pins the §4.4 recipe for handling the macOS Accessibility error from the Terminal.app backend: name Terminal defi
internal/app/skill_test.go:486
FunctionTestSkillHasExplicitInvocationSection
TestSkillHasExplicitInvocationSection pins the §1a behavior: when the skill is invoked without a trigger phrase, it should describe its capabilities a
internal/app/skill_test.go:506
FunctionTestSkillHasFirstRunCapturePattern
(t *testing.T)
internal/app/skill_test.go:551
FunctionTestSkillHasMidInterviewDriftRule
(t *testing.T)
internal/app/skill_test.go:416
FunctionTestSkillHasPlaybookPersistAdjustmentsPattern
(t *testing.T)
internal/app/skill_test.go:400
FunctionTestSkillHasPlaybookSections
(t *testing.T)
internal/app/skill_test.go:320
FunctionTestSkillHasUpgradeWorkflow
TestSkillHasUpgradeWorkflow pins the §4.15 upgrade procedure: the skill must know how to walk the user through replacing the binary per the README at
internal/app/skill_test.go:435
FunctionTestSkillInstallErrorsOnExisting
(t *testing.T)
internal/app/skill_test.go:91
FunctionTestSkillInstallForceOverwrites
(t *testing.T)
internal/app/skill_test.go:101
FunctionTestSkillInstallIsIdempotent
TestSkillInstallIsIdempotent verifies a second install --force does not duplicate either hook entry. Past regressions append duplicates silently; pin
internal/app/skill_test.go:185
FunctionTestSkillInstallPreservesUnrelatedHooks
TestSkillInstallPreservesUnrelatedHooks pins the safety property: installing flow's UserPromptSubmit hook MUST add flow's entry while leaving other co
internal/app/skill_test.go:208
FunctionTestSkillInstallSkipHook
TestSkillInstallSkipHook leaves settings.json untouched when --skip-hook.
internal/app/skill_test.go:273
FunctionTestSkillInstallWritesBothHooks
TestSkillInstallWritesBothHooks verifies install wires up BOTH the SessionStart hook and the UserPromptSubmit drift/close-out hook into ~/.claude/sett
internal/app/skill_test.go:164
FunctionTestSkillInstallWritesFile
(t *testing.T)
internal/app/skill_test.go:71
FunctionTestSkillInstallWritesVersionSidecar
(t *testing.T)
internal/app/version_test.go:18
FunctionTestSkillIntakeMinimal
(t *testing.T)
internal/app/skill_test.go:353
FunctionTestSkillMentionsAutoMode
(t *testing.T)
internal/app/skill_test.go:371
FunctionTestSkillMentionsPlaybooks
(t *testing.T)
internal/app/skill_test.go:292
FunctionTestSkillNoCliCoachingInUserFacingLabels
TestSkillNoCliCoachingInUserFacingLabels pins the rule that the skill must not put literal `flow ...` invocations inside AskUserQuestion option labels
internal/app/skill_test.go:530
FunctionTestSkillSection414
(t *testing.T)
internal/app/skill_test.go:338
FunctionTestSkillUninstallIdempotent
(t *testing.T)
internal/app/skill_test.go:153
FunctionTestSkillUninstallRemovesBothHooks
TestSkillUninstallRemovesBothHooks verifies uninstall strips both the SessionStart and UserPromptSubmit entries, leaving an empty (or absent) hooks ma
internal/app/skill_test.go:257
← previousnext →801–900 of 972, ranked by callers