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

Function TestCachedMemory

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

Source from the content-addressed store, hash-verified

74}
75
76func TestCachedMemory(t *testing.T) {
77 current, allowed, err := CachedMemory()
78 checkFatal(t, err)
79
80 if current < 0 {
81 t.Fatal("current < 0")
82 }
83
84 if allowed < 0 {
85 t.Fatal("allowed < 0")
86 }
87}
88
89func TestSetCacheMaxSize(t *testing.T) {
90 err := SetCacheMaxSize(0)

Callers

nothing calls this directly

Calls 2

CachedMemoryFunction · 0.85
checkFatalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…