FOSSology  4.7.1
Open Source License Compliance by Open Source Software
ReuserTypesTest Class Reference
Inheritance diagram for ReuserTypesTest:
Inheritance graph
Collaboration diagram for ReuserTypesTest:
Collaboration graph

Protected Member Functions

void testReuserStateMutation ()
 ReuserState stores and mutates the agent id correctly. More...
 
void testReuseModeFlags ()
 Reuse mode flag constants are distinct and combine correctly. More...
 
void testItemTreeBoundsDefaults ()
 ItemTreeBounds is zero-initialised when value-initialised. More...
 

Private Member Functions

 CPPUNIT_TEST_SUITE (ReuserTypesTest)
 
 CPPUNIT_TEST (testReuserStateMutation)
 
 CPPUNIT_TEST (testReuseModeFlags)
 
 CPPUNIT_TEST (testItemTreeBoundsDefaults)
 
 CPPUNIT_TEST_SUITE_END ()
 

Detailed Description

Definition at line 20 of file test_types.cc.

Member Function Documentation

◆ testItemTreeBoundsDefaults()

void ReuserTypesTest::testItemTreeBoundsDefaults ( )
inlineprotected

ItemTreeBounds is zero-initialised when value-initialised.

Ensures that a default-constructed ItemTreeBounds has all numeric members set to 0 so that callers can safely detect an uninitialised struct.

Definition at line 75 of file test_types.cc.

◆ testReuseModeFlags()

void ReuserTypesTest::testReuseModeFlags ( )
inlineprotected

Reuse mode flag constants are distinct and combine correctly.

Guards against accidental bit-overlap between REUSE_ENHANCED, REUSE_MAIN, REUSE_CONF and REUSE_COPYRIGHT, and verifies that OR-combining all flags sets every individual bit.

Definition at line 50 of file test_types.cc.

◆ testReuserStateMutation()

void ReuserTypesTest::testReuserStateMutation ( )
inlineprotected

ReuserState stores and mutates the agent id correctly.

Verifies that getAgentId returns the value passed to the constructor and that setAgentId updates it.

Definition at line 35 of file test_types.cc.


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