GCC Code Coverage Report


Directory: ./
File: Events.cpp
Date: 2026-09-23 22:12:48
Exec Total Coverage
Lines: 1 60 1.7%
Functions: 1 11 9.1%
Branches: 0 2 0.0%

Line Branch Exec Source
1 // ======================================================================
2 // \title Events.cpp
3 // \author Bocchino
4 // \brief Implementation for CmdSequencerComponentImpl::Sequence::Events
5 //
6 // Copyright (C) 2009-2018 California Institute of Technology.
7 // ALL RIGHTS RESERVED. United States Government Sponsorship
8 // acknowledged.
9 // ======================================================================
10
11 #include "Fw/Types/Assert.hpp"
12 #include "Svc/CmdSequencer/CmdSequencerImpl.hpp"
13
14 namespace Svc {
15
16 1 CmdSequencerComponentImpl::Sequence::Events ::Events(Sequence& sequence) : m_sequence(sequence) {}
17
18 ✗ void CmdSequencerComponentImpl::Sequence::Events ::fileCRCFailure(const U32 storedCRC, const U32 computedCRC) {
19 ✗ Fw::LogStringArg& logFileName = this->m_sequence.getLogFileName();
20 ✗ CmdSequencerComponentImpl& component = this->m_sequence.m_component;
21 ✗ component.log_WARNING_HI_CS_FileCrcFailure(logFileName, storedCRC, computedCRC);
22 ✗ component.error();
23 ✗ }
24
25 ✗ void CmdSequencerComponentImpl::Sequence::Events ::fileInvalid(const CmdSequencer_FileReadStage::t stage,
26 const I32 error) {
27 ✗ Fw::LogStringArg& logFileName = this->m_sequence.getLogFileName();
28 ✗ CmdSequencerComponentImpl& component = this->m_sequence.m_component;
29 ✗ component.log_WARNING_HI_CS_FileInvalid(logFileName, stage, error);
30 ✗ component.error();
31 ✗ }
32
33 ✗ void CmdSequencerComponentImpl::Sequence::Events ::fileNotFound() {
34 ✗ Fw::LogStringArg& logFileName = this->m_sequence.getLogFileName();
35 ✗ CmdSequencerComponentImpl& component = this->m_sequence.m_component;
36 ✗ component.log_WARNING_HI_CS_FileNotFound(logFileName);
37 ✗ component.error();
38 ✗ }
39
40 ✗ void CmdSequencerComponentImpl::Sequence::Events ::fileReadError() {
41 ✗ Fw::LogStringArg& logFileName = this->m_sequence.getLogFileName();
42 ✗ CmdSequencerComponentImpl& component = this->m_sequence.m_component;
43 ✗ component.log_WARNING_HI_CS_FileReadError(logFileName);
44 ✗ component.error();
45 ✗ }
46
47 ✗ void CmdSequencerComponentImpl::Sequence::Events ::fileSizeError(const U32 size) {
48 ✗ Fw::LogStringArg& logFileName = this->m_sequence.getLogFileName();
49 ✗ CmdSequencerComponentImpl& component = this->m_sequence.m_component;
50 ✗ component.log_WARNING_HI_CS_FileSizeError(logFileName, size);
51 ✗ component.error();
52 ✗ }
53
54 ✗ void CmdSequencerComponentImpl::Sequence::Events ::recordInvalid(const U32 recordNumber, const I32 error) {
55 ✗ Fw::LogStringArg& logFileName = this->m_sequence.getLogFileName();
56 ✗ CmdSequencerComponentImpl& component = this->m_sequence.m_component;
57 ✗ component.log_WARNING_HI_CS_RecordInvalid(logFileName, recordNumber, error);
58 ✗ component.error();
59 ✗ }
60
61 ✗ void CmdSequencerComponentImpl::Sequence::Events ::recordMismatch(const U32 numRecords, const U32 extraBytes) {
62 ✗ Fw::LogStringArg& logFileName = this->m_sequence.getLogFileName();
63 ✗ CmdSequencerComponentImpl& component = this->m_sequence.m_component;
64 ✗ component.log_WARNING_HI_CS_RecordMismatch(logFileName, numRecords, extraBytes);
65 // TODO: Should this be an error?
66 ✗ }
67
68 ✗ void CmdSequencerComponentImpl::Sequence::Events ::timeBaseMismatch(const TimeBase currTimeBase,
69 const TimeBase seqTimeBase) {
70 ✗ Fw::LogStringArg& logFileName = this->m_sequence.getLogFileName();
71 ✗ CmdSequencerComponentImpl& component = this->m_sequence.m_component;
72 ✗ component.log_WARNING_HI_CS_TimeBaseMismatch(logFileName, currTimeBase, seqTimeBase);
73 ✗ component.error();
74 ✗ }
75
76 ✗ void CmdSequencerComponentImpl::Sequence::Events ::timeContextMismatch(const FwTimeContextStoreType currTimeContext,
77 const FwTimeContextStoreType seqTimeContext) {
78 ✗ Fw::LogStringArg& logFileName = this->m_sequence.getLogFileName();
79 ✗ CmdSequencerComponentImpl& component = this->m_sequence.m_component;
80 ✗ component.log_WARNING_HI_CS_TimeContextMismatch(logFileName, currTimeContext, seqTimeContext);
81 ✗ component.error();
82 ✗ }
83
84 ✗ void CmdSequencerComponentImpl::Sequence::Events ::noRecords() {
85 ✗ Fw::LogStringArg& logFileName = this->m_sequence.getLogFileName();
86 ✗ CmdSequencerComponentImpl& component = this->m_sequence.m_component;
87 ✗ component.log_WARNING_LO_CS_NoRecords(logFileName);
88 ✗ component.error();
89 ✗ }
90
91 } // namespace Svc
92