String Buffer Function Unit Tests.
More...
#include <gtest/gtest.h>
#include "strbuf.h"
#include <cstring>
|
| | TEST_F (StrbufTest, ClearResetsLength) |
| |
| | TEST_F (StrbufTest, AppendWritesDataAndReturnsLength) |
| |
| | TEST_F (StrbufTest, AppendAccumulatesAcrossCalls) |
| |
| | TEST_F (StrbufTest, AppendExactCapacitySucceeds) |
| |
| | TEST_F (StrbufTest, AppendOverCapacityFailsAndLeavesBufferUnchanged) |
| |
| | TEST_F (StrbufTest, AppendToFullBufferFails) |
| |
| | TEST_F (StrbufTest, AppendZeroLengthReturnsZeroWithoutChangingState) |
| |
| | TEST_F (StrbufTest, RepeatedAppendCalls) |
| |
| | TEST_F (StrbufTest, RepeatedAppendCallsFails) |
| |
| | TEST_F (StrbufTest, PrintfWritesFormattedDataAndReturnsLength) |
| |
| | TEST_F (StrbufTest, PrintfAccumulatesAcrossCalls) |
| |
| | TEST_F (StrbufTest, RepeatedPrintfCalls) |
| |
| | TEST_F (StrbufTest, RepeatedPrintfCallsFails) |
| |
| | TEST_F (StrbufTest, PrintfOnFullBufferReturnsZeroImmediately) |
| |
| | TEST_F (StrbufTest, PrintfExceedingRemainingSpaceFailsAndLeavesBufferUnchanged) |
| |
| | TEST_F (StrbufTest, PrintfExactlyFillingRemainingSpaceFails) |
| |
| | TEST_F (StrbufTest, PrintfFillCapacity) |
| |
| | TEST_F (StrbufTest, PrintfFillingAllButOneByteSucceeds) |
| |
| | TEST (StrbufAllocateMacro, InitializesFieldsCorrectly) |
| |
String Buffer Function Unit Tests.
- Author
- Daniel Proano (dproa.nosp@m.no@p.nosp@m.urdue.nosp@m..edu)
◆ TEST()
| TEST |
( |
StrbufAllocateMacro | , |
|
|
InitializesFieldsCorrectly | ) |
◆ TEST_F() [1/18]
| TEST_F |
( |
StrbufTest | , |
|
|
AppendAccumulatesAcrossCalls | ) |
◆ TEST_F() [2/18]
| TEST_F |
( |
StrbufTest | , |
|
|
AppendExactCapacitySucceeds | ) |
◆ TEST_F() [3/18]
| TEST_F |
( |
StrbufTest | , |
|
|
AppendOverCapacityFailsAndLeavesBufferUnchanged | ) |
◆ TEST_F() [4/18]
◆ TEST_F() [5/18]
| TEST_F |
( |
StrbufTest | , |
|
|
AppendWritesDataAndReturnsLength | ) |
◆ TEST_F() [6/18]
| TEST_F |
( |
StrbufTest | , |
|
|
AppendZeroLengthReturnsZeroWithoutChangingState | ) |
◆ TEST_F() [7/18]
◆ TEST_F() [8/18]
| TEST_F |
( |
StrbufTest | , |
|
|
PrintfAccumulatesAcrossCalls | ) |
◆ TEST_F() [9/18]
| TEST_F |
( |
StrbufTest | , |
|
|
PrintfExactlyFillingRemainingSpaceFails | ) |
◆ TEST_F() [10/18]
| TEST_F |
( |
StrbufTest | , |
|
|
PrintfExceedingRemainingSpaceFailsAndLeavesBufferUnchanged | ) |
◆ TEST_F() [11/18]
◆ TEST_F() [12/18]
| TEST_F |
( |
StrbufTest | , |
|
|
PrintfFillingAllButOneByteSucceeds | ) |
◆ TEST_F() [13/18]
| TEST_F |
( |
StrbufTest | , |
|
|
PrintfOnFullBufferReturnsZeroImmediately | ) |
◆ TEST_F() [14/18]
| TEST_F |
( |
StrbufTest | , |
|
|
PrintfWritesFormattedDataAndReturnsLength | ) |
◆ TEST_F() [15/18]
◆ TEST_F() [16/18]
◆ TEST_F() [17/18]
◆ TEST_F() [18/18]
◆ BUF_SIZE