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

Function also_with_noderawfs

test/decorators.py:378–393  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

376
377
378def also_with_noderawfs(func):
379 assert callable(func)
380
381 @wraps(func)
382 def metafunc(self, rawfs, *args, **kwargs):
383 if DEBUG:
384 print('parameterize:rawfs=%d' % rawfs)
385 if rawfs:
386 self.setup_noderawfs_test()
387 else:
388 self.cflags += ['-DMEMFS']
389 return func(self, *args, **kwargs)
390
391 parameterize(metafunc, {'': (False,),
392 'rawfs': (True,)})
393 return metafunc
394
395
396def also_with_minimal_runtime(func):

Callers

nothing calls this directly

Calls 1

parameterizeFunction · 0.85

Tested by

no test coverage detected