MCPcopy Create free account
hub / github.com/libgit2/git2go / TestMmapSizes

Function TestMmapSizes

settings_test.go:32–50  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

30}
31
32func TestMmapSizes(t *testing.T) {
33 size := 42 * 1024
34
35 err := SetMwindowSize(size)
36 checkFatal(t, err)
37
38 actual, err := MwindowSize()
39 if size != actual {
40 t.Fatal("Sizes don't match")
41 }
42
43 err = SetMwindowMappedLimit(size)
44 checkFatal(t, err)
45
46 actual, err = MwindowMappedLimit()
47 if size != actual {
48 t.Fatal("Sizes don't match")
49 }
50}
51
52func TestEnableCaching(t *testing.T) {
53 err := EnableCaching(false)

Callers

nothing calls this directly

Calls 5

SetMwindowSizeFunction · 0.85
checkFatalFunction · 0.85
MwindowSizeFunction · 0.85
SetMwindowMappedLimitFunction · 0.85
MwindowMappedLimitFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…