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

Function TestConfigure_Project_Empty

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

Source from the content-addressed store, hash-verified

334}
335
336func TestConfigure_Project_Empty(t *testing.T) {
337 celer := newInitializedCeler(t)
338 cmd := &configureCmd{}
339
340 // `--project=` (empty value) reaches RunE with the flag marked changed,
341 // so the project setter is invoked with "" and must reject it.
342 if _, err := runCommand(t, cmd.Command(celer), "--project="); err == nil {
343 t.Fatal("it should be failed")
344 }
345}
346
347func TestConfigure_BuildType_Release(t *testing.T) {
348 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