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

Method test_add

python/ee/tests/ee_array_test.py:210–224  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

208 self.assertEqual(expect, result)
209
210 def test_add(self):
211 expect = make_expression_graph({
212 'arguments': {
213 'left': ARRAY_ONE,
214 'right': ARRAY_TWO,
215 },
216 'functionName': 'Array.add',
217 })
218 expression = ee.Array([1]).add([2])
219 result = json.loads(expression.serialize())
220 self.assertEqual(expect, result)
221
222 expression = ee.Array([1]).add(right=[2])
223 result = json.loads(expression.serialize())
224 self.assertEqual(expect, result)
225
226 def test_and(self):
227 expect = make_expression_graph({

Callers

nothing calls this directly

Calls 3

make_expression_graphFunction · 0.70
addMethod · 0.45
serializeMethod · 0.45

Tested by

no test coverage detected