MCPcopy Create free account
hub / github.com/ColinPitrat/caprice32 / TEST

Function TEST

test/stringutils.cpp:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "stringutils.h"
3
4TEST(StringUtils, SplitOnEmptyStringReturnsEmptyVector)
5{
6 std::string toSplit = "";
7
8 std::vector<std::string> result = stringutils::split(toSplit, ',');
9
10 ASSERT_EQ(0, result.size());
11}
12
13TEST(StringUtils, SplitOnStringWithoutDelimiterReturnsOneElement)
14{

Callers

nothing calls this directly

Calls 5

splitFunction · 0.85
trimFunction · 0.85
lowerFunction · 0.85
upperFunction · 0.85
splitPathFunction · 0.85

Tested by

no test coverage detected