(t *testing.T)
| 9 | ) |
| 10 | |
| 11 | func 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 | |
| 25 | func TestCalculatePoolSize(t *testing.T) { |
| 26 | t.Log(compressions.CalculatePoolSize()) |
nothing calls this directly
no test coverage detected