Coverage Summary for Class: Alert (io.heapy.kotmark.ext.gfm.alerts)

Class Class, % Method, % Branch, % Line, % Instruction, %
Alert 100% (1/1) 100% (2/2) 83.3% (5/6) 100% (4/4) 92.3% (24/26)


 package io.heapy.kotmark.ext.gfm.alerts
 
 import io.heapy.kotmark.node.CustomBlock
 
 class Alert(
     val type: String,
 ) : CustomBlock() {
     fun hasBody(): Boolean {
         val first = firstChild
         return if (first is AlertTitle) first.next != null else first != null
     }
 }