| 165 | }; |
| 166 | |
| 167 | template <typename Type> |
| 168 | std::string convertToString (Type n) |
| 169 | { |
| 170 | if constexpr (std::is_same<const Type, const char* const>::value) return std::string (n); |
| 171 | else if constexpr (std::is_same<const Type, const std::string>::value) return n; |
| 172 | else if constexpr (std::is_same<const Type, const std::string_view>::value) return std::string (n); |
| 173 | else return std::to_string (n); |
| 174 | } |
| 175 | |
| 176 | } // namespace choc::test |
nothing calls this directly
no outgoing calls
no test coverage detected