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

Function parse_angle

tests/units_test.cpp:254–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254static units::angle parse_angle( const std::string &json )
255{
256 std::istringstream buffer( json );
257 JsonIn jsin( buffer );
258 return read_from_json_string<units::angle>( jsin.get_value(), units::angle_units );
259}
260
261TEST_CASE( "angle parsing from JSON", "[units]" )
262{

Callers 1

units_test.cppFile · 0.85

Calls 1

get_valueMethod · 0.45

Tested by

no test coverage detected