MCPcopy Create free account
hub / github.com/auth0/auth0-cli / TestOutputFormatForTracking

Function TestOutputFormatForTracking

internal/cli/root_test.go:110–124  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

108}
109
110func TestOutputFormatForTracking(t *testing.T) {
111 t.Run("returns table for nil renderer", func(t *testing.T) {
112 assert.Equal(t, "table", outputFormatForTracking(nil))
113 })
114
115 t.Run("returns table for default renderer format", func(t *testing.T) {
116 renderer := &display.Renderer{}
117 assert.Equal(t, "table", outputFormatForTracking(renderer))
118 })
119
120 t.Run("returns configured renderer format", func(t *testing.T) {
121 renderer := &display.Renderer{Format: display.OutputFormatJSONCompact}
122 assert.Equal(t, "json-compact", outputFormatForTracking(renderer))
123 })
124}
125
126func TestIsCIEnvironment(t *testing.T) {
127 t.Run("returns false when no CI vars are set", func(t *testing.T) {

Callers

nothing calls this directly

Calls 1

outputFormatForTrackingFunction · 0.85

Tested by

no test coverage detected