GCC Code Coverage Report


Directory: ./
File: include/na64utest/testing-fixture.hh
Date: 2025-09-01 06:19:01
Exec Total Coverage
Lines: 1 1 100.0%
Functions: 1 1 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 #pragma once
2
3 #include "na64sw-config.h"
4
5 #if defined(GTEST_FOUND) && GTEST_FOUND
6
7 #include <gtest/gtest.h>
8
9 #include "na64event/data/event.hh"
10
11 namespace na64dp {
12 namespace test {
13
14 // Common fixture with event buffer for event data creation, compatible with gtest
15 class BasicEventDataOperations : public ::testing::Test {
16 private:
17 size_t _bufferSize;
18 void * _bufferPtr;
19 na64dp::mem::PlainBlock * _plainBlockPtr;
20 LocalMemory * _lmemPtr;
21 protected:
22 // Init ptr
23 BasicEventDataOperations();
24 // Free memory block for event data
25 void TearDown() override;
26 void _reallocate_event_buffer(size_t newSize);
27 public:
28 LocalMemory & lmem();
29 18 virtual ~BasicEventDataOperations() {}
30 }; // class BasicEventDataOperations
31
32 } // namespace ::na64dp::test
33 } // namespace na64dp
34
35 #endif // GTEST_FOUND
36
37