Coverage Summary for Class: GuildMember (com.galarzaa.tibiakt.core.section.community.guild.model)

Class Method, % Branch, % Line, % Instruction, %
GuildMember 100% (2/2) 0% (0/2) 100% (9/9) 82.7% (134/162)
GuildMember$Companion 0% (0/1) 0% (0/1) 0% (0/2)
Total 66.7% (2/3) 0% (0/2) 90% (9/10) 81.7% (134/164)


 /*
  * Copyright © 2025 Allan Galarza
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 
 package com.galarzaa.tibiakt.core.section.community.guild.model
 
 import com.galarzaa.tibiakt.core.domain.character.BaseCharacter
 import com.galarzaa.tibiakt.core.domain.character.LevelAware
 import com.galarzaa.tibiakt.core.domain.character.Vocation
 import kotlinx.datetime.LocalDate
 import kotlinx.serialization.Serializable
 
 /**
  * A character that is part of a [Guild].
  *
  * @property rank The name of the rank the character holds.
  * @property title The title of the character in the guild.
  * @property level The current level of the character.
  * @property vocation The vocation of the character.
  * @property joinedOn The date when the character joined the guild.
  * @property isOnline Whether the character is currently online or not.
  */
 @Serializable
 public data class GuildMember(
     override val name: String,
     val rank: String,
     val title: String?,
     override val level: Int,
     val vocation: Vocation,
     val joinedOn: LocalDate,
     val isOnline: Boolean,
 ) : BaseCharacter, LevelAware