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

Function toJSEngineType

valdi/test/integration/JSBridgeTestFixture.cpp:5–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3namespace ValdiTest {
4
5static snap::valdi_core::JavaScriptEngineType toJSEngineType(JavaScriptEngineTestCase testCase) {
6 switch (testCase) {
7 case JavaScriptEngineTestCase::JSCore:
8 return snap::valdi_core::JavaScriptEngineType::JSCore;
9 case JavaScriptEngineTestCase::Hermes:
10 return snap::valdi_core::JavaScriptEngineType::Hermes;
11 case JavaScriptEngineTestCase::V8:
12 return snap::valdi_core::JavaScriptEngineType::V8;
13 case JavaScriptEngineTestCase::QuickJS:
14 return snap::valdi_core::JavaScriptEngineType::QuickJS;
15 case JavaScriptEngineTestCase::QuickJSWithTSN:
16 return snap::valdi_core::JavaScriptEngineType::QuickJS;
17 }
18}
19
20static bool isWithTSN(JavaScriptEngineTestCase testCase) {
21 switch (testCase) {

Callers 2

operator()Method · 0.85
getJsBridgeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected