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
TestComputeSavings
(t *testing.T)
internal/stats/model_test.go:9
Function
TestCreateAndGetOwner
(t *testing.T)
internal/flowdb/owners_test.go:9
Function
TestDeleteOwner
(t *testing.T)
internal/flowdb/owners_test.go:257
Function
TestDetectFlowTermInvalidFallsThrough
TestDetectFlowTermInvalidFallsThrough — an unrecognized FLOW_TERM value is silently ignored and TERM_PROGRAM detection takes over.
internal/spawner/spawner_test.go:211
Function
TestDetectFlowTermOverride
TestDetectFlowTermOverride — FLOW_TERM with a valid backend value wins over TERM_PROGRAM but loses to ZELLIJ and kitty. Iterates over every valid back
internal/spawner/spawner_test.go:166
Function
TestDetectFromEnv
TestDetectFromEnv verifies the TERM_PROGRAM → backend mapping. The Override knob and the ZELLIJ / kitty / FLOW_TERM checks have higher precedence and
internal/spawner/spawner_test.go:65
Function
TestDetectGitRemoteBasic
(t *testing.T)
internal/app/workdir_test.go:238
Function
TestDetectGitRemoteMissing
(t *testing.T)
internal/app/workdir_test.go:231
Function
TestDetectKitty
TestDetectKitty verifies $KITTY_WINDOW_ID and $TERM=xterm-kitty both route to BackendKitty, and that kitty beats TERM_PROGRAM (kitty does not set TERM
internal/spawner/spawner_test.go:134
Function
TestDetectKittyBeatsFlowTerm
TestDetectKittyBeatsFlowTerm — kitty's per-window markers beat FLOW_TERM, matching ZELLIJ's behavior. Rationale: if the user is inside kitty, that's w
internal/spawner/spawner_test.go:197
Function
TestDetectZellij
TestDetectZellij verifies the ZELLIJ env var beats every other signal. zellij sets ZELLIJ in every shell it spawns, so its presence means the user is
internal/spawner/spawner_test.go:118
Function
TestDueOwnersHandlesMixedTimezoneOffsets
(t *testing.T)
internal/flowdb/owners_test.go:273
Function
TestDueOwnersReturnsOnlyActivePastDue
(t *testing.T)
internal/flowdb/owners_test.go:94
Function
TestDueOwnersSkipsUnparseableNextWake
A row whose next_wake_at can't be parsed must be skipped, not crash the whole scheduler pass — DueOwners is defensive against a corrupt value.
internal/flowdb/owners_test.go:132
Function
TestE2EFullRoundtrip
TestE2EFullRoundtrip exercises the full command surface in the order a user would hit it for a realistic session: init, add project, add task under th
internal/app/e2e_test.go:74
Function
TestEncodeCwd
TestEncodeCwd pins the empirical rule derived from ~/.claude/projects/* vs. the original cwd recorded in each dir's *.jsonl. `/`, `.`, and `_` each ma
internal/harness/claude/claude_test.go:70
Function
TestEnsureUpdatesDir
(t *testing.T)
internal/app/list_test.go:597
Function
TestEnumerateAuxFiles
(t *testing.T)
internal/app/aux_test.go:10
Function
TestEnumerateAuxFilesEmptyDir
(t *testing.T)
internal/app/aux_test.go:48
Function
TestEnumerateAuxFilesMissingDir
(t *testing.T)
internal/app/aux_test.go:59
Function
TestEscapeAppleScriptString
TestEscapeAppleScriptString covers the embedded helper directly so regressions in the script-path escape don't slip through.
internal/warp/warp_test.go:364
Function
TestFocusSessionAcrossOSWindows
TestFocusSessionAcrossOSWindows — the match scan walks every OS window, not just the first.
internal/kitty/kitty_test.go:278
Function
TestFocusSessionEmptyID
TestFocusSessionEmptyID short-circuits without touching ps.
internal/terminal/terminal_test.go:169
Function
TestFocusSessionEmptyID
TestFocusSessionEmptyID short-circuits without invoking zellij.
internal/zellij/zellij_test.go:130
Function
TestFocusSessionEmptyID
TestFocusSessionEmptyID short-circuits without invoking kitty.
internal/kitty/kitty_test.go:163
Function
TestFocusSessionEmptyID
TestFocusSessionEmptyID short-circuits on empty UUID without touching ps.
internal/iterm/iterm_test.go:10
Function
TestFocusSessionFocusError
TestFocusSessionFocusError surfaces focus-pane-id errors as a backend failure (distinct from "no match found").
internal/zellij/zellij_test.go:287
Function
TestFocusSessionFocusError
TestFocusSessionFocusError — a focus-window failure surfaces as a backend error, not as "no match".
internal/kitty/kitty_test.go:380
Function
TestFocusSessionListPanesError
TestFocusSessionListPanesError surfaces zellij CLI errors.
internal/zellij/zellij_test.go:275
Function
TestFocusSessionLsError
TestFocusSessionLsError surfaces a `kitty @ ls` failure as a backend error (distinct from "no match found"), wrapped with the command context.
internal/kitty/kitty_test.go:365
Function
TestFocusSessionMalformedJSON
TestFocusSessionMalformedJSON — protect against zellij output drift.
internal/zellij/zellij_test.go:304
Function
TestFocusSessionMalformedJSON
TestFocusSessionMalformedJSON — guard against kitty output drift.
internal/kitty/kitty_test.go:406
Function
TestFocusSessionMatchesAndFocuses
TestFocusSessionMatchesAndFocuses verifies the happy path drives osascript with the right tty against Terminal.app's dictionary.
internal/terminal/terminal_test.go:186
Function
TestFocusSessionMatchesAndFocuses
TestFocusSessionMatchesAndFocuses verifies the happy path: list-panes JSON contains a non-plugin pane whose pane_command runs claude with the target U
internal/zellij/zellij_test.go:152
Function
TestFocusSessionMatchesAndFocuses
TestFocusSessionMatchesAndFocuses verifies the happy path: a foreground process under a kitty window runs claude with the target UUID, and FocusSessio
internal/kitty/kitty_test.go:182
Function
TestFocusSessionMatchesAndFocuses
TestFocusSessionMatchesAndFocuses confirms the happy path: ps returns a claude row carrying the UUID, FocusSession extracts the tty, drives osascript
internal/iterm/iterm_test.go:32
Function
TestFocusSessionNoMatch
TestFocusSessionNoMatch — list-panes contains no claude with this UUID.
internal/zellij/zellij_test.go:230
Function
TestFocusSessionNoMatch
TestFocusSessionNoMatch — no foreground process under any window runs claude with the target UUID; Runner must not be called.
internal/kitty/kitty_test.go:310
Function
TestFocusSessionNoMatchInPS
TestFocusSessionNoMatchInPS returns (false, nil) without touching osascript.
internal/iterm/iterm_test.go:102
Function
TestFocusSessionOsascriptError
TestFocusSessionOsascriptError surfaces script-runtime failures distinct from "no match".
internal/terminal/terminal_test.go:240
Function
TestFocusSessionOsascriptError
TestFocusSessionOsascriptError surfaces the error too — distinguishes "the focus mechanism broke" from "no match found" so the caller can log it.
internal/iterm/iterm_test.go:183
Function
TestFocusSessionPSError
TestFocusSessionPSError surfaces ps failures.
internal/terminal/terminal_test.go:230
Function
TestFocusSessionPSError
TestFocusSessionPSError surfaces the error to the caller instead of silently treating it as "no match". The caller can then decide whether to fall thr
internal/iterm/iterm_test.go:169
Function
TestFocusSessionResumeFlag
TestFocusSessionResumeFlag — covers --resume in pane_command.
internal/zellij/zellij_test.go:191
Function
TestFocusSessionResumeFlag
TestFocusSessionResumeFlag covers `--resume <uuid>` in argv.
internal/kitty/kitty_test.go:225
Function
TestFocusSessionResumeFlag
TestFocusSessionResumeFlag covers the --resume variant alongside --session-id, since both forms appear depending on whether the tab is in bootstrap or
internal/iterm/iterm_test.go:67
Function
TestFocusSessionRoutesToITerm
TestFocusSessionRoutesToITerm — when Detect() resolves to iTerm, FocusSession invokes the iterm backend.
internal/spawner/spawner_test.go:333
Function
TestFocusSessionRoutesToKitty
TestFocusSessionRoutesToKitty — Override=Kitty hits the kitty backend. The kitty backend uses `kitty @ ls` JSON rather than ps/tty, so the stub return
internal/spawner/spawner_test.go:389
Function
TestFocusSessionRoutesToTerminal
TestFocusSessionRoutesToTerminal — Override=Terminal hits the terminal backend.
internal/spawner/spawner_test.go:351
Function
TestFocusSessionRoutesToZellij
TestFocusSessionRoutesToZellij — Override=Zellij hits the zellij backend.
internal/spawner/spawner_test.go:369
Function
TestFocusSessionScriptMissReturnsFalse
TestFocusSessionScriptMissReturnsFalse — ps found a match but the AppleScript walked all tabs without finding the tty.
internal/terminal/terminal_test.go:216
Function
TestFocusSessionScriptMissReturnsFalse
TestFocusSessionScriptMissReturnsFalse covers the case where ps found a match but iTerm2's AppleScript walked all sessions without finding the tty (e.
internal/iterm/iterm_test.go:150
Function
TestFocusSessionSkipsNoControllingTTY
TestFocusSessionSkipsNoControllingTTY ignores claude rows whose tty is "??".
internal/terminal/terminal_test.go:254
Function
TestFocusSessionSkipsNoControllingTTY
TestFocusSessionSkipsNoControllingTTY ignores claude rows whose tty column is "??" — a backgrounded claude with no controlling terminal has nothing fo
internal/iterm/iterm_test.go:125
Function
TestFocusSessionSkipsPluginPanes
TestFocusSessionSkipsPluginPanes — plugin panes (tab-bar, status-bar) have null pane_command and must not match.
internal/zellij/zellij_test.go:252
Function
TestFocusSessionSkipsWindowsWithoutClaude
TestFocusSessionSkipsWindowsWithoutClaude — windows whose foreground_processes do not include the substring `claude` are skipped without running the r
internal/kitty/kitty_test.go:337
Function
TestFocusSessionUUIDCaseInsensitive
TestFocusSessionUUIDCaseInsensitive — UUID match is case-insensitive.
internal/zellij/zellij_test.go:213
Function
TestFocusSessionUUIDCaseInsensitive
TestFocusSessionUUIDCaseInsensitive — UUID match is case-insensitive, matching the iterm / zellij behaviour.
internal/kitty/kitty_test.go:254
Function
TestFocusSessionUUIDCaseInsensitive
TestFocusSessionUUIDCaseInsensitive verifies the UUID match is case-insensitive (matches the existing liveClaudeSessions normalization behavior).
internal/iterm/iterm_test.go:86
Function
TestHarnessForSpawn_AllPathsLandOnClaudeToday
TestHarnessForSpawn_AllPathsLandOnClaudeToday smoke-tests every branch of harnessForSpawn under the single-harness registry (claude is the only adapte
internal/app/harness_test.go:287
Function
TestHarnessForTask
TestHarnessForTask covers the column → adapter lookup. NULL and empty resolve to claude+nil error (back-compat). Unknown non-empty names resolve to ni
internal/app/harness_test.go:39
Function
TestHookSessionStartRequiresSkillInvocation
TestHookSessionStartRequiresSkillInvocation pins the invariant that the injected additionalContext explicitly instructs the session to invoke the flow
internal/app/hook_test.go:74
Function
TestHookSessionStartUnboundEmitsAmbientHint
TestHookSessionStartUnboundEmitsAmbientHint pins the contract for ad-hoc sessions (no task carries the current $CLAUDE_CODE_SESSION_ID): the hook must
internal/app/hook_test.go:16
Function
TestHookUserPromptSubmitBoundEmitsAnchor
TestHookUserPromptSubmitBoundEmitsAnchor pins the bound-session contract: when the current $CLAUDE_CODE_SESSION_ID belongs to a task, the hook injects
internal/app/hook_test.go:128
Function
TestHookUserPromptSubmitUnboundIsNoOp
TestHookUserPromptSubmitUnboundIsNoOp pins the unbound contract: with no task carrying $CLAUDE_CODE_SESSION_ID (var unset, or set but unmatched), the
internal/app/hook_test.go:182
Function
TestHumanCompact
(t *testing.T)
internal/app/stats_test.go:104
Function
TestHumanInt
(t *testing.T)
internal/app/stats_test.go:129
Function
TestIsAccessibilityDenied
TestIsAccessibilityDenied unit-tests the pattern matcher in isolation.
internal/terminal/terminal_test.go:142
Function
TestIsBackground
TestIsBackground verifies the bg-mode selector. $FLOW_TERM=bg means "spawn as a terminal-free background agent" — distinct from the terminal backends
internal/spawner/spawner_test.go:18
Function
TestLatestReleaseCacheTTLBoundary
TestLatestReleaseCacheTTLBoundary verifies the cache is treated as stale once it exceeds versionCacheTTL.
internal/app/release_test.go:82
Function
TestLatestReleaseFetchesAndCaches
TestLatestReleaseFetchesAndCaches verifies the happy path: no cache → HTTP fetch succeeds → tag returned and cache written.
internal/app/release_test.go:42
Function
TestLatestReleaseHonorsCache
TestLatestReleaseHonorsCache verifies a fresh cache short-circuits the HTTP path: even if the network is rigged to fail, a fresh cache returns the cac
internal/app/release_test.go:62
Function
TestLatestReleaseSilentOnNetworkFailure
TestLatestReleaseSilentOnNetworkFailure pins the silent-failure contract: every error path returns "" so the SessionStart hook never blocks or surface
internal/app/release_test.go:108
Function
TestLatestReleaseSilentOnNon200
TestLatestReleaseSilentOnNon200 covers rate-limited responses.
internal/app/release_test.go:120
Function
TestLaunchCmd_PreservesByteIdentity
TestLaunchCmd_PreservesByteIdentity verifies the LaunchCmd output is byte-identical to the legacy command string that the pre-refactor do.go was produ
internal/harness/claude/claude_test.go:103
Function
TestListOwnersOrdersAndFilters
(t *testing.T)
internal/flowdb/owners_test.go:46
Function
TestListProjectsFilters
(t *testing.T)
internal/flowdb/db_test.go:111
Function
TestListTagsAggregates
(t *testing.T)
internal/app/list_test.go:706
Function
TestListTagsAggregatesValues
(t *testing.T)
internal/app/list_test.go:729
Function
TestListTagsEmpty
(t *testing.T)
internal/app/list_test.go:722
Function
TestListTasksDefaultExcludesPlaybookRuns
(t *testing.T)
internal/app/list_test.go:426
Function
TestListTasksKindAll
(t *testing.T)
internal/app/list_test.go:482
Function
TestListTasksKindOverride
(t *testing.T)
internal/app/list_test.go:457
Function
TestLiveSessionsIncludesBackgroundAgents
TestLiveSessionsIncludesBackgroundAgents: the [live] detection used by `flow list` must count background agents (which don't show in the ps scan) as l
internal/app/background_test.go:331
Function
TestLiveSessions_BareClaude
TestLiveSessions_BareClaude — a bare `claude` invocation (no --session-id, no --resume) contributes no UUID. Detection requires the flag.
internal/harness/claude/claude_test.go:219
Function
TestLiveSessions_PSError
TestLiveSessions_PSError surfaces the ps failure to the caller. Callers in app/ swallow this silently — that's their policy. The harness layer just re
internal/harness/claude/claude_test.go:239
Function
TestLiveSessions_ParsesPSOutput
TestLiveSessions_ParsesPSOutput verifies the ps-grep heuristic against a representative process list. Lines without "claude" are skipped; lines with t
internal/harness/claude/claude_test.go:186
Function
TestLoadCacheCorrupt
TestLoadCacheCorrupt verifies the binding constraint that LoadCache never errors: a corrupt cache file must yield an empty, usable cache (not nil, non
internal/stats/cache_test.go:62
Function
TestLoadConstantsCorrupt
(t *testing.T)
internal/stats/model_test.go:51
Function
TestLoadConstantsDefaultsAndOverride
(t *testing.T)
internal/stats/model_test.go:30
Function
TestMain
TestMain defaults claude.BGCommandRunner to an empty background-agent registry for the whole app test package. Without this, every show / list / do ov
internal/app/background_test.go:22
Function
TestMaybeAutoUpgradeIdempotent
(t *testing.T)
internal/app/version_test.go:74
Function
TestMaybeAutoUpgradeSkipsForDev
(t *testing.T)
internal/app/version_test.go:95
Function
TestMaybeAutoUpgradeSkipsWhenSkillMissing
(t *testing.T)
internal/app/version_test.go:116
Function
TestMaybeAutoUpgradeUpgradesOnMismatch
(t *testing.T)
internal/app/version_test.go:46
Function
TestMigrationAddsAssignee
(t *testing.T)
internal/flowdb/db_test.go:194
Function
TestMigrationAddsAutoRunColumns
TestMigrationAddsAutoRunColumns verifies the autonomous-run bookkeeping columns land on the tasks table and round-trip through ScanTask.
internal/flowdb/db_test.go:223
Function
TestMigrationAddsDueDateAndStatusChangedAt
(t *testing.T)
internal/flowdb/db_test.go:181
Function
TestMigrationAddsTasksKindAndPlaybookSlug
(t *testing.T)
internal/flowdb/db_test.go:380
Function
TestMigrationDeduplicatesSessionIDs
TestMigrationDeduplicatesSessionIDs simulates Anshul's bug: a DB where two non-archived tasks share the same session_id (could happen via the now-remo
internal/flowdb/db_test.go:587
← previous
next →
701–800 of 972, ranked by callers