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

Scala-Robotics-Simulator / PPS-22-srs / #93

25 Jul 2025 04:26PM UTC coverage: 65.789% (-2.1%) from 67.873%
#93

push

github

GiuliaNardicchia
refactor: update Controller, Model, View modules to support generic state management and app simulationLoop function

0 of 24 new or added lines in 6 files covered. (0.0%)

7 existing lines in 5 files now uncovered.

150 of 228 relevant lines covered (65.79%)

8.86 hits per line

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

0.0
/src/main/scala/io/github/srs/model/ModelModule.scala
1
package io.github.srs.model
2

3
object ModelModule:
4

×
5
  trait State
6

×
7
  trait Model[S <: State]:
8
    def update(s: S): Option[S]
9

10
  trait Provider[S <: State]:
11
    val model: Model[S]
12

13
  trait Component[S <: State]:
UNCOV
14

×
15
    object Model:
NEW
16
      def apply(updateFunc: S => Option[S]): Model[S] = new ModelImpl(updateFunc)
×
17

×
18
      private class ModelImpl(updateFunc: S => Option[S]) extends Model[S]:
NEW
19
        override def update(s: S): Option[S] = updateFunc(s)
×
UNCOV
20

×
21
  trait Interface[S <: State] extends Provider[S] with Component[S]
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

© 2026 Coveralls, Inc