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

htwg-codebreaker-org / codebreaker / 14938345043

09 May 2025 09:52PM UTC coverage: 92.361%. First build
14938345043

Pull #2

github

web-flow
Merge a9aa27378 into a73d205da
Pull Request #2: testing new repo token in coverals

133 of 144 relevant lines covered (92.36%)

0.92 hits per line

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

100.0
/src/main/scala/de/htwg/codebreaker/util/Observable.scala
1
package de.htwg.codebreaker.util
2

3
trait Observer {
4
  def update: Unit
5
}
6

7
class Observable {
8
  var subscribers: Vector[Observer] = Vector()
1✔
9

10
  def add(s: Observer): Unit = subscribers = subscribers :+ s
1✔
11

12
  def remove(s: Observer): Unit = subscribers = subscribers.filterNot(o => o == s)
1✔
13

14
  def notifyObservers: Unit = subscribers.foreach(o => o.update)
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