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

Function TestConfigure_Jobs

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

Source from the content-addressed store, hash-verified

411}
412
413func TestConfigure_Jobs(t *testing.T) {
414 celer := newInitializedCeler(t)
415 cmd := &configureCmd{}
416
417 if _, err := runCommand(t, cmd.Command(celer), "--jobs=4"); err != nil {
418 t.Fatal(err)
419 }
420 if celer.Jobs() != 4 {
421 t.Fatalf("jobs should be `%d`", 4)
422 }
423
424 celer2 := configs.NewCeler()
425 if err := celer2.Init(); err != nil {
426 t.Fatal(err)
427 }
428 if celer2.Jobs() != 4 {
429 t.Fatalf("jobs should be `%d`", 4)
430 }
431}
432
433func TestConfigure_Jobs_Invalid(t *testing.T) {
434 celer := newInitializedCeler(t)

Callers

nothing calls this directly

Calls 7

CommandMethod · 0.95
InitMethod · 0.95
JobsMethod · 0.95
NewCelerFunction · 0.92
newInitializedCelerFunction · 0.85
runCommandFunction · 0.85
JobsMethod · 0.65

Tested by

no test coverage detected