(t *testing.T)
| 74 | } |
| 75 | |
| 76 | func 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 | |
| 89 | func TestSetCacheMaxSize(t *testing.T) { |
| 90 | err := SetCacheMaxSize(0) |
nothing calls this directly
no test coverage detected
searching dependent graphs…