• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / tigerdata-app / 8d70f2ab-acc5-4aab-b64b-743d66ddd2eb

29 Aug 2025 06:22PM UTC coverage: 87.983% (-0.1%) from 88.118%
8d70f2ab-acc5-4aab-b64b-743d66ddd2eb

Pull #1801

circleci

JaymeeH
Merge branch '1586-request-mailer' of https://github.com/pulibrary/tiger-data-app into 1586-request-mailer
Pull Request #1801: 1586 request mailer

10 of 10 new or added lines in 2 files covered. (100.0%)

1173 existing lines in 56 files now uncovered.

2482 of 2821 relevant lines covered (87.98%)

317.98 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

72.22
/app/controllers/welcome_controller.rb
1
# frozen_string_literal: true
2
class WelcomeController < ApplicationController
2✔
3
  skip_before_action :authenticate_user!
2✔
4
  skip_before_action :verify_authenticity_token
2✔
5

6
  def index
2✔
7
    if current_user.blank?
24✔
UNCOV
8
      render layout: "welcome"
9✔
9
    else
10
      redirect_to dashboard_path
15✔
11
    end
12
  end
13

14
  def help
2✔
15
    # Piggybacking on this page to pass custom HTTP headers to Mediaflux
16
    # in a very controlled scenario.
UNCOV
17
    root_ns = Rails.configuration.mediaflux["api_root_collection_namespace"]
1✔
UNCOV
18
    parent_collection = Rails.configuration.mediaflux["api_root_collection_name"]
1✔
UNCOV
19
    @test_path = Pathname.new(root_ns).join(parent_collection)
1✔
UNCOV
20
    @test_http_headers = false
1✔
UNCOV
21
    unless current_user.nil?
1✔
22
      @test_http_headers = params["http-headers"] == "true"
×
23
      request = if @test_http_headers
×
24
                  Mediaflux::AssetExistRequest.new(session_token: current_user.mediaflux_session, path: @test_path, session_user: current_user)
×
25
                else
26
                  Mediaflux::AssetExistRequest.new(session_token: current_user.mediaflux_session, path: @test_path)
×
27
                end
28
      @test_path_exist = request.exist?
×
29
    end
30
  end
31
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc