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

Function parse_energy_quantity

tests/units_test.cpp:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48static units::energy parse_energy_quantity( const std::string &json )
49{
50 std::istringstream buffer( json );
51 JsonIn jsin( buffer );
52 return read_from_json_string<units::energy>( jsin.get_value(), units::energy_units );
53}
54
55TEST_CASE( "energy parsing from JSON", "[units]" )
56{

Callers 1

units_test.cppFile · 0.85

Calls 1

get_valueMethod · 0.45

Tested by

no test coverage detected