(t *testing.T)
| 101 | } |
| 102 | |
| 103 | func TestHelperCategory(t *testing.T) { |
| 104 | tests := []struct { |
| 105 | name string |
| 106 | helper gitcredentials.Helper |
| 107 | want string |
| 108 | }{ |
| 109 | {name: "ours", helper: gitcredentials.Helper{Cmd: "!/path/to/gh auth git-credential"}, want: "ours"}, |
| 110 | {name: "other", helper: gitcredentials.Helper{Cmd: "osxkeychain"}, want: "other"}, |
| 111 | {name: "none", helper: gitcredentials.Helper{}, want: "none"}, |
| 112 | } |
| 113 | for _, tt := range tests { |
| 114 | t.Run(tt.name, func(t *testing.T) { |
| 115 | assert.Equal(t, tt.want, helperCategory(tt.helper)) |
| 116 | }) |
| 117 | } |
| 118 | } |
nothing calls this directly
no test coverage detected