MCPcopy Create free account
hub / github.com/celer-pkg/celer / TestConfigure_Project_NotExist

Function TestConfigure_Project_NotExist

cmds/cmd_configure_test.go:323–334  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

321}
322
323func TestConfigure_Project_NotExist(t *testing.T) {
324 celer := newInitializedCeler(t)
325 cmd := &configureCmd{}
326
327 stderr, err := runCommand(t, cmd.Command(celer), "--project=xxxx")
328 if err == nil {
329 t.Fatal("it should be failed")
330 }
331 if !strings.Contains(stderr, "project not exist") {
332 t.Fatalf("stderr should report missing project, got:\n%s", stderr)
333 }
334}
335
336func TestConfigure_Project_Empty(t *testing.T) {
337 celer := newInitializedCeler(t)

Callers

nothing calls this directly

Calls 3

CommandMethod · 0.95
newInitializedCelerFunction · 0.85
runCommandFunction · 0.85

Tested by

no test coverage detected