Implements tests for the Length class. More...
Public Member Functions | |
LengthTestCase () | |
Constructor. More... | |
virtual | ~LengthTestCase ()=default |
Destructor. More... | |
![]() | |
TestCase (const TestCase &)=delete | |
virtual | ~TestCase () |
Destructor. More... | |
std::string | GetName (void) const |
TestCase & | operator= (const TestCase &)=delete |
Protected Member Functions | |
void | AssertFalse (bool condition, std::string msg) |
Helper function to compare results with false. More... | |
void | AssertTrue (bool condition, std::string msg) |
Helper function to compare results with true. More... | |
![]() | |
TestCase (std::string name) | |
Constructor. More... | |
void | AddTestCase (TestCase *testCase, TestDuration duration=QUICK) |
Add an individual child TestCase to this test suite. More... | |
TestCase * | GetParent () const |
Get the parent of this TestCsse. More... | |
bool | IsStatusFailure (void) const |
Check if any tests failed. More... | |
bool | IsStatusSuccess (void) const |
Check if all tests passed. More... | |
void | SetDataDir (std::string directory) |
Set the data directory where reference trace files can be found. More... | |
void | ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line) |
Log the failure of this TestCase. More... | |
bool | MustAssertOnFailure (void) const |
Check if this run should assert on failure. More... | |
bool | MustContinueOnFailure (void) const |
Check if this run should continue on failure. More... | |
std::string | CreateDataDirFilename (std::string filename) |
Construct the full path to a file in the data directory. More... | |
std::string | CreateTempDirFilename (std::string filename) |
Construct the full path to a file in a temporary directory. More... | |
Private Member Functions | |
virtual void | DoRun () |
Implementation to actually run this TestCase. More... | |
void | TestConstructLengthFromQuantity () |
Test that a Length object can be constructed from a Quantity object. More... | |
void | TestConstructLengthFromSIUnits () |
Test that a Length object constructed from various SI units has the correct value in meters. More... | |
void | TestConstructLengthFromString (double unitValue, double meterValue, double tolerance, const std::initializer_list< std::string > &symbols) |
Test that a length object can be constructed from a string. More... | |
void | TestConstructLengthFromUSUnits () |
Test that a Length object constructed from various US units has the correct value in meters. More... | |
void | TestCopyAssignment () |
Test that a length object can be updated by assignment from another length object. More... | |
void | TestDefaultLengthIsZero () |
Test that a default constructed Length object has a value of 0. More... | |
void | TestInputStreamOperator () |
Test reading length object from a stream produces the expected length value. More... | |
void | TestLengthCopyConstructor () |
Test that the value from one length is copied to another using the copy constructor. More... | |
void | TestLengthMoveConstructor () |
Test that the value from one length is copied to another using the move constructor. More... | |
template<class T > | |
void | TestLengthSerialization (const Length &l, const T &unit, const std::string &expectedOutput, const std::string &context) |
Generic function for testing serialization of a Length object in various units. More... | |
void | TestMoveAssignment () |
Test that a length object can be updated by assignment from a moved length object. More... | |
void | TestOutputStreamOperator () |
Test writing length object to a stream produces the expected output. More... | |
void | TestQuantityAssignment () |
Test that a length object can be updated by assignment from a quantity. More... | |
void | TestSerializeLengthWithUnit () |
Test serializing a length object to all of the supported unit types. More... | |
void | TestTryParseReturnsFalse () |
Test the TryParse function returns false on bad input. More... | |
void | TestTryParseReturnsTrue () |
Test the TryParse function returns true on success. More... | |
void | TestConstructLengthFromMeterString () |
Test that a length object can be constructed from a string. More... | |
void | TestConstructLengthFromNanoMeterString () |
Test that a length object can be constructed from a string. More... | |
void | TestConstructLengthFromMicroMeterString () |
Test that a length object can be constructed from a string. More... | |
void | TestConstructLengthFromMilliMeterString () |
Test that a length object can be constructed from a string. More... | |
void | TestConstructLengthFromCentiMeterString () |
Test that a length object can be constructed from a string. More... | |
void | TestConstructLengthFromKiloMeterString () |
Test that a length object can be constructed from a string. More... | |
void | TestConstructLengthFromNauticalMileString () |
Test that a length object can be constructed from a string. More... | |
void | TestConstructLengthFromInchString () |
Test that a length object can be constructed from a string. More... | |
void | TestConstructLengthFromFootString () |
Test that a length object can be constructed from a string. More... | |
void | TestConstructLengthFromYardString () |
Test that a length object can be constructed from a string. More... | |
void | TestConstructLengthFromMileString () |
Test that a length object can be constructed from a string. More... | |
void | TestBuilderFreeFunctions () |
Test constructing length objects using the builder free functions. More... | |
void | TestIsEqualReturnsTrue () |
Test member comparison operators. More... | |
void | TestIsEqualReturnsFalse () |
Test member comparison operators. More... | |
void | TestIsEqualWithToleranceReturnsTrue () |
Test member comparison operators. More... | |
void | TestIsEqualWithToleranceReturnsFalse () |
Test member comparison operators. More... | |
void | TestIsNotEqualReturnsTrue () |
Test member comparison operators. More... | |
void | TestIsNotEqualReturnsFalse () |
Test member comparison operators. More... | |
void | TestIsNotEqualWithToleranceReturnsTrue () |
Test member comparison operators. More... | |
void | TestIsNotEqualWithToleranceReturnsFalse () |
Test member comparison operators. More... | |
void | TestIsLessReturnsTrue () |
Test member comparison operators. More... | |
void | TestIsLessReturnsFalse () |
Test member comparison operators. More... | |
void | TestIsLessWithToleranceReturnsFalse () |
Test member comparison operators. More... | |
void | TestIsGreaterReturnsTrue () |
Test member comparison operators. More... | |
void | TestIsGreaterReturnsFalse () |
Test member comparison operators. More... | |
void | TestIsGreaterWithToleranceReturnsFalse () |
Test member comparison operators. More... | |
void | TestOperatorEqualsReturnsTrue () |
Test free function comparison operators. More... | |
void | TestOperatorEqualsReturnsFalse () |
Test free function comparison operators. More... | |
void | TestOperatorNotEqualsReturnsTrue () |
Test free function comparison operators. More... | |
void | TestOperatorNotEqualsReturnsFalse () |
Test free function comparison operators. More... | |
void | TestOperatorLessThanReturnsTrue () |
Test free function comparison operators. More... | |
void | TestOperatorLessThanReturnsFalse () |
Test free function comparison operators. More... | |
void | TestOperatorLessOrEqualReturnsTrue () |
Test free function comparison operators. More... | |
void | TestOperatorLessOrEqualReturnsFalse () |
Test free function comparison operators. More... | |
void | TestOperatorGreaterThanReturnsTrue () |
Test free function comparison operators. More... | |
void | TestOperatorGreaterThanReturnsFalse () |
Test free function comparison operators. More... | |
void | TestOperatorGreaterOrEqualReturnsTrue () |
Test free function comparison operators. More... | |
void | TestOperatorGreaterOrEqualReturnsFalse () |
Test free function comparison operators. More... | |
void | TestAddingTwoLengths () |
Test arithmetic operations. More... | |
void | TestAddingLengthAndQuantity () |
Test arithmetic operations. More... | |
void | TestAddingQuantityAndLength () |
Test arithmetic operations. More... | |
void | TestSubtractingTwoLengths () |
Test arithmetic operations. More... | |
void | TestSubtractingLengthAndQuantity () |
Test arithmetic operations. More... | |
void | TestSubtractingQuantityAndLength () |
Test arithmetic operations. More... | |
void | TestMultiplyLengthByScalar () |
Test arithmetic operations. More... | |
void | TestMultiplyScalarByLength () |
Test arithmetic operations. More... | |
void | TestDivideLengthByScalar () |
Test arithmetic operations. More... | |
void | TestDivideLengthByLength () |
Test arithmetic operations. More... | |
void | TestDivideLengthByLengthReturnsNaN () |
Test arithmetic operations. More... | |
void | TestDivReturnsCorrectResult () |
Test Div function. More... | |
void | TestDivReturnsZeroRemainder () |
Test Div function. More... | |
void | TestDivReturnsCorrectRemainder () |
Test Div function. More... | |
void | TestModReturnsZero () |
Test Mod function. More... | |
void | TestModReturnsNonZero () |
Test Mod function. More... | |
Additional Inherited Members | |
![]() | |
enum | TestDuration { QUICK = 1 , EXTENSIVE = 2 , TAKES_FOREVER = 3 } |
How long the test takes to execute. More... | |
Implements tests for the Length class.
Definition at line 65 of file length-test-suite.cc.
|
inline |
Constructor.
Definition at line 71 of file length-test-suite.cc.
|
virtualdefault |
Destructor.
|
inlineprotected |
Helper function to compare results with false.
condition | The boolean condition to test |
msg | The message to print if the test fails |
Definition at line 87 of file length-test-suite.cc.
References NS_TEST_ASSERT_MSG_EQ.
Referenced by TestIsEqualReturnsFalse(), TestIsEqualWithToleranceReturnsFalse(), TestIsGreaterReturnsFalse(), TestIsGreaterWithToleranceReturnsFalse(), TestIsLessReturnsFalse(), TestIsLessWithToleranceReturnsFalse(), TestIsNotEqualReturnsFalse(), TestIsNotEqualWithToleranceReturnsFalse(), TestOperatorEqualsReturnsFalse(), TestOperatorGreaterOrEqualReturnsFalse(), TestOperatorGreaterThanReturnsFalse(), TestOperatorLessOrEqualReturnsFalse(), TestOperatorLessThanReturnsFalse(), TestOperatorNotEqualsReturnsFalse(), and TestTryParseReturnsFalse().
|
inlineprotected |
Helper function to compare results with true.
condition | The boolean condition to test |
msg | The message to print if the test fails |
Definition at line 98 of file length-test-suite.cc.
References NS_TEST_ASSERT_MSG_EQ.
Referenced by TestDivideLengthByLengthReturnsNaN(), TestIsEqualReturnsTrue(), TestIsEqualWithToleranceReturnsTrue(), TestIsGreaterReturnsTrue(), TestIsLessReturnsTrue(), TestIsNotEqualReturnsTrue(), TestIsNotEqualWithToleranceReturnsTrue(), TestOperatorEqualsReturnsTrue(), TestOperatorGreaterOrEqualReturnsTrue(), TestOperatorGreaterThanReturnsTrue(), TestOperatorLessOrEqualReturnsTrue(), TestOperatorLessThanReturnsTrue(), TestOperatorNotEqualsReturnsTrue(), and TestTryParseReturnsTrue().
|
privatevirtual |
Implementation to actually run this TestCase.
Subclasses should override this method to conduct their tests.
Implements ns3::TestCase.
Definition at line 1386 of file length-test-suite.cc.
References TestAddingLengthAndQuantity(), TestAddingQuantityAndLength(), TestAddingTwoLengths(), TestBuilderFreeFunctions(), TestConstructLengthFromCentiMeterString(), TestConstructLengthFromFootString(), TestConstructLengthFromInchString(), TestConstructLengthFromKiloMeterString(), TestConstructLengthFromMeterString(), TestConstructLengthFromMicroMeterString(), TestConstructLengthFromMileString(), TestConstructLengthFromMilliMeterString(), TestConstructLengthFromNanoMeterString(), TestConstructLengthFromNauticalMileString(), TestConstructLengthFromQuantity(), TestConstructLengthFromSIUnits(), TestConstructLengthFromUSUnits(), TestConstructLengthFromYardString(), TestCopyAssignment(), TestDefaultLengthIsZero(), TestDivideLengthByLength(), TestDivideLengthByLengthReturnsNaN(), TestDivideLengthByScalar(), TestDivReturnsCorrectRemainder(), TestDivReturnsCorrectResult(), TestDivReturnsZeroRemainder(), TestIsEqualReturnsFalse(), TestIsEqualReturnsTrue(), TestIsEqualWithToleranceReturnsFalse(), TestIsEqualWithToleranceReturnsTrue(), TestIsGreaterReturnsFalse(), TestIsGreaterReturnsTrue(), TestIsGreaterWithToleranceReturnsFalse(), TestIsLessReturnsFalse(), TestIsLessReturnsTrue(), TestIsLessWithToleranceReturnsFalse(), TestIsNotEqualReturnsFalse(), TestIsNotEqualReturnsTrue(), TestIsNotEqualWithToleranceReturnsFalse(), TestIsNotEqualWithToleranceReturnsTrue(), TestLengthCopyConstructor(), TestLengthMoveConstructor(), TestModReturnsNonZero(), TestModReturnsZero(), TestMoveAssignment(), TestMultiplyLengthByScalar(), TestMultiplyScalarByLength(), TestOperatorEqualsReturnsFalse(), TestOperatorEqualsReturnsTrue(), TestOperatorGreaterOrEqualReturnsFalse(), TestOperatorGreaterOrEqualReturnsTrue(), TestOperatorGreaterThanReturnsFalse(), TestOperatorGreaterThanReturnsTrue(), TestOperatorLessOrEqualReturnsFalse(), TestOperatorLessOrEqualReturnsTrue(), TestOperatorLessThanReturnsFalse(), TestOperatorLessThanReturnsTrue(), TestOperatorNotEqualsReturnsFalse(), TestOperatorNotEqualsReturnsTrue(), TestOutputStreamOperator(), TestQuantityAssignment(), TestSerializeLengthWithUnit(), TestSubtractingLengthAndQuantity(), TestSubtractingQuantityAndLength(), TestSubtractingTwoLengths(), TestTryParseReturnsFalse(), and TestTryParseReturnsTrue().
|
private |
Test arithmetic operations.
Definition at line 1139 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and test-ns3::result.
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1155 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and test-ns3::result.
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1120 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and test-ns3::result.
Referenced by DoRun().
|
private |
Test constructing length objects using the builder free functions.
Definition at line 619 of file length-test-suite.cc.
References ns3::CentiMeters(), ns3::Feet(), ns3::Inches(), ns3::KiloMeters(), ns3::Meters(), ns3::MicroMeters(), ns3::Miles(), ns3::MilliMeters(), ns3::NanoMeters(), ns3::NauticalMiles(), NS_TEST_ASSERT_MSG_EQ, and ns3::Yards().
Referenced by DoRun().
|
private |
Test that a length object can be constructed from a string.
Definition at line 486 of file length-test-suite.cc.
References TestConstructLengthFromString().
Referenced by DoRun().
|
private |
Test that a length object can be constructed from a string.
Definition at line 529 of file length-test-suite.cc.
References TestConstructLengthFromString().
Referenced by DoRun().
|
private |
Test that a length object can be constructed from a string.
Definition at line 518 of file length-test-suite.cc.
References TestConstructLengthFromString().
Referenced by DoRun().
|
private |
Test that a length object can be constructed from a string.
Definition at line 498 of file length-test-suite.cc.
References TestConstructLengthFromString().
Referenced by DoRun().
|
private |
Test that a length object can be constructed from a string.
Definition at line 442 of file length-test-suite.cc.
References TestConstructLengthFromString().
Referenced by DoRun().
|
private |
Test that a length object can be constructed from a string.
Definition at line 462 of file length-test-suite.cc.
References TestConstructLengthFromString().
Referenced by DoRun().
|
private |
Test that a length object can be constructed from a string.
Definition at line 551 of file length-test-suite.cc.
References TestConstructLengthFromString().
Referenced by DoRun().
|
private |
Test that a length object can be constructed from a string.
Definition at line 474 of file length-test-suite.cc.
References TestConstructLengthFromString().
Referenced by DoRun().
|
private |
Test that a length object can be constructed from a string.
Definition at line 451 of file length-test-suite.cc.
References TestConstructLengthFromString().
Referenced by DoRun().
|
private |
Test that a length object can be constructed from a string.
Definition at line 509 of file length-test-suite.cc.
References TestConstructLengthFromString().
Referenced by DoRun().
|
private |
Test that a Length object can be constructed from a Quantity object.
Definition at line 331 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and ns3::Length::Quantity::Value().
Referenced by DoRun().
|
private |
Test that a Length object constructed from various SI units has the correct value in meters.
Definition at line 342 of file length-test-suite.cc.
References ns3::Length::GetDouble(), and NS_TEST_ASSERT_MSG_EQ.
Referenced by DoRun().
|
private |
Test that a length object can be constructed from a string.
unitValue | //!< Value to test. |
meterValue | //!< Reference value [m]. |
tolerance | //!< Tolerance. |
symbols | //!< Unit symbols. |
Definition at line 416 of file length-test-suite.cc.
References ns3::Length::GetDouble(), and NS_TEST_ASSERT_MSG_EQ_TOL.
Referenced by TestConstructLengthFromCentiMeterString(), TestConstructLengthFromFootString(), TestConstructLengthFromInchString(), TestConstructLengthFromKiloMeterString(), TestConstructLengthFromMeterString(), TestConstructLengthFromMicroMeterString(), TestConstructLengthFromMileString(), TestConstructLengthFromMilliMeterString(), TestConstructLengthFromNanoMeterString(), TestConstructLengthFromNauticalMileString(), and TestConstructLengthFromYardString().
|
private |
Test that a Length object constructed from various US units has the correct value in meters.
Definition at line 367 of file length-test-suite.cc.
References ns3::Length::GetDouble(), and NS_TEST_ASSERT_MSG_EQ_TOL.
Referenced by DoRun().
|
private |
Test that a length object can be constructed from a string.
Definition at line 540 of file length-test-suite.cc.
References TestConstructLengthFromString().
Referenced by DoRun().
|
private |
Test that a length object can be updated by assignment from another length object.
Definition at line 696 of file length-test-suite.cc.
References ns3::Length::GetDouble(), and NS_TEST_ASSERT_MSG_EQ.
Referenced by DoRun().
|
private |
Test that a default constructed Length object has a value of 0.
Definition at line 323 of file length-test-suite.cc.
References ns3::Length::GetDouble(), and NS_TEST_ASSERT_MSG_EQ.
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1270 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and test-ns3::result.
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1291 of file length-test-suite.cc.
References AssertTrue(), and test-ns3::result.
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1254 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and test-ns3::result.
Referenced by DoRun().
|
private |
Test Div function.
Definition at line 1341 of file length-test-suite.cc.
References ns3::Div(), ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and test-ns3::result.
Referenced by DoRun().
|
private |
Test Div function.
Definition at line 1305 of file length-test-suite.cc.
References ns3::Div(), NS_TEST_ASSERT_MSG_EQ, and test-ns3::result.
Referenced by DoRun().
|
private |
Test Div function.
Definition at line 1321 of file length-test-suite.cc.
References ns3::Div(), ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and test-ns3::result.
Referenced by DoRun().
|
private |
Test reading length object from a stream produces the expected length value.
Definition at line 913 of file length-test-suite.cc.
References ns3::Length::GetDouble(), and NS_TEST_ASSERT_MSG_EQ.
|
private |
Test member comparison operators.
Definition at line 748 of file length-test-suite.cc.
References AssertFalse(), and ns3::Length::IsEqual().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 738 of file length-test-suite.cc.
References AssertTrue(), and ns3::Length::IsEqual().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 771 of file length-test-suite.cc.
References AssertFalse(), and ns3::Length::IsEqual().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 758 of file length-test-suite.cc.
References AssertTrue(), and ns3::Length::IsEqual().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 878 of file length-test-suite.cc.
References AssertFalse(), and ns3::Length::IsGreater().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 868 of file length-test-suite.cc.
References AssertTrue(), and ns3::Length::IsGreater().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 888 of file length-test-suite.cc.
References AssertFalse(), and ns3::Length::IsGreater().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 844 of file length-test-suite.cc.
References AssertFalse(), and ns3::Length::IsLess().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 832 of file length-test-suite.cc.
References AssertTrue(), and ns3::Length::IsLess().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 856 of file length-test-suite.cc.
References AssertFalse(), and ns3::Length::IsLess().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 796 of file length-test-suite.cc.
References AssertFalse(), and ns3::Length::IsNotEqual().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 784 of file length-test-suite.cc.
References AssertTrue(), and ns3::Length::IsNotEqual().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 820 of file length-test-suite.cc.
References AssertFalse(), and ns3::Length::IsNotEqual().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 808 of file length-test-suite.cc.
References AssertTrue(), and ns3::Length::IsNotEqual().
Referenced by DoRun().
|
private |
Test that the value from one length is copied to another using the copy constructor.
Definition at line 392 of file length-test-suite.cc.
References ns3::Length::GetDouble(), and NS_TEST_ASSERT_MSG_EQ.
Referenced by DoRun().
|
private |
Test that the value from one length is copied to another using the move constructor.
Definition at line 404 of file length-test-suite.cc.
References ns3::Length::GetDouble(), and NS_TEST_ASSERT_MSG_EQ.
Referenced by DoRun().
|
private |
Generic function for testing serialization of a Length object in various units.
T | Type of the length unit that should be output during serialization |
l | Length object to serialize |
unit | Unit that the length value will be converted to before serialization |
expectedOutput | Expected result of the serialization |
context | Included in the error message if the test fails |
Definition at line 931 of file length-test-suite.cc.
References ns3::Length::As(), and NS_TEST_ASSERT_MSG_EQ.
Referenced by TestSerializeLengthWithUnit().
|
private |
Test Mod function.
Definition at line 1373 of file length-test-suite.cc.
References ns3::Mod(), NS_TEST_ASSERT_MSG_EQ, and test-ns3::result.
Referenced by DoRun().
|
private |
Test Mod function.
Definition at line 1361 of file length-test-suite.cc.
References ns3::Mod(), NS_TEST_ASSERT_MSG_EQ, and test-ns3::result.
Referenced by DoRun().
|
private |
Test that a length object can be updated by assignment from a moved length object.
Definition at line 710 of file length-test-suite.cc.
References ns3::Length::GetDouble(), and NS_TEST_ASSERT_MSG_EQ.
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1222 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and test-ns3::result.
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1238 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and test-ns3::result.
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 978 of file length-test-suite.cc.
References AssertFalse().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 966 of file length-test-suite.cc.
References AssertTrue().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 1108 of file length-test-suite.cc.
References AssertFalse().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 1092 of file length-test-suite.cc.
References AssertTrue().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 1080 of file length-test-suite.cc.
References AssertFalse().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 1068 of file length-test-suite.cc.
References AssertTrue().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 1056 of file length-test-suite.cc.
References AssertFalse().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 1040 of file length-test-suite.cc.
References AssertTrue().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 1028 of file length-test-suite.cc.
References AssertFalse().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 1016 of file length-test-suite.cc.
References AssertTrue().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 1003 of file length-test-suite.cc.
References AssertFalse().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 990 of file length-test-suite.cc.
References AssertTrue().
Referenced by DoRun().
|
private |
Test writing length object to a stream produces the expected output.
Definition at line 900 of file length-test-suite.cc.
References NS_TEST_ASSERT_MSG_EQ.
Referenced by DoRun().
|
private |
Test that a length object can be updated by assignment from a quantity.
Definition at line 724 of file length-test-suite.cc.
References NS_TEST_ASSERT_MSG_EQ.
Referenced by DoRun().
|
private |
Test serializing a length object to all of the supported unit types.
Definition at line 948 of file length-test-suite.cc.
References TestLengthSerialization().
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1190 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and test-ns3::result.
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1206 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and test-ns3::result.
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1171 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and test-ns3::result.
Referenced by DoRun().
|
private |
Test the TryParse function returns false on bad input.
Definition at line 652 of file length-test-suite.cc.
References AssertFalse(), and test-ns3::result.
Referenced by DoRun().
|
private |
Test the TryParse function returns true on success.
Definition at line 663 of file length-test-suite.cc.
References AssertTrue(), ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ_TOL, test-ns3::result, and test-ns3::tests.
Referenced by DoRun().