MCPcopy Index your code
hub / github.com/compiler-explorer/compiler-explorer / testSplitMethodParameters

Function testSplitMethodParameters

test/android-tests.ts:300–313  ·  view source on GitHub ↗
(info: CompilerInfo)

Source from the content-addressed store, hash-verified

298 }
299
300 async function testSplitMethodParameters(info: CompilerInfo) {
301 const compiler = new Dex2OatCompiler(info, env);
302 const parametersMap = {
303 I: ['I'],
304 II: ['I', 'I'],
305 IIZ: ['I', 'I', 'Z'],
306 'Ljava/lang/String;': ['Ljava/lang/String;'],
307 'IILjava/lang/String;': ['I', 'I', 'Ljava/lang/String;'],
308 '[JJ[Ljava/lang/String;Z': ['[J', 'J', '[Ljava/lang/String;', 'Z'],
309 };
310 for (const input in parametersMap) {
311 expect(compiler.splitMethodParameters(input)).toEqual(parametersMap[input]);
312 }
313 }
314
315 async function testPrettyMethodSignature(info: CompilerInfo) {
316 const compiler = new Dex2OatCompiler(info, env);

Callers 1

android-tests.tsFile · 0.85

Calls 1

splitMethodParametersMethod · 0.95

Tested by

no test coverage detected