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

expertiza / expertiza / #19600

24 Mar 2025 09:39PM UTC coverage: 12.395% (-19.9%) from 32.332%
#19600

push

VibhavDeoNCSU
Fixed bugs in tests

1956 of 15780 relevant lines covered (12.4%)

0.25 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