Implements tests for the Length class. More...
Public Member Functions | |
| LengthTestCase () | |
| Constructor. | |
| ~LengthTestCase () override=default | |
| Destructor. | |
| Public Member Functions inherited from ns3::TestCase | |
| TestCase (const TestCase &)=delete | |
| Caller graph was not generated because of its size. | |
| virtual | ~TestCase () |
| Destructor. | |
| std::string | GetName () const |
| TestCase & | operator= (const TestCase &)=delete |
Protected Member Functions | |
| void | AssertFalse (bool condition, std::string msg) |
| Helper function to compare results with false. | |
| void | AssertTrue (bool condition, std::string msg) |
| Helper function to compare results with true. | |
| Protected Member Functions inherited from ns3::TestCase | |
| TestCase (std::string name) | |
| Constructor. | |
| void | AddTestCase (TestCase *testCase, Duration duration=Duration::QUICK) |
| Add an individual child TestCase to this test suite. | |
| TestCase * | GetParent () const |
| Get the parent of this TestCase. | |
| bool | IsStatusFailure () const |
| Check if any tests failed. | |
| bool | IsStatusSuccess () const |
| Check if all tests passed. | |
| void | SetDataDir (std::string directory) |
| Set the data directory where reference trace files can be found. | |
| 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. | |
| bool | MustAssertOnFailure () const |
| Check if this run should assert on failure. | |
| bool | MustContinueOnFailure () const |
| Check if this run should continue on failure. | |
| std::string | CreateDataDirFilename (std::string filename) |
| Construct the full path to a file in the data directory. | |
| std::string | CreateTempDirFilename (std::string filename) |
| Construct the full path to a file in a temporary directory. | |
Private Member Functions | |
| void | DoRun () override |
| Call graph was not generated because of its size. | |
| void | TestConstructLengthFromQuantity () |
| Test that a Length object can be constructed from a Quantity object. | |
| void | TestConstructLengthFromSIUnits () |
| Test that a Length object constructed from various SI units has the correct value in meters. | |
| 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. | |
| void | TestConstructLengthFromUSUnits () |
| Test that a Length object constructed from various US units has the correct value in meters. | |
| void | TestCopyAssignment () |
| Test that a length object can be updated by assignment from another length object. | |
| void | TestDefaultLengthIsZero () |
| Test that a default constructed Length object has a value of 0. | |
| void | TestInputStreamOperator () |
| Test reading length object from a stream produces the expected length value. | |
| void | TestLengthCopyConstructor () |
| Test that the value from one length is copied to another using the copy constructor. | |
| void | TestLengthMoveConstructor () |
| Test that the value from one length is copied to another using the move constructor. | |
| 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. | |
| void | TestMoveAssignment () |
| Test that a length object can be updated by assignment from a moved length object. | |
| void | TestOutputStreamOperator () |
| Test writing length object to a stream produces the expected output. | |
| void | TestQuantityAssignment () |
| Test that a length object can be updated by assignment from a quantity. | |
| void | TestSerializeLengthWithUnit () |
| Test serializing a length object to all of the supported unit types. | |
| void | TestTryParseReturnsFalse () |
| Test the TryParse function returns false on bad input. | |
| void | TestTryParseReturnsTrue () |
| Test the TryParse function returns true on success. | |
| void | TestConstructLengthFromMeterString () |
| Test that a length object can be constructed from a string. | |
| void | TestConstructLengthFromNanoMeterString () |
| Test that a length object can be constructed from a string. | |
| void | TestConstructLengthFromMicroMeterString () |
| Test that a length object can be constructed from a string. | |
| void | TestConstructLengthFromMilliMeterString () |
| Test that a length object can be constructed from a string. | |
| void | TestConstructLengthFromCentiMeterString () |
| Test that a length object can be constructed from a string. | |
| void | TestConstructLengthFromKiloMeterString () |
| Test that a length object can be constructed from a string. | |
| void | TestConstructLengthFromNauticalMileString () |
| Test that a length object can be constructed from a string. | |
| void | TestConstructLengthFromInchString () |
| Test that a length object can be constructed from a string. | |
| void | TestConstructLengthFromFootString () |
| Test that a length object can be constructed from a string. | |
| void | TestConstructLengthFromYardString () |
| Test that a length object can be constructed from a string. | |
| void | TestConstructLengthFromMileString () |
| Test that a length object can be constructed from a string. | |
| void | TestBuilderFreeFunctions () |
| Test constructing length objects using the builder free functions. | |
| void | TestIsEqualReturnsTrue () |
| Test member comparison operators. | |
| void | TestIsEqualReturnsFalse () |
| Test member comparison operators. | |
| void | TestIsEqualWithToleranceReturnsTrue () |
| Test member comparison operators. | |
| void | TestIsEqualWithToleranceReturnsFalse () |
| Test member comparison operators. | |
| void | TestIsNotEqualReturnsTrue () |
| Test member comparison operators. | |
| void | TestIsNotEqualReturnsFalse () |
| Test member comparison operators. | |
| void | TestIsNotEqualWithToleranceReturnsTrue () |
| Test member comparison operators. | |
| void | TestIsNotEqualWithToleranceReturnsFalse () |
| Test member comparison operators. | |
| void | TestIsLessReturnsTrue () |
| Test member comparison operators. | |
| void | TestIsLessReturnsFalse () |
| Test member comparison operators. | |
| void | TestIsLessWithToleranceReturnsFalse () |
| Test member comparison operators. | |
| void | TestIsGreaterReturnsTrue () |
| Test member comparison operators. | |
| void | TestIsGreaterReturnsFalse () |
| Test member comparison operators. | |
| void | TestIsGreaterWithToleranceReturnsFalse () |
| Test member comparison operators. | |
| void | TestOperatorEqualsReturnsTrue () |
| Test free function comparison operators. | |
| void | TestOperatorEqualsReturnsFalse () |
| Test free function comparison operators. | |
| void | TestOperatorNotEqualsReturnsTrue () |
| Test free function comparison operators. | |
| void | TestOperatorNotEqualsReturnsFalse () |
| Test free function comparison operators. | |
| void | TestOperatorLessThanReturnsTrue () |
| Test free function comparison operators. | |
| void | TestOperatorLessThanReturnsFalse () |
| Test free function comparison operators. | |
| void | TestOperatorLessOrEqualReturnsTrue () |
| Test free function comparison operators. | |
| void | TestOperatorLessOrEqualReturnsFalse () |
| Test free function comparison operators. | |
| void | TestOperatorGreaterThanReturnsTrue () |
| Test free function comparison operators. | |
| void | TestOperatorGreaterThanReturnsFalse () |
| Test free function comparison operators. | |
| void | TestOperatorGreaterOrEqualReturnsTrue () |
| Test free function comparison operators. | |
| void | TestOperatorGreaterOrEqualReturnsFalse () |
| Test free function comparison operators. | |
| void | TestAddingTwoLengths () |
| Test arithmetic operations. | |
| void | TestAddingLengthAndQuantity () |
| Test arithmetic operations. | |
| void | TestAddingQuantityAndLength () |
| Test arithmetic operations. | |
| void | TestSubtractingTwoLengths () |
| Test arithmetic operations. | |
| void | TestSubtractingLengthAndQuantity () |
| Test arithmetic operations. | |
| void | TestSubtractingQuantityAndLength () |
| Test arithmetic operations. | |
| void | TestMultiplyLengthByScalar () |
| Test arithmetic operations. | |
| void | TestMultiplyScalarByLength () |
| Test arithmetic operations. | |
| void | TestDivideLengthByScalar () |
| Test arithmetic operations. | |
| void | TestDivideLengthByLength () |
| Test arithmetic operations. | |
| void | TestDivideLengthByLengthReturnsNaN () |
| Test arithmetic operations. | |
| void | TestDivReturnsCorrectResult () |
| Test Div function. | |
| void | TestDivReturnsZeroRemainder () |
| Test Div function. | |
| void | TestDivReturnsCorrectRemainder () |
| Test Div function. | |
| void | TestModReturnsZero () |
| Test Mod function. | |
| void | TestModReturnsNonZero () |
| Test Mod function. | |
Additional Inherited Members | |
| Public Types inherited from ns3::TestCase | |
| enum class | Duration { QUICK = 1 , EXTENSIVE = 2 , TAKES_FOREVER = 3 } |
| How long the test takes to execute. More... | |
Implements tests for the Length class.
Definition at line 51 of file length-test-suite.cc.
|
inline |
Constructor.
Definition at line 57 of file length-test-suite.cc.
References ns3::TestCase::TestCase().
|
overridedefault |
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 74 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 85 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().
|
overrideprivatevirtual |
Call graph was not generated because of its size.
Implements ns3::TestCase.
Definition at line 1321 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 1099 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and result.
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1113 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and result.
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1083 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and result.
Referenced by DoRun().
|
private |
Test constructing length objects using the builder free functions.
Definition at line 620 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 482 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 519 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 495 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 436 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 456 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 549 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 469 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 444 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 507 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 321 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 333 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 410 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 358 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 539 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 692 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 313 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 1213 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and result.
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1230 of file length-test-suite.cc.
References AssertTrue(), and result.
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1199 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and result.
Referenced by DoRun().
|
private |
Test Div function.
Definition at line 1278 of file length-test-suite.cc.
References ns3::Div(), NS_TEST_ASSERT_MSG_EQ, remainder, and result.
Referenced by DoRun().
|
private |
Test Div function.
Definition at line 1243 of file length-test-suite.cc.
References ns3::Div(), NS_TEST_ASSERT_MSG_EQ, and result.
Referenced by DoRun().
|
private |
Test Div function.
Definition at line 1258 of file length-test-suite.cc.
References ns3::Div(), NS_TEST_ASSERT_MSG_EQ, remainder, and result.
Referenced by DoRun().
|
private |
Test reading length object from a stream produces the expected length value.
Definition at line 895 of file length-test-suite.cc.
References ns3::Length::GetDouble(), and NS_TEST_ASSERT_MSG_EQ.
|
private |
Test member comparison operators.
Definition at line 741 of file length-test-suite.cc.
References AssertFalse(), and ns3::Length::IsEqual().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 731 of file length-test-suite.cc.
References AssertTrue(), and ns3::Length::IsEqual().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 763 of file length-test-suite.cc.
References AssertFalse(), and ns3::Length::IsEqual().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 751 of file length-test-suite.cc.
References AssertTrue(), and ns3::Length::IsEqual().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 863 of file length-test-suite.cc.
References AssertFalse().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 854 of file length-test-suite.cc.
References AssertTrue(), and ns3::Length::IsGreater().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 872 of file length-test-suite.cc.
References AssertFalse().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 832 of file length-test-suite.cc.
References AssertFalse(), and ns3::Length::IsLess().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 821 of file length-test-suite.cc.
References AssertTrue(), and ns3::Length::IsLess().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 843 of file length-test-suite.cc.
References AssertFalse(), and ns3::Length::IsLess().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 786 of file length-test-suite.cc.
References AssertFalse(), and ns3::Length::IsNotEqual().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 775 of file length-test-suite.cc.
References AssertTrue(), and ns3::Length::IsNotEqual().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 809 of file length-test-suite.cc.
References AssertFalse(), and ns3::Length::IsNotEqual().
Referenced by DoRun().
|
private |
Test member comparison operators.
Definition at line 797 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 386 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 399 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 912 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 1309 of file length-test-suite.cc.
References ns3::Mod(), NS_TEST_ASSERT_MSG_EQ, and result.
Referenced by DoRun().
|
private |
Test Mod function.
Definition at line 1298 of file length-test-suite.cc.
References ns3::Mod(), NS_TEST_ASSERT_MSG_EQ, and result.
Referenced by DoRun().
|
private |
Test that a length object can be updated by assignment from a moved length object.
Definition at line 705 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 1171 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and result.
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1185 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and result.
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 956 of file length-test-suite.cc.
References AssertFalse().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 945 of file length-test-suite.cc.
References AssertTrue().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 1072 of file length-test-suite.cc.
References AssertFalse().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 1058 of file length-test-suite.cc.
References AssertTrue().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 1047 of file length-test-suite.cc.
References AssertFalse().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 1036 of file length-test-suite.cc.
References AssertTrue().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 1025 of file length-test-suite.cc.
References AssertFalse().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 1011 of file length-test-suite.cc.
References AssertTrue().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 1000 of file length-test-suite.cc.
References AssertFalse().
Referenced by DoRun().
|
private |
Test free function comparison operators.
Definition at line 989 of file length-test-suite.cc.
References AssertTrue().
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 967 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 883 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 718 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 927 of file length-test-suite.cc.
References TestLengthSerialization().
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1143 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and result.
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1157 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and result.
Referenced by DoRun().
|
private |
Test arithmetic operations.
Definition at line 1127 of file length-test-suite.cc.
References ns3::Length::GetDouble(), NS_TEST_ASSERT_MSG_EQ, and result.
Referenced by DoRun().
|
private |
Test the TryParse function returns false on bad input.
Definition at line 655 of file length-test-suite.cc.
References AssertFalse(), and ns3::Length::TryParse().
Referenced by DoRun().
|
private |
Test the TryParse function returns true on success.
Definition at line 663 of file length-test-suite.cc.
References AssertTrue(), NS_TEST_ASSERT_MSG_EQ_TOL, and ns3::Length::TryParse().
Referenced by DoRun().