-
Notifications
You must be signed in to change notification settings - Fork 31
/
OnlyCoreTestBase.hh
38 lines (35 loc) · 1.19 KB
/
OnlyCoreTestBase.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//----------------------------------*-C++-*----------------------------------//
// Copyright 2022-2024 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//---------------------------------------------------------------------------//
//! \file celeritas/OnlyCoreTestBase.hh
//---------------------------------------------------------------------------//
#pragma once
#include "corecel/Assert.hh"
#include "GlobalTestBase.hh"
namespace celeritas
{
namespace test
{
//---------------------------------------------------------------------------//
/*!
* Mixin class providing "unreachable" implementations for optical params
* construction.
*/
class OnlyCoreTestBase : virtual public GlobalTestBase
{
public:
SPConstCerenkov build_cerenkov() override { CELER_ASSERT_UNREACHABLE(); }
SPConstProperties build_properties() override
{
CELER_ASSERT_UNREACHABLE();
}
SPConstScintillation build_scintillation() override
{
CELER_ASSERT_UNREACHABLE();
}
};
//---------------------------------------------------------------------------//
} // namespace test
} // namespace celeritas