Branch data Line data Source code
1 : : /* 2 : : * ----------------- BEGIN LICENSE BLOCK --------------------------------- 3 : : * 4 : : * Copyright (C) 2018-2021 Intel Corporation 5 : : * 6 : : * SPDX-License-Identifier: MIT 7 : : * 8 : : * ----------------- END LICENSE BLOCK ----------------------------------- 9 : : */ 10 : : 11 : : /* 12 : : * Generated file 13 : : */ 14 : : 15 : : #include <gtest/gtest.h> 16 : : 17 : : #include <limits> 18 : : 19 : : #include "ad/physics/ParametricValueValidInputRange.hpp" 20 : : 21 : 2 : TEST(ParametricValueValidInputRangeTests, testValidInputRangeUninitialized) 22 : : { 23 : 1 : ::ad::physics::ParametricValue value; 24 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 25 : : } 26 : : 27 : 2 : TEST(ParametricValueValidInputRangeTests, testValidInputRangeInputMinOk) 28 : : { 29 : 1 : ::ad::physics::ParametricValue value(0.); 30 [ + - - + : 1 : ASSERT_TRUE(withinValidInputRange(value)); - - - - - - - - ] 31 : : } 32 : : 33 : 2 : TEST(ParametricValueValidInputRangeTests, testValidInputRangeInputMaxOk) 34 : : { 35 : 1 : ::ad::physics::ParametricValue value(1.); 36 [ + - - + : 1 : ASSERT_TRUE(withinValidInputRange(value)); - - - - - - - - ] 37 : : } 38 : : 39 : 2 : TEST(ParametricValueValidInputRangeTests, testValidInputRangeBelowInputMin) 40 : : { 41 : 1 : ::ad::physics::ParametricValue value(0. - ::ad::physics::ParametricValue::cPrecisionValue); 42 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 43 : : } 44 : : 45 : 2 : TEST(ParametricValueValidInputRangeTests, testValidInputRangeExceedsInputMax) 46 : : { 47 : 1 : ::ad::physics::ParametricValue value(1. * 1.1); 48 [ + - - + : 1 : ASSERT_FALSE(withinValidInputRange(value)); - - - - - - - - ] 49 : : }