MCPcopy
hub / github.com/google/earthengine-api / test_decode_json

Method test_decode_json

python/ee/tests/ee_string_test.py:92–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

90 self.assertEqual(expect, result)
91
92 def test_decode_json(self):
93 expect = make_expression_graph({
94 'arguments': {'string': {'constantValue': 'a'}},
95 'functionName': 'String.decodeJSON',
96 })
97 expression = ee.String('a').decodeJSON()
98 result = json.loads(expression.serialize())
99 self.assertEqual(expect, result)
100
101 def test_encode_json(self):
102 expect = make_expression_graph({

Callers

nothing calls this directly

Calls 3

decodeJSONMethod · 0.80
make_expression_graphFunction · 0.70
serializeMethod · 0.45

Tested by

no test coverage detected