MCPcopy
hub / github.com/jisaacks/GitGutter / test_promise_resolve

Method test_promise_resolve

tests/test_promise.py:49–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 self.assertTrue(promise._is_resolved())
48
49 def test_promise_resolve(self):
50 promise = Promise.resolve(999)
51 self.assertTrue(promise._is_resolved())
52 self.assertEqual(promise._get_value(), 999)
53
54 def test_chain_with_promise(self):
55 def worker_async(resolve_fn):

Callers

nothing calls this directly

Calls 3

resolveMethod · 0.80
_is_resolvedMethod · 0.80
_get_valueMethod · 0.80

Tested by

no test coverage detected