Skip to content

Commit 300bc5f

Browse files
committed
fix helper program
Signed-off-by: Grant Linville <[email protected]>
1 parent 65334ac commit 300bc5f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/credentials/toolstore_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ func (m *mockProgram) Output() ([]byte, error) {
5555
return nil, nil
5656
}
5757

58-
func NewMockProgram(t *testing.T, mode string) client.ProgramFunc {
58+
func newMockProgram(t *testing.T, mode string) client.ProgramFunc {
59+
t.Helper()
5960
return func(args ...string) client.Program {
6061
p := &mockProgram{
6162
mode: mode,
@@ -68,8 +69,8 @@ func NewMockProgram(t *testing.T, mode string) client.ProgramFunc {
6869
}
6970

7071
func TestGetAll(t *testing.T) {
71-
dbProgram := NewMockProgram(t, "db")
72-
normalProgram := NewMockProgram(t, "normal")
72+
dbProgram := newMockProgram(t, "db")
73+
normalProgram := newMockProgram(t, "normal")
7374

7475
tests := []struct {
7576
name string

0 commit comments

Comments
 (0)