A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::AttributeTestCase< T > Class Template Reference
+ Inheritance diagram for ns3::AttributeTestCase< T >:
+ Collaboration diagram for ns3::AttributeTestCase< T >:

Public Member Functions

 AttributeTestCase (std::string description)
virtual ~AttributeTestCase ()
- Public Member Functions inherited from ns3::TestCase
virtual ~TestCase ()

Private Member Functions

bool CheckGetCodePaths (Ptr< Object > p, std::string attributeName, std::string expectedString, T expectedValue)
virtual void DoRun (void)
template<>
void DoRun (void)
template<>
void DoRun (void)
template<>
void DoRun (void)
template<>
void DoRun (void)
template<>
void DoRun (void)

Additional Inherited Members

- Protected Member Functions inherited from ns3::TestCase
 TestCase (std::string name)
void AddTestCase (TestCase *testCase)
 Add an individual test case to this test suite.
std::string CreateDataDirFilename (std::string filename)
std::string CreateTempDirFilename (std::string filename)
bool GetErrorStatus (void) const NS_DEPRECATED
std::string GetName (void) const
bool IsStatusFailure (void) const
bool IsStatusSuccess (void) const
bool MustAssertOnFailure (void) const
bool MustContinueOnFailure (void) const
void ReportTestFailure (std::string cond, std::string actual, std::string limit, std::string message, std::string file, int32_t line)
void SetDataDir (std::string directory)

Detailed Description

template<typename T>
class ns3::AttributeTestCase< T >

Definition at line 255 of file attribute-test-suite.cc.

Constructor & Destructor Documentation

template<typename T >
ns3::AttributeTestCase< T >::AttributeTestCase ( std::string  description)

Definition at line 268 of file attribute-test-suite.cc.

template<typename T >
ns3::AttributeTestCase< T >::~AttributeTestCase ( )
virtual

Definition at line 274 of file attribute-test-suite.cc.

Member Function Documentation

template<typename T >
bool ns3::AttributeTestCase< T >::CheckGetCodePaths ( Ptr< Object p,
std::string  attributeName,
std::string  expectedString,
expectedValue 
)
private

Definition at line 279 of file attribute-test-suite.cc.

References ns3::StringValue::Get(), and ns3::ObjectBase::GetAttributeFailSafe().

+ Here is the call graph for this function:

template<typename T >
virtual void ns3::AttributeTestCase< T >::DoRun ( void  )
privatevirtual
template<>
void ns3::AttributeTestCase< BooleanValue >::DoRun ( void  )
private
template<>
void ns3::AttributeTestCase< IntegerValue >::DoRun ( void  )
private

Definition at line 385 of file attribute-test-suite.cc.

References NS_TEST_ASSERT_MSG_EQ, NS_TEST_ASSERT_MSG_NE, and ns3::ObjectBase::SetAttributeFailSafe().

+ Here is the call graph for this function:

template<>
void ns3::AttributeTestCase< UintegerValue >::DoRun ( void  )
private

Definition at line 495 of file attribute-test-suite.cc.

References NS_TEST_ASSERT_MSG_EQ, NS_TEST_ASSERT_MSG_NE, and ns3::ObjectBase::SetAttributeFailSafe().

+ Here is the call graph for this function:

template<>
void ns3::AttributeTestCase< DoubleValue >::DoRun ( void  )
private

Definition at line 566 of file attribute-test-suite.cc.

References NS_TEST_ASSERT_MSG_EQ, NS_TEST_ASSERT_MSG_NE, and ns3::ObjectBase::SetAttributeFailSafe().

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: