EX-Display
EX-Display
Loading...
Searching...
No Matches
test_RowFormatting.cpp File Reference
#include "test/mocks/MockColourDisplay.h"
#include <gtest/gtest.h>
Include dependency graph for test_RowFormatting.cpp:

Classes

class  RowFormattingTests
 

Functions

 MATCHER_P (ExpectedRowAttributes, expected, "")
 Define a custom matcher for the RowAttributes struct.
 
 TEST_F (RowFormattingTests, TestNoModifiers)
 Test row formatting using no modifiers.
 
 TEST_F (RowFormattingTests, TestUnderline)
 Test row formatting using underline modifier.
 
 TEST_F (RowFormattingTests, TestLine)
 Test row formatting using line modifier.
 
 TEST_F (RowFormattingTests, TestAlwaysTicker)
 Test row formatting using alwaysTicker modifier.
 
 TEST_F (RowFormattingTests, TestNeverTicker)
 Test row formatting using neverTicker modifier.
 
 TEST_F (RowFormattingTests, TestAttributeSanitiser)
 Test row attribute santiser to ensure returned attributes are sane when combined.
 
 TEST_F (RowFormattingTests, TestInvalidModifiers)
 Test various invalid modifiers and modifier positions and ensure they are ignored.
 
 TEST_F (RowFormattingTests, OneColour)
 Test one row colour with no other modifiers.
 
 TEST_F (RowFormattingTests, OneColourUnderlined)
 Test one row colour with underline.
 
 TEST_F (RowFormattingTests, ColouredLine)
 Test a coloured horizontal line.
 
 TEST_F (RowFormattingTests, OneColourChange)
 Test text with one colour change in the middle.
 
 TEST_F (RowFormattingTests, RedundantColourChange)
 Test redundant colour change - two changes, no text between.
 
 TEST_F (RowFormattingTests, TestInvalidColours)
 Test invalid colour codes and position vs. modifier.
 

Function Documentation

◆ MATCHER_P()

MATCHER_P ( ExpectedRowAttributes  ,
expected  ,
""   
)

Define a custom matcher for the RowAttributes struct.

◆ TEST_F() [1/13]

TEST_F ( RowFormattingTests  ,
ColouredLine   
)

Test a coloured horizontal line.

◆ TEST_F() [2/13]

TEST_F ( RowFormattingTests  ,
OneColour   
)

Test one row colour with no other modifiers.

◆ TEST_F() [3/13]

TEST_F ( RowFormattingTests  ,
OneColourChange   
)

Test text with one colour change in the middle.

◆ TEST_F() [4/13]

TEST_F ( RowFormattingTests  ,
OneColourUnderlined   
)

Test one row colour with underline.

◆ TEST_F() [5/13]

TEST_F ( RowFormattingTests  ,
RedundantColourChange   
)

Test redundant colour change - two changes, no text between.

◆ TEST_F() [6/13]

TEST_F ( RowFormattingTests  ,
TestAlwaysTicker   
)

Test row formatting using alwaysTicker modifier.

◆ TEST_F() [7/13]

TEST_F ( RowFormattingTests  ,
TestAttributeSanitiser   
)

Test row attribute santiser to ensure returned attributes are sane when combined.

◆ TEST_F() [8/13]

TEST_F ( RowFormattingTests  ,
TestInvalidColours   
)

Test invalid colour codes and position vs. modifier.

◆ TEST_F() [9/13]

TEST_F ( RowFormattingTests  ,
TestInvalidModifiers   
)

Test various invalid modifiers and modifier positions and ensure they are ignored.

◆ TEST_F() [10/13]

TEST_F ( RowFormattingTests  ,
TestLine   
)

Test row formatting using line modifier.

◆ TEST_F() [11/13]

TEST_F ( RowFormattingTests  ,
TestNeverTicker   
)

Test row formatting using neverTicker modifier.

◆ TEST_F() [12/13]

TEST_F ( RowFormattingTests  ,
TestNoModifiers   
)

Test row formatting using no modifiers.

◆ TEST_F() [13/13]

TEST_F ( RowFormattingTests  ,
TestUnderline   
)

Test row formatting using underline modifier.