MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / TestGenerateCompressLevel

Function TestGenerateCompressLevel

internal/compressions/utils_test.go:11–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestGenerateCompressLevel(t *testing.T) {
12 var a = assert.NewAssertion(t)
13
14 t.Log(compressions.GenerateCompressLevel(0, 10))
15 t.Log(compressions.GenerateCompressLevel(1, 10))
16 t.Log(compressions.GenerateCompressLevel(1, 4))
17
18 {
19 var level = compressions.GenerateCompressLevel(1, 2)
20 t.Log(level)
21 a.IsTrue(level >= 1 && level <= 2)
22 }
23}
24
25func TestCalculatePoolSize(t *testing.T) {
26 t.Log(compressions.CalculatePoolSize())

Callers

nothing calls this directly

Calls 2

GenerateCompressLevelFunction · 0.92
LogMethod · 0.80

Tested by

no test coverage detected