module GdsApi::TestHelpers::LinkCheckerApi

def link_checker_api_batch_report_hash(id:, status: :completed, links: [], totals: {}, completed_at: nil)

def link_checker_api_batch_report_hash(id:, status: :completed, links: [], totals: {}, completed_at: nil)
  {
    id:,
    status:,
    links: links.map { |hash| link_checker_api_link_report_hash(**hash) },
    totals:,
    completed_at: completed_at || Time.now.iso8601,
  }
end