MCPcopy Create free account
hub / github.com/CleverRaven/Cataclysm-DDA / test_get_string

Function test_get_string

tests/json_test.cpp:618–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616}
617
618static void test_get_string( const std::string &str, const std::string &json )
619{
620 CAPTURE( json );
621 std::istringstream iss( json );
622 JsonIn jsin( iss );
623 CHECK( jsin.get_string() == str );
624}
625
626template<typename Matcher>
627static void test_get_string_throws_matches( Matcher &&matcher, const std::string &json )

Callers 1

json_test.cppFile · 0.85

Calls 1

get_stringMethod · 0.60

Tested by

no test coverage detected