(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func TestCheckCloneFileSupported(t *testing.T) { |
| 15 | as := assert.New(t) |
| 16 | |
| 17 | // Do |
| 18 | ok, err := CheckCloneFileSupported(os.TempDir()) |
| 19 | |
| 20 | // Verify |
| 21 | t.Logf("ok = %v, err = %v", ok, err) // Just logging for 1st element |
| 22 | |
| 23 | if !checkCloneFileSupported() { |
| 24 | as.EqualError(err, "unsupported OS version. >= 10.12.x Sierra required") |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | func TestCloneFile(t *testing.T) { |
| 29 | as := assert.New(t) |
nothing calls this directly
no test coverage detected