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

Function TestNewPartialRanges3

internal/caches/partial_ranges_test.go:66–76  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

64}
65
66func TestNewPartialRanges3(t *testing.T) {
67 // high -> low
68 var r = caches.NewPartialRanges(0)
69 r.Add(301, 302)
70 r.Add(303, 304)
71 r.Add(200, 300)
72 r.Add(250, 400)
73
74 var rs = r.Ranges
75 logs.PrintAsJSON(rs, t)
76}
77
78func TestNewPartialRanges4(t *testing.T) {
79 // nearby

Callers

nothing calls this directly

Calls 2

NewPartialRangesFunction · 0.92
AddMethod · 0.65

Tested by

no test coverage detected