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
TestSkillUninstallRemovesDir
(t *testing.T)
internal/app/skill_test.go:136
Function
TestSkillUnknownSubcommand
(t *testing.T)
internal/app/skill_test.go:283
Function
TestSkillUpdateIsForceInstall
(t *testing.T)
internal/app/skill_test.go:125
Function
TestSkillUsesAskUserQuestionConsistently
(t *testing.T)
internal/app/skill_test.go:386
Function
TestSlugify
(t *testing.T)
internal/app/slug_test.go:5
Function
TestSlugifyEmpty
(t *testing.T)
internal/app/slug_test.go:50
Function
TestSlugifyOnlyPunctuation
(t *testing.T)
internal/app/slug_test.go:56
Function
TestSlugifyTruncatesLongNames
(t *testing.T)
internal/app/slug_test.go:27
Function
TestSparkline
(t *testing.T)
internal/app/stats_test.go:149
Function
TestSparklineAllZero
(t *testing.T)
internal/app/stats_test.go:163
Function
TestSparklineEmpty
(t *testing.T)
internal/app/stats_test.go:156
Function
TestSpawnBackgroundCapturesSessionID
(t *testing.T)
internal/harness/claude/background_test.go:135
Function
TestSpawnBackgroundInjectAppended
(t *testing.T)
internal/harness/claude/background_test.go:193
Function
TestSpawnBackgroundRunsInWorkDir
SpawnBackground must run claude in the task's work_dir (a bg session begins there and keys its transcript/CLAUDE.md to it), not flow's cwd.
internal/harness/claude/background_test.go:171
Function
TestSpawnBackgroundShortIDNotInRegistry
If the captured short id isn't in the agents registry, capture failed — surface an error rather than recording a phantom id.
internal/harness/claude/background_test.go:207
Function
TestSpawnBackgroundSkipPermissions
(t *testing.T)
internal/harness/claude/background_test.go:182
Function
TestSpawnTabBasicNoEnv
TestSpawnTabBasicNoEnv verifies the two-call argv sequence with no env vars: 1) zellij action new-tab --name <title> --cwd <cwd> 2) zellij action writ
internal/zellij/zellij_test.go:13
Function
TestSpawnTabBasicNoEnv
TestSpawnTabBasicNoEnv verifies the two-call argv sequence with no env vars: 1. RunnerOutput: kitty @ launch --type=tab --tab-title=<t> --cwd=<cwd> (
internal/kitty/kitty_test.go:14
Function
TestSpawnTabBasicNoEnv
TestSpawnTabBasicNoEnv — happy path with no env vars. WriteScript is called once with the expected body shape, OpenURL with the correct URL-encoded wa
internal/warp/warp_test.go:67
Function
TestSpawnTabEnvVarsSorted
TestSpawnTabEnvVarsSorted verifies env vars are emitted alphabetically, each value shell-quoted, all space-separated, before the command. This matches
internal/zellij/zellij_test.go:41
Function
TestSpawnTabEnvVarsSorted
TestSpawnTabEnvVarsSorted verifies env vars are emitted alphabetically, each value shell-quoted, all space-separated, before the command. This matches
internal/kitty/kitty_test.go:46
Function
TestSpawnTabEnvVarsSorted
TestSpawnTabEnvVarsSorted — env vars sorted alphabetically and shell-quoted into the `exec env …` line. Exact parity with the zellij/iterm contract.
internal/warp/warp_test.go:111
Function
TestSpawnTabFlattensEmbeddedNewlines
TestSpawnTabFlattensEmbeddedNewlines verifies that any `\n` inside `command` is replaced with a space before write-chars. Without this, zellij types e
internal/zellij/zellij_test.go:101
Function
TestSpawnTabFlattensEmbeddedNewlines
TestSpawnTabFlattensEmbeddedNewlines — embedded `\n` in command must be replaced with a space before send-text, same reasoning as zellij (PTY would in
internal/kitty/kitty_test.go:128
Function
TestSpawnTabLaunchEmptyOutput
TestSpawnTabLaunchEmptyOutput — if kitty @ launch returns empty stdout, SpawnTab must fail rather than send-text to id:"" (which kitty would interpret
internal/kitty/kitty_test.go:104
Function
TestSpawnTabLaunchErrorShortCircuits
TestSpawnTabLaunchErrorShortCircuits — an error from `kitty @ launch` must be wrapped (with the remote-control hint) and send-text must NOT be attempt
internal/kitty/kitty_test.go:77
Function
TestSpawnTabNoEnvVars
TestSpawnTabNoEnvVars covers the env-prefix branch when envVars is nil — the line should still cd and run the command, just with no VAR=value assignme
internal/terminal/terminal_test.go:57
Function
TestSpawnTabNoEnvVars
TestSpawnTabNoEnvVars covers the env-prefix branch when envVars is nil — the line should still cd and run the command, just with no VAR=value assignme
internal/ghostty/ghostty_test.go:59
Function
TestSpawnTabNoTitleOmitsOSC2
TestSpawnTabNoTitleOmitsOSC2 — empty title skips the OSC 2 line entirely (no stray printf in the script).
internal/warp/warp_test.go:148
Function
TestSpawnTabPassesThroughUnknownErrors
TestSpawnTabPassesThroughUnknownErrors verifies that non-Accessibility errors from osascript are returned unchanged — only the specific permission-den
internal/terminal/terminal_test.go:123
Function
TestSpawnTabPropagatesNewTabError
TestSpawnTabPropagatesNewTabError verifies an error from the new-tab call is returned and write-chars is NOT attempted.
internal/zellij/zellij_test.go:70
Function
TestSpawnTabPropagatesOpenURLError
TestSpawnTabPropagatesOpenURLError — when OpenURL fails, Runner is never invoked and removeScript cleans up the orphaned temp file.
internal/warp/warp_test.go:274
Function
TestSpawnTabPropagatesRunnerError
TestSpawnTabPropagatesRunnerError — when Runner fails, removeScript cleans up the orphaned temp file and the error is returned unwrapped (for non-Acce
internal/warp/warp_test.go:293
Function
TestSpawnTabPropagatesWriteScriptError
TestSpawnTabPropagatesWriteScriptError — when WriteScript fails, OpenURL and Runner are never invoked.
internal/warp/warp_test.go:253
Function
TestSpawnTabRoutesToGhostty
TestSpawnTabRoutesToGhostty asserts the ghostty Runner is the one called when Detect() resolves to BackendGhostty.
internal/spawner/spawner_test.go:315
Function
TestSpawnTabRoutesToITerm
TestSpawnTabRoutesToITerm asserts the iterm Runner is the one called when Detect() resolves to BackendITerm.
internal/spawner/spawner_test.go:225
Function
TestSpawnTabRoutesToKitty
TestSpawnTabRoutesToKitty asserts the kitty Runner+RunnerOutput pair is invoked when Detect() resolves to BackendKitty.
internal/spawner/spawner_test.go:279
Function
TestSpawnTabRoutesToTerminal
TestSpawnTabRoutesToTerminal asserts the terminal Runner is the one called when Detect() resolves to BackendTerminal.
internal/spawner/spawner_test.go:243
Function
TestSpawnTabRoutesToWarp
TestSpawnTabRoutesToWarp asserts the warp Runner is the one called when Detect() resolves to BackendWarp.
internal/spawner/spawner_test.go:297
Function
TestSpawnTabRoutesToZellij
TestSpawnTabRoutesToZellij asserts the zellij Runner is the one called when Detect() resolves to BackendZellij.
internal/spawner/spawner_test.go:261
Function
TestSpawnTabScriptShape
TestSpawnTabScriptShape verifies the AppleScript emitted to osascript targets Terminal.app, embeds env-var assignments before the command, uses cmd-T
internal/terminal/terminal_test.go:14
Function
TestSpawnTabScriptShape
TestSpawnTabScriptShape verifies the AppleScript emitted to osascript targets Ghostty, embeds env-var assignments before the command, sets the tab tit
internal/ghostty/ghostty_test.go:13
Function
TestSpawnTabSetsTitleViaOSC2
TestSpawnTabSetsTitleViaOSC2 — when title is non-empty, the OSC 2 escape sequence is emitted as a printf line before cd.
internal/warp/warp_test.go:132
Function
TestSpawnTabWrapsAccessibilityError
TestSpawnTabWrapsAccessibilityError verifies that when osascript fails with a macOS Accessibility-denied error pattern, SpawnTab returns a wrapped err
internal/terminal/terminal_test.go:84
Function
TestSpawnTabWrapsAccessibilityError
TestSpawnTabWrapsAccessibilityError — when Runner returns one of the documented Accessibility-denied error patterns, the returned error string names "
internal/warp/warp_test.go:310
Function
TestStatsE2E
TestStatsE2E exercises `flow stats` against a real (but temp) flow root: empty stats succeed, --card writes a file, and a garbage --since value return
internal/app/e2e_test.go:16
Function
TestTable_AlignedColumns
TestTable_AlignedColumns verifies that the Table renderer pads columns to the widest visible cell across all rows.
internal/listfmt/listfmt_test.go:119
Function
TestTable_AlignedWithANSI
TestTable_AlignedWithANSI verifies that colored cells align against uncolored cells of the same visible width — the bug that motivated dropping text/t
internal/listfmt/listfmt_test.go:154
Function
TestTargetedOwnerMutationsPreserveTickBookkeeping
The targeted owner-mutation helpers must touch ONLY their own columns — never clobber in-flight tick bookkeeping (the dispatch/finish race fix).
internal/flowdb/owners_test.go:160
Function
TestTaskCRUD
(t *testing.T)
internal/flowdb/db_test.go:137
Function
TestTaskWithKindAndPlaybookSlug
(t *testing.T)
internal/flowdb/db_test.go:456
Function
TestTickPromptsSelfPaceNextWake
(t *testing.T)
internal/app/owner_tick_test.go:789
Function
TestTranscriptCmdNoSession
Parser-level tests live in internal/harness/claude/transcript_test.go (the claude jsonl format is owned by the harness impl). The tests here exercise
internal/app/transcript_test.go:19
Function
TestTranscriptCmdWithSession
(t *testing.T)
internal/app/transcript_test.go:37
Function
TestTranscriptRetrospectiveBindFullOutput
TestTranscriptRetrospectiveBindFullOutput pins the bug this task fixes: a retrospective `flow do --here` bind stamps session_started at BIND time, whi
internal/app/transcript_test.go:83
Function
TestTruncate
(t *testing.T)
internal/listfmt/listfmt_test.go:40
Function
TestUpdateOwnerPersistsMutableFields
(t *testing.T)
internal/flowdb/owners_test.go:323
Function
TestValidateSessionID
(t *testing.T)
internal/harness/claude/claude_test.go:40
Function
TestVisibleWidth
(t *testing.T)
internal/listfmt/listfmt_test.go:95
Function
TestWorkdirUpsert
(t *testing.T)
internal/flowdb/db_test.go:160
Function
TestWriteCard
(t *testing.T)
internal/app/card_test.go:101
Function
TestWriteCardPNG
TestWriteCardPNG verifies that writeCardPNG writes a valid PNG file with sane dimensions that can be re-decoded.
internal/app/card_png_test.go:102
Method
UninstallSessionStartHook
(command string)
internal/harness/claude/claude.go:334
Method
UninstallSkill
UninstallSkill removes the skill directory entirely (SKILL.md plus VERSION sidecar plus anything else dropped alongside).
internal/harness/claude/claude.go:307
Method
UninstallUserPromptSubmitHook
(command string)
internal/harness/claude/claude.go:343
Method
ValidateSession
(workDir, sessionID string)
internal/harness/claude/claude.go:99
Method
ValidateSessionID
(s string)
internal/harness/claude/claude.go:77
Function
apply
(e)
site/script.js:5
Function
main
()
main.go:14
Function
runBGCommand
(workDir string, args []string)
internal/harness/claude/background.go:30
Function
runPS
()
internal/harness/claude/claude.go:239
Function
runSkipPermissions
runSkipPermissions is the default SkipPermissionsRunner — execs `claude -p <prompt> --dangerously-skip-permissions`. Stdout/stderr are discarded becau
internal/harness/claude/claude.go:183
← previous
901–972 of 972, ranked by callers