(t *testing.T)
| 59 | } |
| 60 | |
| 61 | func TestUnuseProfileResolveCurrent(t *testing.T) { |
| 62 | is := is.New(t) |
| 63 | |
| 64 | vcs := &vcsMock{ |
| 65 | GetFunc: func(key string) (string, error) { |
| 66 | is.Equal(key, currentProfileKey) |
| 67 | return "home", nil |
| 68 | }, |
| 69 | } |
| 70 | |
| 71 | profile, err := unuseProfileResolve(nil, vcs) |
| 72 | |
| 73 | is.NoErr(err) |
| 74 | is.Equal(profile, "home") |
| 75 | } |
| 76 | |
| 77 | func TestUnuseProfileResolveNoneApplied(t *testing.T) { |
| 78 | is := is.New(t) |
nothing calls this directly
no test coverage detected