micro-test-plus 4.1.0
µTest++ Testing Framework
Loading...
Searching...
No Matches
utility.cpp File Reference

C++ source file with implementations for the µTest++ methods. More...

Go to the source code of this file.

Namespaces

namespace  micro_os_plus
 The primary namespace for the µOS++ framework.
namespace  micro_os_plus::micro_test_plus
 Primary namespace for the µTest++ testing framework.
namespace  micro_os_plus::micro_test_plus::utility
 Utility functions for the µTest++ testing framework.

Functions

const char * micro_os_plus::micro_test_plus::utility::extract_file_name (const char *path) noexcept
 Extracts the file name component from a full path.
bool micro_os_plus::micro_test_plus::utility::is_match (std::string_view input, std::string_view pattern)
 Check if a string matches a pattern.

Detailed Description

This source file contains the implementations of the utility functions for the µTest++ framework. It provides extract_file_name(), which strips the folder path from a file path returning only the base name, and is_match(), which performs wildcard pattern matching with * (any sequence of characters) and ? (any single character) support.

All definitions reside within the micro_os_plus::micro_test_plus::utility namespace.

This file must be included when building the µTest++ library.

Definition in file utility.cpp.