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
TestCmdDoConcurrentFreshTasks
TestCmdDoConcurrentFreshTasks verifies two concurrent cmdDo calls on a fresh task don't corrupt DB state. The BEGIN IMMEDIATE lock serializes the txs:
internal/app/do_test.go:599
Function
TestCmdDoDoneStillRefusedWithoutWith
(t *testing.T)
internal/app/do_test.go:1149
Function
TestCmdDoDoneTaskRefused
(t *testing.T)
internal/app/do_test.go:501
Function
TestCmdDoEmitsPlaybookVariantForPlaybookRun
(t *testing.T)
internal/app/do_test.go:736
Function
TestCmdDoFreshAllocatesSessionID
TestCmdDoFreshAllocatesSessionID verifies the pre-allocation contract: a fresh task gets a UUID written to tasks.session_id and spawns `claude --sessi
internal/app/do_test.go:301
Function
TestCmdDoFreshRotatesStaleSession
TestCmdDoFreshRotatesStaleSession verifies --fresh overwrites an existing session_id with a newly-allocated UUID and spawns with that UUID via --sessi
internal/app/do_test.go:470
Function
TestCmdDoFreshSpawnFailureRollsBackSessionID
TestCmdDoFreshSpawnFailureRollsBackSessionID pins the rollback invariant: when a fresh-bootstrap spawn fails (e.g. Terminal.app Accessibility denied),
internal/app/do_test.go:353
Function
TestCmdDoFuzzyAmbiguous
(t *testing.T)
internal/app/do_test.go:524
Function
TestCmdDoFuzzyExactWins
(t *testing.T)
internal/app/do_test.go:538
Function
TestCmdDoHereForceDoesNotBypassCwdGate
TestCmdDoHereForceDoesNotBypassCwdGate pins that --force does NOT override the cwd-mismatch invariant: --force overrides the already-bound-elsewhere c
internal/app/do_test.go:1235
Function
TestCmdDoHereForceOverwritesBinding
TestCmdDoHereForceOverwritesBinding pins that --force allows the overwrite of a prior binding. The user has been told this orphans the prior session.
internal/app/do_test.go:871
Function
TestCmdDoHereForceSwitchesHarness
TestCmdDoHereForceSwitchesHarness pins the --force escape: when the user explicitly asks, we switch the task's harness pinning alongside the session_i
internal/app/harness_test.go:235
Function
TestCmdDoHereHappyPath
---------- flow do --here ---------- TestCmdDoHereHappyPath pins the in-session bind contract: with $CLAUDE_CODE_SESSION_ID set and a backlog target t
internal/app/do_test.go:789
Function
TestCmdDoHereIdempotent
TestCmdDoHereIdempotent pins that re-running --here against a task already bound to THIS session is a no-op success (no error, no overwrite needed).
internal/app/do_test.go:903
Function
TestCmdDoHereNoEnvVar
TestCmdDoHereNoEnvVar pins that --here errors when no Claude Code session is in the env (no session UUID to bind).
internal/app/do_test.go:823
Function
TestCmdDoHerePersistsHarnessColumn
TestCmdDoHerePersistsHarnessColumn pins that --here writes the harness column on bind, alongside session_id. (Pre-invariant versions also captured ses
internal/app/harness_test.go:161
Function
TestCmdDoHereRefusesWhenTranscriptMissing
---------- cwd-matches-work_dir invariant on flow do --here ---------- TestCmdDoHereRefusesWhenTranscriptMissing pins the GH #59 invariant: --here ref
internal/app/do_test.go:1190
Function
TestCmdDoHereRejectsAlreadyBound
TestCmdDoHereRejectsAlreadyBound pins the wrong-session-id guard: if the target task already has a session_id (even one different from the current $CL
internal/app/do_test.go:841
Function
TestCmdDoHereRejectsCrossHarness
TestCmdDoHereRejectsCrossHarness pins the safety rail: a task pinned to harness X can't be --here-bound from a session of harness Y without --force. T
internal/app/harness_test.go:194
Function
TestCmdDoHereRejectsCurrentSessionAlreadyBoundElsewhere
TestCmdDoHereRejectsCurrentSessionAlreadyBoundElsewhere pins the no-duplicate-session_id invariant: if THIS session is already bound to another task,
internal/app/do_test.go:923
Function
TestCmdDoHereRejectsDoneTask
TestCmdDoHereRejectsDoneTask pins that --here on a done task refuses with a friendly pointer at the reopen path. Auto-reopen would silently bypass the
internal/app/do_test.go:963
Function
TestCmdDoLiveSessionDuplicateProcessesWarn
TestCmdDoLiveSessionDuplicateProcessesWarn covers the duplicate-tab detection path. ps reports two claude processes running the same session UUID; cmd
internal/app/do_test.go:223
Function
TestCmdDoLiveSessionFocusesExistingTab
TestCmdDoLiveSessionFocusesExistingTab pins the new behavior: when a task's session is already running AND the active backend can locate its tab, `flo
internal/app/do_test.go:179
Function
TestCmdDoLiveSessionGuard
TestCmdDoLiveSessionGuard checks that a task whose session_id is in the live-claude-process set refuses to spawn (when focus can't find the tab) unles
internal/app/do_test.go:130
Function
TestCmdDoOmitsFirstRunBannerForSecondPlaybookRun
(t *testing.T)
internal/app/do_test.go:713
Function
TestCmdDoPersistsHarnessOnBootstrap
TestCmdDoPersistsHarnessOnBootstrap pins the contract: the first `flow do` on a previously-unbound task writes the chosen harness AND the session_cwd
internal/app/harness_test.go:76
Function
TestCmdDoPropagatesFlowRootEnv
TestCmdDoPropagatesFlowRootEnv pins that a custom $FLOW_ROOT in the parent process is forwarded to the spawned tab's command line, so the in-tab sessi
internal/app/do_test.go:765
Function
TestCmdDoRefusesUnsupportedHarnessPin
TestCmdDoRefusesUnsupportedHarnessPin pins the two related contracts: 1. A task pinned to a harness this binary doesn't register must NOT spawn as th
internal/app/harness_test.go:116
Function
TestCmdDoResumeSpawnFailureKeepsSessionID
TestCmdDoResumeSpawnFailureKeepsSessionID is the inverse of the fresh-bootstrap case: when a RESUME spawn fails (the session_id already pointed at a r
internal/app/do_test.go:400
Function
TestCmdDoResumesExistingSession
(t *testing.T)
internal/app/do_test.go:439
Function
TestCmdDoSetsFirstRunBannerForFirstPlaybookRun
(t *testing.T)
internal/app/do_test.go:697
Function
TestCmdDoSpawnsClaudeNotFlowde
TestCmdDoSpawnsClaudeNotFlowde pins the post-flowde contract: `flow do` shells out to `claude` directly (no wrapper) for both the fresh bootstrap and
internal/app/do_test.go:558
Function
TestCmdDoWithEmptyString
(t *testing.T)
internal/app/do_test.go:1084
Function
TestCmdDoWithFile
(t *testing.T)
internal/app/do_test.go:1037
Function
TestCmdDoWithFileMissing
(t *testing.T)
internal/app/do_test.go:1097
Function
TestCmdDoWithFreshInjectsAfterBootstrap
(t *testing.T)
internal/app/do_test.go:983
Function
TestCmdDoWithMutualExclusivity
(t *testing.T)
internal/app/do_test.go:1065
Function
TestCmdDoWithRejectedWithHere
(t *testing.T)
internal/app/do_test.go:1166
Function
TestCmdDoWithReopensDoneTask
(t *testing.T)
internal/app/do_test.go:1110
Function
TestCmdDoWithResumeAppendsPositionalArg
(t *testing.T)
internal/app/do_test.go:1011
Function
TestCmdDoneCloseoutSweepIncludesProjectStep
TestCmdDoneCloseoutSweepIncludesProjectStep verifies that when the task is attached to a project, the close-out prompt includes the project-update ste
internal/app/done_test.go:169
Function
TestCmdDoneCloseoutSweepSkipsProjectStepForFloating
TestCmdDoneCloseoutSweepSkipsProjectStepForFloating verifies that floating tasks (no project) get a prompt without any project-update instructions or
internal/app/done_test.go:213
Function
TestCmdDoneHappyPath
(t *testing.T)
internal/app/done_test.go:31
Function
TestCmdDoneIdempotent
(t *testing.T)
internal/app/done_test.go:68
Function
TestCmdDoneNoArgs
(t *testing.T)
internal/app/done_test.go:93
Function
TestCmdDoneRefusesTaskWithoutSession
TestCmdDoneRefusesTaskWithoutSession pins the session-id invariant at the friendly-error layer for `flow done`: a backlog task with no session_id has
internal/app/done_test.go:105
Function
TestCmdDoneRunsSweepWhenSessionExists
TestCmdDoneRunsSweepWhenSessionExists verifies that done invokes the claude runner exactly once with the task slug and a sweep prompt when the task ha
internal/app/done_test.go:127
Function
TestCmdDoneSweepFailureStillSucceeds
TestCmdDoneSweepFailureStillSucceeds verifies that a non-zero exit from the sweep runner does NOT fail the done command — the status flip is the durab
internal/app/done_test.go:249
Function
TestCmdDoneUnknownRef
(t *testing.T)
internal/app/done_test.go:60
Function
TestCmdEditAmbiguousSameSlug
(t *testing.T)
internal/app/edit_test.go:130
Function
TestCmdEditMissingRef
(t *testing.T)
internal/app/edit_test.go:123
Function
TestCmdEditNamespacePrefix
(t *testing.T)
internal/app/edit_test.go:148
Function
TestCmdEditPlaybook
(t *testing.T)
internal/app/edit_test.go:235
Function
TestCmdEditProjectBumpsUpdatedAt
(t *testing.T)
internal/app/edit_test.go:80
Function
TestCmdEditProjectOnlyByDefault
(t *testing.T)
internal/app/edit_test.go:211
Function
TestCmdEditTaskBumpsUpdatedAt
(t *testing.T)
internal/app/edit_test.go:30
Function
TestCmdEditTaskOnlyByDefault
(t *testing.T)
internal/app/edit_test.go:186
Function
TestCmdEditUnknownRef
(t *testing.T)
internal/app/edit_test.go:109
Function
TestCmdInitCreatesDBQueryable
(t *testing.T)
internal/app/init_test.go:50
Function
TestCmdInitCreatesTree
(t *testing.T)
internal/app/init_test.go:31
Function
TestCmdInitIdempotent
(t *testing.T)
internal/app/init_test.go:71
Function
TestCmdInitInstallsSkill
(t *testing.T)
internal/app/init_test.go:85
Function
TestCmdInitRejectsExtraArgs
(t *testing.T)
internal/app/init_test.go:122
Function
TestCmdInitSkipsSkillIfAlreadyPresent
(t *testing.T)
internal/app/init_test.go:100
Function
TestCmdInitWritesVersionSidecar
(t *testing.T)
internal/app/version_test.go:34
Function
TestCmdListBadSub
(t *testing.T)
internal/app/list_test.go:327
Function
TestCmdListOwnersAlias
flow list owners is a verb-first alias for `flow owner list` — both render the same listing (the surface owners share with task/project/ playbook). On
internal/app/owner_test.go:286
Function
TestCmdListPlaybooks
(t *testing.T)
internal/app/list_test.go:373
Function
TestCmdListPlaybooksFiltersByProject
(t *testing.T)
internal/app/list_test.go:394
Function
TestCmdListProjectsArchivedHidden
(t *testing.T)
internal/app/list_test.go:282
Function
TestCmdListProjectsBreakdown
(t *testing.T)
internal/app/list_test.go:262
Function
TestCmdListProjectsEmpty
---------- projects ----------
internal/app/list_test.go:250
Function
TestCmdListProjectsFormatJSON
(t *testing.T)
internal/app/list_test.go:1013
Function
TestCmdListProjectsStatusFilter
(t *testing.T)
internal/app/list_test.go:310
Function
TestCmdListRuns
(t *testing.T)
internal/app/list_test.go:508
Function
TestCmdListRunsByStatus
(t *testing.T)
internal/app/list_test.go:560
Function
TestCmdListTasksAgeColumn
(t *testing.T)
internal/app/list_test.go:608
Function
TestCmdListTasksArchivedHiddenByDefault
(t *testing.T)
internal/app/list_test.go:101
Function
TestCmdListTasksAutoColumn
TestCmdListTasksAutoColumn: `flow list tasks` has a dedicated, always-on AUTO column. A running run shows "running <pid>"; terminal runs show the stat
internal/app/list_test.go:816
Function
TestCmdListTasksConfigurableStaleness
(t *testing.T)
internal/app/list_test.go:677
Function
TestCmdListTasksDoneHiddenByDefault
(t *testing.T)
internal/app/list_test.go:131
Function
TestCmdListTasksDueColumn
(t *testing.T)
internal/app/list_test.go:626
Function
TestCmdListTasksDueToday
(t *testing.T)
internal/app/list_test.go:660
Function
TestCmdListTasksEmpty
(t *testing.T)
internal/app/list_test.go:14
Function
TestCmdListTasksEmptyJSON
(t *testing.T)
internal/app/list_test.go:927
Function
TestCmdListTasksFormatBad
(t *testing.T)
internal/app/list_test.go:920
Function
TestCmdListTasksFormatJSON
---------- --format / --no-color / --no-truncate ----------
internal/app/list_test.go:754
Function
TestCmdListTasksFormatJSONDueRaw
(t *testing.T)
internal/app/list_test.go:792
Function
TestCmdListTasksFormatTSV
(t *testing.T)
internal/app/list_test.go:882
Function
TestCmdListTasksMixedStatusFilter
(t *testing.T)
internal/app/list_test.go:26
Function
TestCmdListTasksNoColorPipe
(t *testing.T)
internal/app/list_test.go:996
Function
TestCmdListTasksOverdue
(t *testing.T)
internal/app/list_test.go:643
Function
TestCmdListTasksPrioritySort
(t *testing.T)
internal/app/list_test.go:46
Function
TestCmdListTasksProjectFilter
(t *testing.T)
internal/app/list_test.go:229
Function
TestCmdListTasksSince7d
(t *testing.T)
internal/app/list_test.go:208
Function
TestCmdListTasksSinceBad
(t *testing.T)
internal/app/list_test.go:222
Function
TestCmdListTasksSinceDate
(t *testing.T)
internal/app/list_test.go:215
Function
TestCmdListTasksSinceMonday
(t *testing.T)
internal/app/list_test.go:199
Function
TestCmdListTasksSinceToday
(t *testing.T)
internal/app/list_test.go:173
Function
TestCmdListTasksSlugAlwaysFull
(t *testing.T)
internal/app/list_test.go:943
← previous
next →
501–600 of 972, ranked by callers