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

Method test_bitwise_and

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

Source from the content-addressed store, hash-verified

313 self.assertEqual(expect, result)
314
315 def test_bitwise_and(self):
316 expect = make_expression_graph({
317 'arguments': {
318 'left': ARRAY_ONE,
319 'right': ARRAY_TWO,
320 },
321 'functionName': 'Array.bitwiseAnd',
322 })
323 expression = ee.Array([1]).bitwiseAnd([2])
324 result = json.loads(expression.serialize())
325 self.assertEqual(expect, result)
326
327 expression = ee.Array([1]).bitwiseAnd(right=[2])
328 result = json.loads(expression.serialize())
329 self.assertEqual(expect, result)
330
331 def test_bitwise_not(self):
332 expect = make_expression_graph({

Callers

nothing calls this directly

Calls 3

make_expression_graphFunction · 0.70
bitwiseAndMethod · 0.45
serializeMethod · 0.45

Tested by

no test coverage detected