MCPcopy
hub / github.com/expr-lang/expr / testRing

Function testRing

internal/ring/ring_test.go:85–94  ·  view source on GitHub ↗
(t *testing.T, r *Ring[T], ops ...ringOp[T])

Source from the content-addressed store, hash-verified

83}
84
85func testRing[T comparable](t *testing.T, r *Ring[T], ops ...ringOp[T]) {
86 for i, op := range ops {
87 testOK := t.Run(fmt.Sprintf("opIndex=%v", i), func(t *testing.T) {
88 testRingOp(t, r, op)
89 })
90 if !testOK {
91 return
92 }
93 }
94}
95
96func testRingOp[T comparable](t *testing.T, r *Ring[T], op ringOp[T]) {
97 var zero T

Callers 1

TestRingFunction · 0.85

Calls 3

testRingOpFunction · 0.85
RunMethod · 0.80
SprintfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…