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

Method test_bitCount

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

Source from the content-addressed store, hash-verified

289 self.assertEqual(expect, result)
290
291 def test_bitCount(self):
292 expect = make_expression_graph({
293 'arguments': {
294 'input': ARRAY_ONE,
295 },
296 'functionName': 'Array.bitCount',
297 })
298 expression = ee.Array([1]).bitCount()
299 result = json.loads(expression.serialize())
300 self.assertEqual(expect, result)
301
302 def test_bits_to_array(self):
303 expect = make_expression_graph({

Callers

nothing calls this directly

Calls 3

make_expression_graphFunction · 0.70
bitCountMethod · 0.45
serializeMethod · 0.45

Tested by

no test coverage detected