MCPcopy Index your code
hub / github.com/microsoft/SkillOpt / test_empty_json_object

Method test_empty_json_object

tests/test_json_utils.py:55–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53 assert extract_json("{broken") is None
54
55 def test_empty_json_object(self) -> None:
56 assert extract_json('{"empty": {}}') == {"empty": {}}
57
58 def test_json_with_escaped_chars(self) -> None:
59 text = '{"message": "hello\\nworld"}'

Callers

nothing calls this directly

Calls 1

extract_jsonFunction · 0.90

Tested by

no test coverage detected