### ----------------------------------------------------
### -- App::RaCoCo
### -- Licenses: Artistic-2.0
### -- Authors: Mikhail Khorkov
### -- File: lib/App/Racoco/Coverable/Precomp/PrecompHashcodeReader.rakumod
### ----------------------------------------------------
unit module App::Racoco::Coverable::Precomp::PrecompHashcodeReader;

use App::Racoco::RunProc;

role PrecompHashcodeReader is export {
  method read(IO() :$path --> Str) { ... }
}

class PrecompHashcodeReaderReal does PrecompHashcodeReader is export {
  method read(IO() :$path --> Str) {
    my $h = $path.open :r;
    LEAVE { .close with $h }
    $h.get
  }
}


