You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: billables_report_plugin_test.rb
    path of file: ./repos/violet_rails/test/plugins
    
    the code of the file until where you have to start completion: require "test_helper"

class BillablesReportPluginTest < ActionDispatch::IntegrationTest
  setup do
    @user = users(:public)
    @user.update(api_accessibility: {api_namespaces: {all_namespaces: {full_access: 'true'}}})

    @billables_report_pl
    
  def mock_data
    current_time = Time.zone.now

    # logs of today
    today_log_1 = api_resources(:tracker_entry_one)
    today_log_2 = api_resources(:tracker_entry_three)
    today_log_2.update(created_at: today_log_2.created_at - 3.minutes)
    today_log_3 = @billables_report_plugin.api_namespace.api_resources.create(today_log_1.as_json.except('id').merge('created_at': current_time - (24.hours - 5.minutes)))

    # logs for week
    start_of_week_time = current_time.beginning_of_week.beginning_of_day
    week_log_1 = @billables_report_plugin.api_namespace.api_resources.create(today_log_2.as_json.except('id').merge('created_at': start_of_week_time))
    week_log_2 = @billables_report_plugin.api_namespace.api_resources.create(today_log_3.as_json.except('id').merge('created_at': start_of_week_time + 2.minutes))

    # logs for month
    start_of_month_time = current_time.beginning_of_month.beginning_of_day
    month_log_1 = @billables_report_plugin.api_namespace.api_resources.create(today_log_2.as_json.except('id').merge('created_at': start_of_month_time))
    month_log_2 = @billables_report_plugin.api_namespace.api_resources.create(today_log_3.as_json.except('id').merge('created_at': start_of_month_time + 2.minutes))

    out_of_scope_for_today = @billables_report_plugin.api_namespace.api_resources.create(today_log_1.as_json.except('id').merge('created_at': current_time - (24.hours + 1.minute)))
    out_of_scope_for_week = @billables_report_plugin.api_namespace.api_resources.create(today_log_2.as_json.except('id').merge('created_at': start_of_week_time - 1.minute))
    out_of_scope_for_month = @billables_report_plugin.api_namespace.api_resources.create(today_log_3.as_json.except('id').merge('created_at': start_of_month_time - 1.minute))

    collection = [month_log_1, month_log_2, week_log_1, week_log_2, today_log_1, today_log_2, today_log_3, out_of_scope_for_today, out_of_scope_for_week, out_of_scope_for_month].map(&:id)

    @logs_for_today = @tracker.api_resources.where(id: collection).where("created_at >= ?", current_time - 24.hours).order(:created_at)
    @logs_for_week = @tracker.api_resources.where(id: collection).where("created_at >= ?", start_of_week_time).order(:created_at)
    @logs_for_month = @tracker.api_resources.where(id: collection).where("created_at >= ?", start_of_month_time).order(:created_at)
  end