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

Function TestConfigure_Offline_OFF

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

Source from the content-addressed store, hash-verified

464}
465
466func TestConfigure_Offline_OFF(t *testing.T) {
467 celer := newInitializedCeler(t)
468 cmd := &configureCmd{}
469
470 if _, err := runCommand(t, cmd.Command(celer), "--offline=false"); err != nil {
471 t.Fatal(err)
472 }
473 if celer.Offline() {
474 t.Fatal("offline should be `false`")
475 }
476
477 celer2 := configs.NewCeler()
478 if err := celer2.Init(); err != nil {
479 t.Fatal(err)
480 }
481 if celer2.Offline() {
482 t.Fatal("offline should be `false`")
483 }
484}
485
486func TestConfigure_Verbose_ON(t *testing.T) {
487 celer := newInitializedCeler(t)

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected