fix(hopper): merge current main into runtime cleanup
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
readFile,
|
||||
symlink,
|
||||
unlink,
|
||||
writeFile,
|
||||
} from "node:fs/promises";
|
||||
import { join } from "node:path";
|
||||
import { promisify } from "node:util";
|
||||
|
||||
@@ -342,17 +342,30 @@ it("exposes overload candidates and executes only an explicitly selected ambiguo
|
||||
expect(result.method).toMatchObject({
|
||||
overload_index: 1,
|
||||
reported_signature: "choose(int): void",
|
||||
dex_descriptor: null,
|
||||
dex_descriptor: "(I)V",
|
||||
});
|
||||
expect(result.source.text).toContain("overload 1");
|
||||
const references = await service.execute("trace_android_references", input);
|
||||
expect(references).toMatchObject({
|
||||
ok: false,
|
||||
error: {
|
||||
_tag: "AnalysisCapabilityUnavailableError",
|
||||
reason: expect.stringContaining("unique method name"),
|
||||
_tag: "AnalysisInputError",
|
||||
issues: [expect.objectContaining({ path: ["overload_index"] })],
|
||||
},
|
||||
});
|
||||
const selectedReferences = await service.execute("trace_android_references", {
|
||||
...input,
|
||||
overload_index: 1,
|
||||
});
|
||||
if (!selectedReferences.ok) throw selectedReferences.error;
|
||||
expect(
|
||||
androidResultSchemas.trace_android_references.parse(
|
||||
selectedReferences.value.normalized_result,
|
||||
),
|
||||
).toMatchObject({
|
||||
overload_index: 1,
|
||||
reported_signature: "choose(int): void",
|
||||
});
|
||||
await provider.close();
|
||||
await verifyCleanup(launches);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user