MCPcopy Create free account
hub / github.com/ElementsProject/elements / rtrim

Function rtrim

src/univalue/test/unitester.cpp:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#define f_assert(expr) { if (!(expr)) { test_failed = true; fprintf(stderr, "%s failed\n", __func__); } }
25
26static std::string rtrim(std::string s)
27{
28 s.erase(s.find_last_not_of(" \n\r\t")+1);
29 return s;
30}
31
32static void runtest(std::string filename, const std::string& jdata)
33{

Callers 1

runtestFunction · 0.85

Calls 1

eraseMethod · 0.45

Tested by

no test coverage detected