(t *testing.T)
| 444 | } |
| 445 | |
| 446 | func TestConfigure_Offline_ON(t *testing.T) { |
| 447 | celer := newInitializedCeler(t) |
| 448 | cmd := &configureCmd{} |
| 449 | |
| 450 | if _, err := runCommand(t, cmd.Command(celer), "--offline=true"); err != nil { |
| 451 | t.Fatal(err) |
| 452 | } |
| 453 | if !celer.Offline() { |
| 454 | t.Fatal("offline should be `true`") |
| 455 | } |
| 456 | |
| 457 | celer2 := configs.NewCeler() |
| 458 | if err := celer2.Init(); err != nil { |
| 459 | t.Fatal(err) |
| 460 | } |
| 461 | if !celer2.Offline() { |
| 462 | t.Fatal("offline should be `true`") |
| 463 | } |
| 464 | } |
| 465 | |
| 466 | func TestConfigure_Offline_OFF(t *testing.T) { |
| 467 | celer := newInitializedCeler(t) |
nothing calls this directly
no test coverage detected