(t *testing.T, r *Ring[T], ops ...ringOp[T])
| 83 | } |
| 84 | |
| 85 | func 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 | |
| 96 | func testRingOp[T comparable](t *testing.T, r *Ring[T], op ringOp[T]) { |
| 97 | var zero T |
no test coverage detected
searching dependent graphs…