arduino-emulator
Loading...
Searching...
No Matches
StringPrinter.h
1/*
2 * Copyright (c) 2020 Arduino. All rights reserved.
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6
7#pragma once
8
9#include <catch2/catch_test_macros.hpp>
10#include <api/String.h>
11
12namespace Catch {
21 template<>
22 struct StringMaker<arduino::String> {
23 static std::string convert(const arduino::String& str) {
24 if (str)
25 return ::Catch::Detail::stringify(std::string(str.c_str(), str.length()));
26 else
27 return "{invalid String}";
28 }
29 };
30} // namespace Catch
Definition String.h:53
We provide the WiFi class to simulate the Arduino WIFI. In in Linux we can expect that networking is ...
Definition CanMsg.cpp:31