module SphereEngine::REST::TestCases

Public Instance Methods

create_problem_testcase(problem_id, options = {}) click to toggle source

@param problem_id [String] @options [Hash]

# File lib/sphere_engine/rest/test_cases.rb, line 13
def create_problem_testcase(problem_id, options = {})
  perform_post_requests_of_problems_service("/problems/#{problem_id}/testcases", options)
end
get_testcase(problem_id, testcase_id) click to toggle source

@param problem_id [String] @param testcase_id [String]

# File lib/sphere_engine/rest/test_cases.rb, line 26
def get_testcase(problem_id, testcase_id)
  perform_get_requests_of_problems_service("/problems/#{problem_id}/testcases/#{testcase_id}")
end
get_testcase_file(problem_id, testcase_id, filename) click to toggle source

@param problem_id [String] @param testcase_id [String] @param filename [String]

# File lib/sphere_engine/rest/test_cases.rb, line 33
def get_testcase_file(problem_id, testcase_id, filename)
  perform_get_requests_of_problems_service(
    "/problems/#{problem_id}/testcases/#{testcase_id}/#{filename}"
  )
end
list_testcases(problem_id) click to toggle source

@param problem_id [String]

# File lib/sphere_engine/rest/test_cases.rb, line 7
def list_testcases(problem_id)
  perform_get_requests_of_problems_service("/problems/#{problem_id}/testcases")
end
update_problem_testcase(problem_id, testcase_id, options = {}) click to toggle source

@param problem_id [String] @param testcase_id [String] @param options [Hash]

# File lib/sphere_engine/rest/test_cases.rb, line 20
def update_problem_testcase(problem_id, testcase_id, options = {})
  perform_put_requests_of_problems_service("/problems/#{problem_id}/testcases/#{testcase_id}", options)
end