MCPcopy Create free account
hub / github.com/Facets-cloud/flow / TestCmdWorkdirUnknownSubcommand

Function TestCmdWorkdirUnknownSubcommand

internal/app/workdir_test.go:221–229  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

219}
220
221func TestCmdWorkdirUnknownSubcommand(t *testing.T) {
222 setupArchiveTestEnv(t)
223 if rc := cmdWorkdir([]string{}); rc != 2 {
224 t.Errorf("empty args rc=%d, want 2", rc)
225 }
226 if rc := cmdWorkdir([]string{"wat"}); rc != 2 {
227 t.Errorf("bad subcommand rc=%d, want 2", rc)
228 }
229}
230
231func TestDetectGitRemoteMissing(t *testing.T) {
232 dir := t.TempDir()

Callers

nothing calls this directly

Calls 2

setupArchiveTestEnvFunction · 0.85
cmdWorkdirFunction · 0.85

Tested by

no test coverage detected