GCC Code Coverage Report


Directory: cvmfs/
File: cvmfs/swissknife_lease_curl.h
Date: 2025-06-22 02:36:02
Exec Total Coverage
Lines: 1 1 100.0%
Branches: 1 2 50.0%

Line Branch Exec Source
1 /**
2 * This file is part of the CernVM File System.
3 */
4
5 #ifndef CVMFS_SWISSKNIFE_LEASE_CURL_H_
6 #define CVMFS_SWISSKNIFE_LEASE_CURL_H_
7
8 #include <string>
9
10 #include "curl/curl.h"
11
12 class CurlBuffer {
13 public:
14 std::string data;
15
1/2
✓ Branch 2 taken 451 times.
✗ Branch 3 not taken.
451 CurlBuffer() : data("") { }
16 };
17
18 bool MakeAcquireRequest(const std::string& key_id, const std::string& secret,
19 const std::string& repo_path,
20 const std::string& repo_service_url,
21 CurlBuffer* buffer,
22 const std::string& metadata = std::string());
23
24 bool MakeEndRequest(const std::string& method, const std::string& key_id,
25 const std::string& secret, const std::string& session_token,
26 const std::string& repo_service_url,
27 const std::string& request_payload,
28 CurlBuffer* reply,
29 bool expect_final_revision = true);
30
31 #endif // CVMFS_SWISSKNIFE_LEASE_CURL_H_
32