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

Method test_and

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

Source from the content-addressed store, hash-verified

224 self.assertEqual(expect, result)
225
226 def test_and(self):
227 expect = make_expression_graph({
228 'arguments': {
229 'left': ARRAY_ONE,
230 'right': ARRAY_TWO,
231 },
232 'functionName': 'Array.and',
233 })
234 expression = ee.Array([1]).And([2])
235 result = json.loads(expression.serialize())
236 self.assertEqual(expect, result)
237
238 expression = ee.Array([1]).And(right=[2])
239 result = json.loads(expression.serialize())
240 self.assertEqual(expect, result)
241
242 def test_argmax(self):
243 expect = make_expression_graph({

Callers

nothing calls this directly

Calls 3

make_expression_graphFunction · 0.70
AndMethod · 0.45
serializeMethod · 0.45

Tested by

no test coverage detected