(t *testing.T)
| 411 | } |
| 412 | |
| 413 | func 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 | |
| 433 | func TestConfigure_Jobs_Invalid(t *testing.T) { |
| 434 | celer := newInitializedCeler(t) |
nothing calls this directly
no test coverage detected