#13 highlight current player #43
GitHub Actions / Code Coverage
succeeded
Aug 16, 2024 in 0s
Code Coverage 61.40 %
This run completed at 08/16/2024 20:16:29
Details
Coverage Report: JaCoCo
- backend
Outcome | Value |
---|---|
Code Coverage % | 61.4% |
✔️ Number of Lines Covered | 668 |
❌ Number of Lines Missed | 420 |
Total Number of Lines | 1088 |
Details:
org/quizmania/game/command/application/domain
❌ GameQuestion.kt
Lines Missed:
- Line #61
}
- Line #73
}
- Line #109
gamePlayerId = gamePlayerId,
- Line #110
playerAnswerId = answerId,
- Line #111
answer = answer
- Line #114
}
- Line #125
clientBuzzerTimestamp
- Line #135
gamePlayerId = gamePlayerId,
- Line #139
}
- Line #160
}
- Line #198
answer = "" // some empty wrong answer - TODO better concept?
- Line #204
}
- Line #263
else -> 0
- Line #283
}
- Line #288
}
- Line #305
}
❌ GameAggregate.kt
Lines Missed:
- Line #149
}
- Line #164
}
- Line #174
}
- Line #182
.closeQuestion()
- Line #185
}
- Line #215
}
- Line #250
}
- Line #278
}
- Line #284
}
- Line #297
}
- Line #342
}
- Line #349
return this.find { it.username == username }
- Line #371
}
org/quizmania/question/port/in
❌ FindQuestionSetPort.kt
❌ FindQuestionPort.kt
org/quizmania/rest/adapter/in/rest
❌ AxonExceptionHandlerAdvice.kt
Lines Missed:
- Line #40
else -> HttpStatus.INTERNAL_SERVER_ERROR
- Line #44
mapOf(
- Line #50
httpStatus
- Line #51
)
- Line #55
mapOf(
- Line #58
HttpStatus.INTERNAL_SERVER_ERROR
- Line #59
)
- Line #69
mapOf(
- Line #72
HttpStatus.NOT_FOUND
- Line #77
mapOf(
- Line #80
HttpStatus.INTERNAL_SERVER_ERROR
❌ GameCommandController.kt
Lines Missed:
- Line #65
gameId,
- Line #66
username
- Line #79
gameId,
- Line #80
username
- Line #107
gameId = gameId,
- Line #109
username = username,
- Line #124
gameId = gameId,
- Line #126
username = username,
- Line #140
gameId = gameId,
- Line #155
gameId = gameId,
❌ GameReadController.kt
Lines Missed:
❌ QuestionSetController.kt
Lines Missed:
❌ AdminController.kt
Lines Missed:
- Line #77
name = gameName,
- Line #79
maxPlayers = maxPlayers,
- Line #80
numQuestions = 10,
- Line #81
questionSetId = "test01"
- Line #91
gameId = gameId,
- Line #92
username = it
- Line #95
}
- Line #97
}
❌ TimeController.kt
Lines Missed:
❌ GameEventsController.kt
Lines Missed:
- Line #36
)
- Line #37
}.toList()
org/quizmania/rest/adapter/out
✔️ WebsocketGameEventEmitter.kt
All Lines Covered!
❌ GameJPARepositoryAdapter.kt
Lines Missed:
- Line #51
var status: GameStatus,
- Line #56
) {
❌ QuestionAdapter.kt
Lines Missed:
org/quizmania/rest/application/domain
❌ Game.kt
Lines Missed:
- Line #36
}
- Line #44
}
- Line #48
}
✔️ GamePlayer.kt
All Lines Covered!
org/quizmania
org/quizmania/question/api
✔️ QuestionSet.kt
All Lines Covered!
❌ types.kt
✔️ Question.kt
All Lines Covered!
org/quizmania/common
✔️ EventMetaData.kt
All Lines Covered!
org/quizmania/game/command/adapter/out
✔️ DeadlineScheduler.kt
All Lines Covered!
✔️ QuestionAdapter.kt
All Lines Covered!
org/quizmania/game/command/port/out
❌ ScheduleDeadlinePort.kt
❌ QuestionPort.kt
org/quizmania/rest/port/in
❌ FindGamePort.kt
❌ GameEventHappenedInPort.kt
org/quizmania/rest/application/usecase
❌ FindGameUseCase.kt
Lines Missed:
❌ GameEventHappenedUseCase.kt
Lines Missed:
org/quizmania/question/application/usecase
❌ FindQuestionSetUseCase.kt
Lines Missed:
✔️ FindQuestionUseCase.kt
All Lines Covered!
org/quizmania/rest/adapter/in/axon
❌ GameEventListener.kt
Lines Missed:
- Line #40
}
- Line #52
}
- Line #58
}
✔️ SubscribingGameEventListener.kt
All Lines Covered!
org/quizmania/question/adapter/out
❌ Comparisons.kt
Lines Missed:
✔️ Extensions.kt
All Lines Covered!
❌ QuestionJsonFileRepositoryAdapter.kt
Lines Missed:
org/quizmania/game/api
❌ exceptions.kt
Lines Missed:
- Line #16
class InvalidConfigProblem(gameId: UUID, detail: String) :
- Line #25
class GameAlreadyStartedProblem(gameId: UUID) :
- Line #28
class GameAlreadyEndedProblem(gameId: UUID) :
- Line #31
class OtherQuestionStillOpenProblem(gameId: UUID) :
- Line #34
class PlayerNotFoundProblem(gameId: UUID, username: String) :
- Line #37
class QuestionNotFoundProblem(gameId: UUID, gameQuestionId: UUID) :
- Line #40
class QuestionAlreadyClosedProblem(gameId: UUID, gameQuestionId: UUID) :
- Line #43
class QuestionAlreadyAnsweredProblem(gameId: UUID, gameQuestionId: UUID, gamePlayerId: GamePlayerId) :
- Line #46
class AnswerNotFoundProblem(gameId: UUID, gameQuestionId: UUID, gamePlayerId: GamePlayerId) :
- Line #49
class QuestionAlreadyBuzzedProblem(gameId: UUID, gameQuestionId: UUID, gamePlayerId: GamePlayerId) :
- Line #52
class QuestionInBuzzerModeProblem(gameId: UUID, gameQuestionId: UUID) :
- Line #55
class QuestionNotInBuzzerModeProblem(gameId: UUID, gameQuestionId: UUID) :
- Line #58
class NoBuzzerWinnerProblem(gameId: UUID, gameQuestionId: UUID) :
- Line #61
class QuestionAlreadyRatedProblem(gameId: UUID, gameQuestionId: UUID) :
❌ commands.kt
Lines Missed:
❌ types.kt
✔️ GameConfig.kt
All Lines Covered!
org/quizmania/common/axon/problem
❌ ProblemCommandHandlerInterceptor.kt
Lines Missed:
- Line #15
try {
- Line #17
} catch (ex: CommandExecutionProblem) {
org/quizmania/config
✔️ AxonConfig.kt
All Lines Covered!
❌ WebsocketConfig.kt
Lines Missed:
- Line #37
}
- Line #42
}
- Line #47
}
- Line #52
}
org/quizmania/rest/port/out
❌ GameChangedEventEmitterPort.kt
❌ GameRepository.kt
❌ QuestionPort.kt
org/quizmania/rest/config
✔️ RestAxonConfiguration.kt
All Lines Covered!
org/quizmania/question/port/out
❌ QuestionRepository.kt
❌ QuestionSetRepository.kt
Loading