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

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

11 Jul 2025 07:04PM UTC coverage: 0.0%. Remained the same
#18

push

github

srs-mate
feat: implement MVC architecture with Cake Pattern

0 of 48 new or added lines in 5 files covered. (0.0%)

0 of 50 relevant lines covered (0.0%)

0.0 hits per line

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

0.0
/src/main/scala/io/github/srs/controller/ControllerModule.scala
1
package io.github.srs.controller
2

3
object ControllerModule:
NEW
4

×
5
  trait Controller:
NEW
6
    def start(): Unit
×
7
    def plotData(): Unit
8

9
  trait Provider:
10
    val controller: Controller
11

12
  type Requirements = io.github.srs.view.ViewModule.Provider & io.github.srs.model.ModelModule.Provider
13

14
  trait Component:
NEW
15
    context: Requirements =>
×
NEW
16

×
17
    object Controller:
NEW
18
      def apply(): Controller = new ControllerImpl
×
NEW
19

×
20
      private class ControllerImpl extends Controller:
NEW
21

×
22
        def start(): Unit =
NEW
23
          context.view.init()
×
NEW
24
          plotData()
×
NEW
25

×
26
        def plotData(): Unit =
NEW
27
          context.view.plotData(context.model.getData)
×
NEW
28

×
29
  trait Interface extends Provider with Component:
30
    self: Requirements =>
31
end ControllerModule
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