Coverage Summary for Class: OperationNode (cloud.mindbox.mobile_sdk.inapp.domain.models)

Class Class, % Method, % Branch, % Line, % Instruction, %
OperationNode 100% (1/1) 100% (4/4) 50% (1/2) 100% (7/7) 96.4% (27/28)


 package cloud.mindbox.mobile_sdk.inapp.domain.models
 
 internal data class OperationNode(
     override val type: String,
     val systemName: String,
 ) : OperationNodeBase(type) {
 
     override suspend fun fetchTargetingInfo(data: TargetingData) {
         return
     }
 
     override fun checkTargeting(data: TargetingData): Boolean {
         if (data !is TargetingData.OperationName) return false
         return data.triggerEventName.equals(systemName, true)
     }
 
     override suspend fun getOperationsSet(): Set<String> {
         return setOf(systemName)
     }
 }