MCPcopy Create free account
hub / github.com/Snapchat/Valdi / makeInitializedBundle

Function makeInitializedBundle

valdi/test/runtime/AssetsManager_tests.cpp:107–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105};
106
107static Ref<Bundle> makeInitializedBundle(const StringBox& moduleName, bool hasRemoteAssets) {
108 auto bundle = makeShared<Bundle>(moduleName, ConsoleLogger::getLogger());
109 auto initializer = bundle->prepareForInit();
110 initializer.initWithLocalArchive(makeShared<ValdiModuleArchive>(), hasRemoteAssets);
111 return bundle;
112}
113
114struct AssetsManagerWrapper : public AssetsManagerListener {
115 Ref<MainQueue> mainQueue;

Callers 3

TESTFunction · 0.85

Calls 2

prepareForInitMethod · 0.80
initWithLocalArchiveMethod · 0.80

Tested by

no test coverage detected