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

Function TestDefaultPath

internal/config/config_test.go:15–24  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13)
14
15func TestDefaultPath(t *testing.T) {
16 homeDir, err := os.UserHomeDir()
17 require.NoError(t, err)
18
19 expectedPath := path.Join(homeDir, ".config", "auth0", "config.json")
20
21 actualPath := defaultPath()
22
23 assert.Equal(t, expectedPath, actualPath)
24}
25
26func TestConfig_LoadFromDisk(t *testing.T) {
27 t.Run("it fails to load a non existent config file", func(t *testing.T) {

Callers

nothing calls this directly

Calls 1

defaultPathFunction · 0.85

Tested by

no test coverage detected