package Ġf tl . reports . outcome Ċ Ċ import Ġcom . google . api . services . tool results . model . Environment Ċ import Ġfl ank . common . log Ln Ċ Ċ fun ĠTest Outcome Context . create Matrix Outcome Summary () Ġ= Ġbill able Minutes () Ġto Ġoutcome Summary () Ċ Ċ private Ġfun ĠTest Outcome Context . bill able Minutes () Ġ= Ġsteps . calculate Android Bill able Minutes ( projectId , Ġtest Timeout ) Ċ Ċ private Ġfun ĠTest Outcome Context . outcome Summary () Ġ= ĊĠĠĠ Ġif Ġ( environments . has Outcome ()) ĊĠĠĠĠĠĠĠ Ġcreate Matrix Outcome Summary Using Environments () ĊĠĠĠ Ġelse Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( steps . isEmpty ()) Ġlog Ln (" No Ġtest Ġresults Ġfound , Ġsomething Ġwent Ġwrong . ĠTry Ġre - running Ġthe Ġtests .") ĊĠĠĠĠĠĠĠ Ġcreate Matrix Outcome Summary Using Steps () ĊĠĠĠ Ġ} Ċ Ċ private Ġfun ĠList < Environment >. has Outcome () Ġ= Ġis NotEmpty () Ġ&& Ġall Ġ{ Ġit . environment Result ?. outcome ?. summary Ġ!= Ġnull Ġ} Ċ