class CodeClimate::TestReporter::PayloadValidator

def validate

def validate
  raise InvalidPayload, "A git commit sha was not found in the test report payload" unless commit_sha
  raise InvalidPayload, "A git commit timestamp was not found in the test report payload" unless committed_at
  raise InvalidPayload, "A run at timestamp was not found in the test report payload" unless run_at
  raise InvalidPayload, "No source files were found in the test report payload" unless source_files?
  raise InvalidPayload, "Invalid source files were found in the test report payload" unless valid_source_files?
  true
end