code: def _get_baseline_string_from_file(filename):  # pragma: no cover
      
      try:
          with open(filename) as f:
              return f.read()
  
      except IOError:
          log.error(
              'Unable to open baseline file: {}\n'
              'Please create it via\n'
              '   `detect-secrets scan > {}`\n'
              .format(filename, filename),
          )
          raise
docs: Breaking this function up for mockability.