(t *testing.T)
| 39 | } |
| 40 | |
| 41 | func TestAuthFilePathUsesEnv(t *testing.T) { |
| 42 | authFile := filepath.Join(t.TempDir(), "custom-auth.json") |
| 43 | t.Setenv(envAuthFile, authFile) |
| 44 | |
| 45 | path, err := authFilePath() |
| 46 | if err != nil { |
| 47 | t.Fatal(err) |
| 48 | } |
| 49 | if path != authFile { |
| 50 | t.Fatalf("expected auth file %q, got %q", authFile, path) |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | func TestReadTokensReadsTokenMap(t *testing.T) { |
| 55 | authFile := filepath.Join(t.TempDir(), "auth.json") |
nothing calls this directly
no test coverage detected