Skip to content

Commit 9cd083f

Browse files
committed
without random test cases
1 parent 4d21026 commit 9cd083f

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

lib/help_test.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package lib
22

3-
import "time"
4-
53
// sample payloads of different sizes and compressibility
64
var (
75
// Small payload – typical short event or config object
@@ -24,15 +22,6 @@ var (
2422
`{"level":"info","ts":"2025-08-09T10:00:00.000Z","msg":"request completed","path":"/api/v1/users","method":"GET","duration_ms":12} `,
2523
1000,
2624
))
27-
28-
// Large random-like payload – simulates encrypted data or already-compressed content (worst-case ratio)
29-
largeRandomPayload = func() []byte {
30-
b := make([]byte, 500_000)
31-
for i := range b {
32-
b[i] = byte(time.Now().UnixNano() >> (i % 8))
33-
}
34-
return b
35-
}()
3625
)
3726

3827
// helper to generate repeated compressible text

0 commit comments

Comments
 (0)