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

expertiza / expertiza / #19404

19 Apr 2025 07:24PM UTC coverage: 47.312% (+15.0%) from 32.332%
#19404

push

Ishani Rajput
Test cases added for update_questionnaire_questions in QuestionnaireHelper

6451 of 13635 relevant lines covered (47.31%)

7.55 hits per line

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

0.0
/app/models/github_pull_request_fetcher.rb
1
class GithubPullRequestFetcher
×
2
  require 'http_request'
×
3

4
  class << self
×
5
    def supports_url?(url)
×
6
      lower_case_url = url.downcase
×
7
      (HttpRequest.valid_url?(url) &&
×
8
       (lower_case_url.include? 'github') &&
×
9
       !%r{/pull/[0-9]+$}.match(lower_case_url).nil?)
×
10
    end
×
11
  end
×
12

13
  def initialize(params)
×
14
    @url = params['url']
×
15
  end
×
16

17
  def fetch_content
×
18
    url = @url + '.diff'
×
19
    res = HttpRequest.get(url)
×
20

21
    if res.is_a? Net::HTTPSuccess
×
22
      res.body
×
23
    else
×
24
      ''
×
25
    end
×
26
  end
×
27
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

© 2026 Coveralls, Inc