MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / testParseFromString

Method testParseFromString

dm_control/mjcf/element_test.py:854–858  ·  view source on GitHub ↗
(self, model_path)

Source from the content-addressed store, hash-verified

852 ('WithoutInclude', _TEST_MODEL_XML),
853 ('WithInclude', _MODEL_WITH_INCLUDE_PATH))
854 def testParseFromString(self, model_path):
855 with open(model_path) as xml_file:
856 xml_string = xml_file.read()
857 model_dir, _ = os.path.split(model_path)
858 parser.from_xml_string(xml_string, model_dir=model_dir)
859
860 @parameterized.named_parameters(
861 ('WithoutInclude', _TEST_MODEL_XML),

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
from_xml_stringMethod · 0.45

Tested by

no test coverage detected