MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / maybe_closure

Method maybe_closure

test/test_core.py:481–486  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

479
480 # Use closure in some tests for some additional coverage
481 def maybe_closure(self):
482 if '--closure=1' not in self.cflags and self.should_use_closure():
483 self.cflags += ['--closure=1']
484 logger.debug('using closure compiler..')
485 return True
486 return False
487
488 def assertStartswith(self, output, prefix):
489 self.assertEqual(prefix, output[:len(prefix)])

Callers 15

test_emmallocMethod · 0.95
test_exceptionsMethod · 0.95
test_em_asmMethod · 0.95
test_memorygrowthMethod · 0.95
test_pthread_proxyingMethod · 0.95
dylink_testfMethod · 0.95

Calls 1

should_use_closureMethod · 0.95

Tested by

no test coverage detected