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

Function TestDefaultLoggingFormat

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

Source from the content-addressed store, hash-verified

456}
457
458func TestDefaultLoggingFormat(t *testing.T) {
459 _, opts, _, err := invokeCommand([]string{})
460 if err != nil {
461 t.Fatalf("unexpected error invoking command: %s", err)
462 }
463 got := opts.Cfg.LoggingFormat.String()
464 want := "standard"
465 if got != want {
466 t.Fatalf("unexpected default logging format flag: got %v, want %v", got, want)
467 }
468}
469
470func TestDefaultLogLevel(t *testing.T) {
471 _, opts, _, err := invokeCommand([]string{})

Callers

nothing calls this directly

Calls 2

invokeCommandFunction · 0.70
StringMethod · 0.65

Tested by

no test coverage detected