Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Facets-cloud/flow
/ functions
Functions
972 in github.com/Facets-cloud/flow
⨍
Functions
972
◇
Types & classes
69
Function
TestMigrationHarnessSurvivesSessionInvariantRebuild
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
Function
TestMigrationIdempotent
(t *testing.T)
internal/flowdb/db_test.go:489
Function
TestNewUUIDFormat
(t *testing.T)
internal/harness/claude/claude_test.go:14
Function
TestNewUUIDUniqueness
(t *testing.T)
internal/harness/claude/claude_test.go:26
Function
TestNonBgModeSkipsRegistry
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
Function
TestNowISO
(t *testing.T)
internal/flowdb/db_test.go:174
Function
TestOpenDBConcurrentDoesNotBusy
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
Function
TestOpenDBCreatesSchema
(t *testing.T)
internal/flowdb/db_test.go:41
Function
TestOpenDBIdempotent
(t *testing.T)
internal/flowdb/db_test.go:52
Function
TestOpenDBOnPreMigrationDB
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
Function
TestOverrideBeatsEnv
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
Function
TestOwnerShowReconcilesDeadTick
(t *testing.T)
internal/app/owner_tick_test.go:493
Function
TestOwnerShowShowsRunningTick
(t *testing.T)
internal/app/owner_tick_test.go:468
Function
TestOwnerTickDispatchEnvIsSessionless
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
Function
TestOwnerTickDueDispatchesAndReschedules
(t *testing.T)
internal/app/owner_tick_test.go:12
Function
TestOwnerTickDueFastFinishingChildKeepsResult
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
Function
TestOwnerTickDueRecordsRunningPID
(t *testing.T)
internal/app/owner_tick_test.go:56
Function
TestOwnerTickDueRedispatchesStaleTick
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
Function
TestOwnerTickDueSecondPassDoesNotRedispatch
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
Function
TestOwnerTickDueSkipsInvalidEvery
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
Function
TestOwnerTickDueSkipsOwnerWithRunningTick
(t *testing.T)
internal/app/owner_tick_test.go:526
Function
TestOwnerTickFieldsPersist
(t *testing.T)
internal/flowdb/owners_test.go:295
Function
TestOwnerTickManualAutoRefusesWhileTickRunning
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
Function
TestOwnerTickManualAutoRunsHeadless
(t *testing.T)
internal/app/owner_tick_test.go:703
Function
TestOwnerTickManualInteractiveSpawnsTab
(t *testing.T)
internal/app/owner_tick_test.go:653
Function
TestOwnerTickPromptUsesAbsoluteOwnerDir
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
Function
TestPainter_Disabled
(t *testing.T)
internal/listfmt/listfmt_test.go:78
Function
TestPainter_Enabled
(t *testing.T)
internal/listfmt/listfmt_test.go:86
Function
TestParseBackgroundAgents
(t *testing.T)
internal/harness/claude/background_test.go:79
Function
TestParseBackgroundAgentsDropsInteractive
`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
Function
TestParseBackgroundBanner
(t *testing.T)
internal/harness/claude/background_test.go:29
Function
TestParseDueDate
(t *testing.T)
internal/app/update_test.go:10
Function
TestParseFormat
(t *testing.T)
internal/listfmt/listfmt_test.go:9
Function
TestParseSince
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
Function
TestParseSince
(t *testing.T)
internal/stats/report_test.go:158
Function
TestPlaybookCRUD
(t *testing.T)
internal/flowdb/db_test.go:422
Function
TestPlaybookRunBootstrapMentionsPersistAdjustments
(t *testing.T)
internal/app/skill_test.go:567
Function
TestPlaybooksTableExists
(t *testing.T)
internal/flowdb/db_test.go:343
Function
TestProjectCRUD
(t *testing.T)
internal/flowdb/db_test.go:96
Function
TestReconcileAutoRunDeadPid
TestReconcileAutoRunDeadPid: a 'running' row whose supervisor pid is no longer alive is reconciled to 'dead' on read.
internal/app/auto_test.go:263
Function
TestReconcileAutoRunLivePidStaysRunning
TestReconcileAutoRunLivePidStaysRunning: a live pid keeps 'running'.
internal/app/auto_test.go:289
Function
TestRender
(t *testing.T)
internal/harness/claude/transcript_test.go:37
Function
TestRenderCardHTML
(t *testing.T)
internal/app/card_test.go:13
Function
TestRenderCardHTMLAutomationBand
(t *testing.T)
internal/app/card_test.go:52
Function
TestRenderCardPNG
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
Function
TestRenderCompact
(t *testing.T)
internal/harness/claude/transcript_test.go:74
Function
TestRenderJSON
(t *testing.T)
internal/listfmt/listfmt_test.go:190
Function
TestRenderReportContainsSections
(t *testing.T)
internal/app/stats_test.go:11
Function
TestRenderReportHidesAutomationWhenZero
(t *testing.T)
internal/app/stats_test.go:58
Function
TestRenderTSV
(t *testing.T)
internal/listfmt/listfmt_test.go:206
Function
TestRendersEntriesWithoutTimestamp
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
Function
TestRendersWholeTranscript
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
Function
TestResolvePlaybook
(t *testing.T)
internal/app/resolve_test.go:9
Function
TestResolvePlaybookArchived
(t *testing.T)
internal/app/resolve_test.go:30
Function
TestResolveTranscriptPathGlobFallback
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
Function
TestResolveTranscriptPathNotFound
TestResolveTranscriptPathNotFound: neither deterministic nor glob hits.
internal/harness/claude/transcript_test.go:195
Function
TestResolveTranscriptPathPrefersDeterministic
TestResolveTranscriptPathPrefersDeterministic: when the cwd-encoded path exists, it wins — no glob needed.
internal/harness/claude/transcript_test.go:135
Function
TestResumeBackgroundCapturesNewID
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
Function
TestResumeCmd_PreservesByteIdentity
(t *testing.T)
internal/harness/claude/claude_test.go:158
Function
TestRetireOwner
(t *testing.T)
internal/flowdb/owners_test.go:223
Function
TestRunSlugBasic
(t *testing.T)
internal/app/run_test.go:14
Function
TestRunSlugMinuteCollision
(t *testing.T)
internal/app/run_test.go:27
Function
TestRunSlugSecondCollision
(t *testing.T)
internal/app/run_test.go:48
Function
TestRunSlugUTCNormalization
(t *testing.T)
internal/app/run_test.go:67
Function
TestScanJSONL
(t *testing.T)
internal/stats/scan_test.go:8
Function
TestScriptBodyExecReplaces
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
Function
TestScriptBodySelfDeletes
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
Function
TestShellQuote
TestShellQuote is a sanity check on the local helper — same contract as iterm.ShellQuote.
internal/terminal/terminal_test.go:287
Function
TestShellQuote
TestShellQuote is a sanity check on the local helper — same contract as iterm.ShellQuote and terminal.ShellQuote.
internal/ghostty/ghostty_test.go:83
Function
TestShellQuote
TestShellQuote — same contract as iterm.ShellQuote / terminal.ShellQuote.
internal/zellij/zellij_test.go:320
Function
TestShellQuote
TestShellQuote — same contract as iterm/terminal/zellij.
internal/kitty/kitty_test.go:415
Function
TestShellQuote
TestShellQuote — same contract as iterm.ShellQuote / terminal.ShellQuote zellij.ShellQuote.
internal/warp/warp_test.go:345
Function
TestShellQuoteParity
TestShellQuoteParity makes sure the re-exported helper matches every backend's implementation. All backends quote identically.
internal/spawner/spawner_test.go:457
Function
TestShowProjectListsAuxFiles
(t *testing.T)
internal/app/show_test.go:565
Function
TestShowProjectNoAuxFiles
(t *testing.T)
internal/app/show_test.go:587
Function
TestShowTaskListsAuxFiles
(t *testing.T)
internal/app/show_test.go:516
Function
TestShowTaskNoAuxFiles
(t *testing.T)
internal/app/show_test.go:549
Function
TestSkillEmphasizesCloseOutValue
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
Function
TestSkillHasAccessibilityErrorRecipe
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
Function
TestSkillHasExplicitInvocationSection
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
Function
TestSkillHasFirstRunCapturePattern
(t *testing.T)
internal/app/skill_test.go:551
Function
TestSkillHasMidInterviewDriftRule
(t *testing.T)
internal/app/skill_test.go:416
Function
TestSkillHasPlaybookPersistAdjustmentsPattern
(t *testing.T)
internal/app/skill_test.go:400
Function
TestSkillHasPlaybookSections
(t *testing.T)
internal/app/skill_test.go:320
Function
TestSkillHasUpgradeWorkflow
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
Function
TestSkillInstallErrorsOnExisting
(t *testing.T)
internal/app/skill_test.go:91
Function
TestSkillInstallForceOverwrites
(t *testing.T)
internal/app/skill_test.go:101
Function
TestSkillInstallIsIdempotent
TestSkillInstallIsIdempotent verifies a second install --force does not duplicate either hook entry. Past regressions append duplicates silently; pin
internal/app/skill_test.go:185
Function
TestSkillInstallPreservesUnrelatedHooks
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
Function
TestSkillInstallSkipHook
TestSkillInstallSkipHook leaves settings.json untouched when --skip-hook.
internal/app/skill_test.go:273
Function
TestSkillInstallWritesBothHooks
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
Function
TestSkillInstallWritesFile
(t *testing.T)
internal/app/skill_test.go:71
Function
TestSkillInstallWritesVersionSidecar
(t *testing.T)
internal/app/version_test.go:18
Function
TestSkillIntakeMinimal
(t *testing.T)
internal/app/skill_test.go:353
Function
TestSkillMentionsAutoMode
(t *testing.T)
internal/app/skill_test.go:371
Function
TestSkillMentionsPlaybooks
(t *testing.T)
internal/app/skill_test.go:292
Function
TestSkillNoCliCoachingInUserFacingLabels
TestSkillNoCliCoachingInUserFacingLabels pins the rule that the skill must not put literal `flow ...` invocations inside AskUserQuestion option labels
internal/app/skill_test.go:530
Function
TestSkillSection414
(t *testing.T)
internal/app/skill_test.go:338
Function
TestSkillUninstallIdempotent
(t *testing.T)
internal/app/skill_test.go:153
Function
TestSkillUninstallRemovesBothHooks
TestSkillUninstallRemovesBothHooks verifies uninstall strips both the SessionStart and UserPromptSubmit entries, leaving an empty (or absent) hooks ma
internal/app/skill_test.go:257
← previous
next →
801–900 of 972, ranked by callers