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

Function TestSetCacheMaxSize

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

Source from the content-addressed store, hash-verified

87}
88
89func TestSetCacheMaxSize(t *testing.T) {
90 err := SetCacheMaxSize(0)
91 checkFatal(t, err)
92
93 err = SetCacheMaxSize(1024 * 1024)
94 checkFatal(t, err)
95
96 // revert to default 256MB
97 err = SetCacheMaxSize(256 * 1024 * 1024)
98 checkFatal(t, err)
99}

Callers

nothing calls this directly

Calls 2

SetCacheMaxSizeFunction · 0.85
checkFatalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…