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

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

27 Jul 2025 01:52PM UTC coverage: 63.061% (+14.0%) from 49.091%
#115

Pull #12

github

davidcohenDC
refactor: reorder import statements in LightStateTest
Pull Request #12: feat: control the diffusion of the lights on the enviroment

257 of 395 new or added lines in 22 files covered. (65.06%)

4 existing lines in 2 files now uncovered.

309 of 490 relevant lines covered (63.06%)

9.02 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
/**
4
 * The [[ViewModule]] provides abstractions and implementations for the application's viewing component. It is
5
 * responsible for initializing and displaying formatted data through the GUI.
6
 */
7
object ViewModule:
8

×
9
  trait View:
10
    def init(): Unit
×
11
    def plotData(text: String): Unit // ← renamed API
12

13
  trait Provider:
14
    val view: View
15

16
  type Requirements = io.github.srs.controller.ControllerModule.Provider
17

18
  trait Component:
19
    context: Requirements =>
×
20

×
21
    object View:
22
      def apply(): View = new ViewImpl
×
23

×
24
      private class ViewImpl extends View:
25
        private val gui = new SimpleView
×
26
        def init(): Unit = gui.init()
×
NEW
27
        def plotData(text: String): Unit = gui.plotData(text)
×
28

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