GCC Code Coverage Report


Directory: cvmfs/
File: cvmfs/swissknife_lease_curl.h
Date: 2026-04-26 02:35:59
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
11 class CurlBuffer {
12 public:
13 std::string data;
14
1/2
✓ Branch 2 taken 374 times.
✗ Branch 3 not taken.
374 CurlBuffer() : data("") { }
15 };
16
17 bool MakeAcquireRequest(const std::string &key_id, const std::string &secret,
18 const std::string &repo_path,
19 const std::string &repo_service_url, CurlBuffer *buffer,
20 const std::string &metadata = std::string());
21
22 bool MakeEndRequest(const std::string &method, const std::string &key_id,
23 const std::string &secret, const std::string &session_token,
24 const std::string &repo_service_url,
25 const std::string &request_payload, CurlBuffer *reply,
26 bool expect_final_revision = false);
27
28 #endif // CVMFS_SWISSKNIFE_LEASE_CURL_H_
29