• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Martomate / TriPaint / 9275511596

28 May 2024 07:51PM UTC coverage: 29.682% (+1.8%) from 27.877%
9275511596

push

github

Martomate
Updated to Scala 3.4 and MUnit 1.0

2 of 11 new or added lines in 9 files covered. (18.18%)

430 existing lines in 38 files now uncovered.

401 of 1351 relevant lines covered (29.68%)

0.3 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.71
/src/main/scala/tripaint/model/coords/TriangleCoords.scala
1
package tripaint.model.coords
2

3
case class TriangleCoords(x: Int, y: Int) {
4
  require(x >= 0, s"x >= 0, x = $x")
1✔
5
  require(x <= 2 * y, s"x <= 2 * y, x = $x, y = $y")
1✔
UNCOV
6
  require(y >= 0, s"y >= 0, y = $x")
×
7
  require(y < 0x1000, s"y >= 0x1000, y = $y. This limitation is due to 'toInt' representation")
1✔
8

9
  def toInt: Int = x << 12 | y
1✔
10
}
11

12
object TriangleCoords {
13
  def fromInt(repr: Int): TriangleCoords =
1✔
14
    if (repr != -1) TriangleCoords(repr >>> 12, repr & 0xfff) else null
1✔
15
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc