MCPcopy Create free account
hub / github.com/actor-framework/actor-framework / stringify

Function stringify

libcaf_test/caf/test/runnable.hpp:395–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393
394 template <class T>
395 static auto stringify(const T& value) {
396 if constexpr (std::is_same_v<T, std::nullptr_t>) {
397 return std::string{"null"};
398 } else if constexpr (std::is_convertible_v<T, std::string>) {
399 return std::string{value};
400 } else {
401 return caf::deep_to_string(value);
402 }
403 }
404
405 virtual void do_run() = 0;
406};

Callers 6

check_eqFunction · 0.70
check_neFunction · 0.70
check_ltFunction · 0.70
check_leFunction · 0.70
check_gtFunction · 0.70
check_geFunction · 0.70

Calls 1

deep_to_stringFunction · 0.85

Tested by

no test coverage detected