Skip to content

Commit 7591bd4

Browse files
committed
Use capitalization consistent with header file
1 parent 6b2ea4e commit 7591bd4

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

test/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ configure_file(qiree_test_config.h.in qiree_test_config.h @ONLY)
1010

1111
# Generate a file with generate-time paths
1212
file(
13-
GENERATE
13+
GENERATE
1414
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/qiree_targets.h"
1515
CONTENT [[
1616
#ifndef qiree_targets_h
@@ -68,8 +68,8 @@ qiree_add_test(qiree ResultDistribution)
6868
# CQIREE TESTS
6969
#---------------------------------------------------------------------------##
7070

71-
qiree_add_test(cqiree cqiree)
72-
add_dependencies(cqiree_cqireeTest cqiree)
71+
qiree_add_test(CQiree cqiree)
72+
add_dependencies(cqiree_CQireeTest CQiree)
7373

7474
#---------------------------------------------------------------------------##
7575
# QIRXACC TESTS
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// See the top-level COPYRIGHT file for details.
44
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
55
//---------------------------------------------------------------------------//
6-
//! \file cqiree/cqiree.test.cc
6+
//! \file cqiree/CQiree.test.cc
77
//---------------------------------------------------------------------------//
88
#include "cqiree/CQiree.h"
99

@@ -19,7 +19,9 @@
1919
#include "qiree/Assert.hh"
2020
#include "qiree_test.hh"
2121

22+
//---------------------------------------------------------------------------//
2223
// Declare function pointer types, e.g. qiree_create_t
24+
// Note that using decltype requires the CQiree.h header file.
2325
#define DECLARE_FUNCPTR(FUNC) \
2426
using qiree_##FUNC##_t = std::add_pointer_t<decltype(qiree_##FUNC)>;
2527

@@ -35,6 +37,7 @@ DECLARE_FUNCPTR(save_result_items);
3537
DECLARE_FUNCPTR(destroy);
3638
#undef DECLARE_FUNCPTR
3739

40+
//---------------------------------------------------------------------------//
3841
class CQireeTest : public ::qiree::test::Test
3942
{
4043
protected:
@@ -71,7 +74,11 @@ class CQireeTest : public ::qiree::test::Test
7174
}
7275
}
7376

77+
protected:
78+
//// DATA ////
79+
7480
void* lib_handle_ = nullptr;
81+
7582
qiree_create_t create_fn_ = nullptr;
7683
qiree_load_module_from_memory_t load_module_from_memory_fn_ = nullptr;
7784
qiree_load_module_from_file_t load_module_from_file_fn_ = nullptr;
@@ -84,6 +91,7 @@ class CQireeTest : public ::qiree::test::Test
8491
qiree_destroy_t destroy_fn_ = nullptr;
8592
};
8693

94+
//---------------------------------------------------------------------------//
8795
TEST_F(CQireeTest, CreateAndDestroy)
8896
{
8997
CQiree* manager = create_fn_();

0 commit comments

Comments
 (0)