Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
BufferMetadata_test Class Reference

Description

Test:
verify the properties of the BufferMetadata records used internally within BufferProvider to attach additional organisational data to the exposed buffers.

Definition at line 80 of file buffer-metadata-test.cpp.

Private Member Functions

virtual void run (Arg)
 
bool ensure_proper_fixture ()
 
void verifyBasicProperties ()
 
void verifyStandardCase ()
 
void verifyStateMachine ()
 

Private Attributes

size_t SIZE_A {0}
 
size_t SIZE_B {0}
 
unique_ptr< BufferMetadatameta_
 common Metadata table to be tested
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 89 of file buffer-metadata-test.cpp.

References BufferMetadata_test::ensure_proper_fixture(), BufferMetadata_test::SIZE_A, BufferMetadata_test::SIZE_B, BufferMetadata_test::verifyBasicProperties(), BufferMetadata_test::verifyStandardCase(), and BufferMetadata_test::verifyStateMachine().

+ Here is the call graph for this function:

◆ ensure_proper_fixture()

bool ensure_proper_fixture ( )
inlineprivate

Definition at line 103 of file buffer-metadata-test.cpp.

References BufferMetadata_test::meta_, BufferMetadata_test::SIZE_A, and BufferMetadata_test::SIZE_B.

Referenced by BufferMetadata_test::run().

+ Here is the caller graph for this function:

◆ verifyBasicProperties()

void verifyBasicProperties ( )
inlineprivate

Definition at line 116 of file buffer-metadata-test.cpp.

References Entry::access(), steam::engine::EMITTED, steam::engine::FREE, steam::engine::LOCKED, Entry::mark(), BufferMetadata_test::meta_, steam::engine::NIL, Key::parentKey(), BufferMetadata_test::SIZE_A, BufferMetadata_test::SIZE_B, Entry::state(), and VERIFY_ERROR.

Referenced by BufferMetadata_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ verifyStandardCase()

void verifyStandardCase ( )
inlineprivate
Test:
simulate a standard buffer provider usage cycle
Note
to get the big picture, please refer to BufferProviderProtocol_test::verifyStandardCase() This testcase here performs precisely the metadata related operations necessary to carry out the standard case outlined at a higher level in the aforementioned test.

Definition at line 200 of file buffer-metadata-test.cpp.

References Entry::access(), steam::engine::BLOCKED, steam::engine::EMITTED, steam::engine::FREE, TestFrame::isAlive(), TestFrame::isDead(), Key::localTag(), steam::engine::LOCKED, Entry::mark(), BufferMetadata_test::meta_, BufferMetadata_test::SIZE_B, Entry::state(), and steam::engine::test::testData().

Referenced by BufferMetadata_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ verifyStateMachine()

void verifyStateMachine ( )
inlineprivate

Definition at line 318 of file buffer-metadata-test.cpp.

References steam::engine::BLOCKED, steam::engine::EMITTED, steam::engine::FREE, steam::engine::LOCKED, BufferMetadata_test::meta_, steam::engine::NIL, BufferMetadata_test::SIZE_A, and VERIFY_ERROR.

Referenced by BufferMetadata_test::run().

+ Here is the caller graph for this function:

Member Data Documentation

◆ SIZE_A

◆ SIZE_B

◆ meta_

+ Inheritance diagram for BufferMetadata_test:
+ Collaboration diagram for BufferMetadata_test:

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