Showing 2 of 2 files from the diff.

@@ -217,10 +217,6 @@
Loading
217 217
    new Monoid[Order[A]] with Band[Order[A]] {
218 218
      val empty: Order[A] = allEqual[A]
219 219
      def combine(x: Order[A], y: Order[A]): Order[A] = Order.whenEqual(x, y)
220 -
      override def combineN(a: Order[A], n: Int): Order[A] =
221 -
        if (n < 0) throw new IllegalArgumentException("Repeated combining for monoids must have n >= 0")
222 -
        else if (n == 0) empty
223 -
        else a // combine(a, a) == a for a band
224 220
    }
225 221
226 222
  def fromOrdering[A](implicit ev: Ordering[A]): Order[A] =

@@ -7,9 +7,8 @@
Loading
7 7
 * (i.e. combine) is also idempotent.
8 8
 */
9 9
trait Band[@sp(Int, Long, Float, Double) A] extends Any with Semigroup[A] {
10 -
  override def combineN(a: A, n: Int): A =
11 -
    if (n <= 0) throw new IllegalArgumentException("Repeated combining for semigroups must have n > 0")
12 -
    else a // combine(a, a) == a
10 +
  override protected[this] def repeatedCombineN(a: A, n: Int): A =
11 +
    a // combine(a, a) == a
13 12
}
14 13
15 14
object Band extends SemigroupFunctions[Band] {
Files Coverage
alleycats-core/src/main/scala/alleycats 34.64%
core/src/main 90.21%
free/src/main/scala/cats/free 92.81%
kernel-laws/shared/src/main/scala/cats/kernel/laws 95.80%
kernel/src/main 89.92%
laws/src/main/scala/cats/laws 94.92%
testkit/src/main/scala/cats/tests 100.00%
...leycats-laws/src/main/scala/alleycats/laws/discipline/FlatMapRecTests.scala 100.00%
Project Totals (391 files) 90.24%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading