Coverage Summary for Class: AnsiColor (com.javiersc.kotlin.stdlib)

Class Method, % Branch, % Line, % Instruction, %
AnsiColor 0% (0/2) 0% (0/2) 0% (0/4)
AnsiColor$Background 0% (0/1) 0% (0/1) 0% (0/2)
AnsiColor$Background$Black 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Background$Blue 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Background$Cyan 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Background$Gray 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Background$Green 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Background$Purple 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Background$Red 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Background$Yellow 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Foreground 0% (0/1) 0% (0/1) 0% (0/2)
AnsiColor$Foreground$Black 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Foreground$Blue 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Foreground$BrightBlack 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Foreground$BrightBlue 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Foreground$BrightCyan 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Foreground$BrightGreen 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Foreground$BrightPurple 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Foreground$BrightRed 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Foreground$BrightWhite 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Foreground$BrightYellow 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Foreground$Cyan 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Foreground$Green 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Foreground$Purple 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Foreground$Red 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Foreground$White 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Foreground$Yellow 0% (0/1) 0% (0/1) 0% (0/3)
AnsiColor$Reset 0% (0/1) 0% (0/1) 0% (0/3)
Total 0% (0/29) 0% (0/29) 0% (0/83)


 package com.javiersc.kotlin.stdlib
 
 public inline fun String.ansiColor(color: AnsiColor): String =
     lines().joinToString("\n") { line -> "${color}$line${AnsiColor.Reset}" }
 
 public abstract class AnsiColor {
 
     public abstract val value: String
 
     override fun toString(): String = value
 
     public object Reset : AnsiColor() {
         override val value: String = "\u001B[0m"
     }
 
     public object Foreground {
         public object Black : AnsiColor() {
             override val value: String = "\u001B[30m"
         }
         public object Red : AnsiColor() {
             override val value: String = "\u001B[31m"
         }
         public object Green : AnsiColor() {
             override val value: String = "\u001B[32m"
         }
         public object Yellow : AnsiColor() {
             override val value: String = "\u001B[33m"
         }
         public object Blue : AnsiColor() {
             override val value: String = "\u001B[34m"
         }
         public object Purple : AnsiColor() {
             override val value: String = "\u001B[35m"
         }
         public object Cyan : AnsiColor() {
             override val value: String = "\u001B[36m"
         }
         public object White : AnsiColor() {
             override val value: String = "\u001B[37m"
         }
         public object BrightBlack : AnsiColor() {
             override val value: String = "\u001B[90m"
         }
         public object BrightRed : AnsiColor() {
             override val value: String = "\u001B[91m"
         }
         public object BrightGreen : AnsiColor() {
             override val value: String = "\u001B[92m"
         }
         public object BrightYellow : AnsiColor() {
             override val value: String = "\u001B[93m"
         }
         public object BrightBlue : AnsiColor() {
             override val value: String = "\u001B[94m"
         }
         public object BrightPurple : AnsiColor() {
             override val value: String = "\u001B[95m"
         }
         public object BrightCyan : AnsiColor() {
             override val value: String = "\u001B[96m"
         }
         public object BrightWhite : AnsiColor() {
             override val value: String = "\u001B[97m"
         }
     }
 
     public object Background {
         public object Black : AnsiColor() {
             override val value: String = "\u001B[40m"
         }
         public object Red : AnsiColor() {
             override val value: String = "\u001B[41m"
         }
         public object Green : AnsiColor() {
             override val value: String = "\u001B[42m"
         }
         public object Yellow : AnsiColor() {
             override val value: String = "\u001b[43m"
         }
         public object Blue : AnsiColor() {
             override val value: String = "\u001B[44m"
         }
         public object Purple : AnsiColor() {
             override val value: String = "\u001B[45m"
         }
         public object Cyan : AnsiColor() {
             override val value: String = "\u001B[46m"
         }
         public object Gray : AnsiColor() {
             override val value: String = "\u001B[47m"
         }
     }
 }