MCPcopy
hub / github.com/git-lfs/git-lfs / TestCheckCloneFileSupported

Function TestCheckCloneFileSupported

tools/util_darwin_test.go:14–26  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12)
13
14func 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
28func TestCloneFile(t *testing.T) {
29 as := assert.New(t)

Callers

nothing calls this directly

Calls 4

checkCloneFileSupportedFunction · 0.85
LogfMethod · 0.80
CheckCloneFileSupportedFunction · 0.70
TempDirMethod · 0.45

Tested by

no test coverage detected