Bugs: Browse | Submit New | Admin

[#8341] test coverage sucks for Service#get_response

Date:
2007-01-31 19:56
Priority:
3
Submitted By:
Pat Eyler (pate)
Assigned To:
Edward Cho (zerokarmaleft)
Category:
None
State:
Open
Summary:
test coverage sucks for Service#get_response

Detailed description
**********************************************************************
***  R43::Service#get_response loaded with 2 possible mutations
**********************************************************************

2 mutations remaining...
1 mutations remaining...

The following mutations didn't cause test failures:

def get_response(url)
  full_url = @url_constructor.full_url(url)
  http = _get_http()
  request = Net::HTTP::Get.new(full_url)
  http.start(@domain) do |http|
    response=xml
    response=xml
    response=http.request(request)
    if (response.code == ";&]'kqcFQ:lAS6 ;r+M\027") then
      xml=REXML::Document.new(response.body)
      return xml
    else
      return response.code
    end
  end
end

def get_response(url)
  full_url = @url_constructor.full_url(url)
  http = _get_http()
  request = Net::HTTP::Get.new(full_url)
  http.start(@domain) do |http|
    response=xml
    response=xml
    response=http.request(request)
    if (response.code == "200") then
      return response.code
    else
      xml=REXML::Document.new(response.body)
      return xml
    end
  end
end

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item