Annotation for missing test & method
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 2m1s
Pull Request Pipeline / lint (pull_request) Successful in 2m4s

This commit is contained in:
2025-11-21 12:46:18 +01:00
parent 229750ffcf
commit 32f3f68da9
2 changed files with 6 additions and 0 deletions

View File

@@ -10,6 +10,9 @@ class PlayerGroupDao extends DatabaseAccessor<AppDatabase>
with _$PlayerGroupDaoMixin { with _$PlayerGroupDaoMixin {
PlayerGroupDao(super.db); PlayerGroupDao(super.db);
/// No need for a groupHasPlayers method since the members attribute is
/// not nullable
/// Adds a [player] to a group with the given [groupId]. /// Adds a [player] to a group with the given [groupId].
/// If the player is already in the group, no action is taken. /// If the player is already in the group, no action is taken.
/// If the player does not exist in the player table, they are added. /// If the player does not exist in the player table, they are added.

View File

@@ -41,6 +41,9 @@ void main() {
}); });
group('Player-Group Tests', () { group('Player-Group Tests', () {
/// No need to test if group has players since the members attribute is
/// not nullable
test('Adding a player to a group works correctly', () async { test('Adding a player to a group works correctly', () async {
await database.groupDao.addGroup(group: testgroup); await database.groupDao.addGroup(group: testgroup);
await database.playerDao.addPlayer(player: player4); await database.playerDao.addPlayer(player: player4);