(t *testing.T)
| 75 | } |
| 76 | |
| 77 | func TestUnuseProfileResolveNoneApplied(t *testing.T) { |
| 78 | is := is.New(t) |
| 79 | |
| 80 | vcs := &vcsMock{ |
| 81 | GetFunc: func(_ string) (string, error) { |
| 82 | return "", fmt.Errorf("boom") |
| 83 | }, |
| 84 | } |
| 85 | |
| 86 | _, err := unuseProfileResolve(nil, vcs) |
| 87 | |
| 88 | is.True(err != nil) |
| 89 | is.Equal(err.Error(), "There is no profile applied to current git repository") |
| 90 | } |
nothing calls this directly
no test coverage detected