MCPcopy
hub / github.com/googleapis/mcp-toolbox / TestDefaultLogLevel

Function TestDefaultLogLevel

cmd/root_test.go:470–480  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

468}
469
470func TestDefaultLogLevel(t *testing.T) {
471 _, opts, _, err := invokeCommand([]string{})
472 if err != nil {
473 t.Fatalf("unexpected error invoking command: %s", err)
474 }
475 got := opts.Cfg.LogLevel.String()
476 want := "info"
477 if got != want {
478 t.Fatalf("unexpected default log level flag: got %v, want %v", got, want)
479 }
480}
481
482// normalizeFilepaths is a helper function to allow same filepath formats for Mac and Windows.
483// this prevents needing multiple "want" cases for TestResolveWatcherInputs

Callers

nothing calls this directly

Calls 2

invokeCommandFunction · 0.70
StringMethod · 0.65

Tested by

no test coverage detected