### ----------------------------------------------------
### -- App::Racoco::Report::ReporterCoveralls
### -- Licenses: Artistic-2.0
### -- Authors: Mikhail Khorkov
### -- File: lib/App/Racoco/Report/ReporterCoveralls/MD5.rakumod
### ----------------------------------------------------
use App::Racoco::Report::ReporterCoveralls::Externals :md5;

unit class App::Racoco::Report::ReportCoveralls::MD5
	is export;

method md5(Str $content --> Str) {
	md5($content.encode: 'utf-8').list».fmt("%02x").join
}


