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

expertiza / expertiza / #19645

09 Mar 2026 08:29PM UTC coverage: 15.213% (-17.1%) from 32.332%
#19645

push

web-flow
Merge pull request #2967 from jayjshah2000/main

Automated Assessment of Peer Review

3 of 245 new or added lines in 7 files covered. (1.22%)

3480 existing lines in 126 files now uncovered.

2424 of 15934 relevant lines covered (15.21%)

1.22 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
UNCOV
1
class GithubPullRequestFetcher
×
UNCOV
2
  require 'http_request'
×
3

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

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

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

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