• 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/view/ViewModule.scala
1
package io.github.srs.view
2

3
object ViewModule:
NEW
4

×
5
  trait View:
NEW
6
    def init(): Unit
×
7
    def plotData(data: Int): Unit
8

9
  trait Provider:
10
    val view: View
11

12
  type Requirements = io.github.srs.controller.ControllerModule.Provider
13

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

×
17
    object View:
NEW
18
      def apply(): View = new ViewImpl
×
NEW
19

×
20
      private class ViewImpl extends View:
NEW
21
        private val gui = new SimpleView
×
NEW
22

×
23
        def init(): Unit = gui.init()
NEW
24
        def plotData(data: Int): Unit = gui.plotData(data)
×
NEW
25

×
26
  trait Interface extends Provider with Component:
27
    self: Requirements =>
28
end ViewModule
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