GCC Code Coverage Report


Directory: ./
File: components/parking_system/include/tickets/Ticket.h
Date: 2025-12-16 19:41:02
Exec Total Coverage
Lines: 12 12 100.0%
Functions: 2 2 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 #pragma once
2
3 #include <cstdint>
4
5 /**
6 * @brief Parking ticket structure
7 */
8 struct Ticket {
9 uint32_t id;
10 uint64_t entryTimestamp;
11 uint64_t paymentTimestamp; // 0 if not paid
12 bool isPaid;
13 bool isUsed;
14
15 15 Ticket()
16 15 : id(0)
17 15 , entryTimestamp(0)
18 15 , paymentTimestamp(0)
19 15 , isPaid(false)
20 15 , isUsed(false) {}
21
22 10 Ticket(uint32_t ticketId, uint64_t entry)
23 10 : id(ticketId)
24 10 , entryTimestamp(entry)
25 10 , paymentTimestamp(0)
26 10 , isPaid(false)
27 10 , isUsed(false) {}
28 };
29