package Ġsk . cs irt . vir us checker . client . reporting Ċ Ċ import Ġsk . cs irt . vir us checker . client . local DateTime Ċ import Ġsk . cs irt . vir us checker . client . test Scan Response Ċ import Ġkotlin . test . Test Ċ import Ġkotlin . test . assertEquals Ċ import Ġkotlin . test . assertTrue ĊĊ Ċ internal Ġclass ĠCsv Reporter Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġsave Report () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtemp File Ġ= Ġcreate TempFile () ĊĠĠĠĠĠĠĠ ĠCsv Reporter ( temp File ). save Report ( test Scan Response ) ĊĠĠĠĠĠĠĠ ĠassertTrue Ġ{ Ġtemp File . exists () Ġ} ĊĊĠĠĠĠĠĠĠ Ġval Ġcontent Ġ= Ġtemp File . read Text (). trim Indent () ĊĠĠĠĠĠĠĠ Ġval Ġexpected Ġ= Ġ""" file , date , ant ivirus , status , mal ware Description , sha 2 5 6 , sha 1 , md 5 Ċ e ic ar . txt ,$ local DateTime , Cl am AV , INF ECT ED , E ic ar - TEST - File , 1 3 1 F 9 5 C 5 1 CC 8 1 9 4 6 5 FA 1 7 9 7 F 6 CC AC F 9 D 4 9 4 AAA FF 4 6 FA 3 E AC 7 3 AE 6 3 FF B DF D 8 2 6 7 , CF 8 BD 9 DF DD FF 0 0 7 F 7 5 ADF 4 C 2 BE 4 8 0 0 5 CE A 3 1 7 C 6 2 , 6 9 6 3 0 E 4 5 7 4 EC 6 7 9 8 2 3 9 B 0 9 1 CD A 4 3 D CA 0 Ċ """. trim Indent () ĊĠĠĠĠĠĠĠ ĠassertEquals ( expected , Ġcontent ) ĊĠĠĠ Ġ} Ċ }