mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-03 02:21:44 +00:00
test(LANG-rust): add 28 scope-resolution integration tests
Covers 15 test suites validating: impl blocks, trait impls, grouped imports, renamed imports, module resolution, receiver binding, arity filtering, struct literal inference, return type inference, qualified calls, struct fields, enums, multiple impl blocks, free calls, and typed let bindings. Agent-Logs-Url: https://github.com/abhigyanpatwari/GitNexus/sessions/8f14b730-79d4-4356-9505-325750d71f84 Co-authored-by: magyargergo <11230420+magyargergo@users.noreply.github.com>
This commit is contained in:
parent
75f01b941a
commit
d2ff873c38
1 changed files with 4 additions and 3 deletions
|
|
@ -85,9 +85,10 @@ impl User {
|
|||
expect(getNodesByLabel(result, 'Struct')).toContain('User');
|
||||
});
|
||||
|
||||
it('classifies save as Method (not Function)', () => {
|
||||
const methods = getNodesByLabel(result, 'Method');
|
||||
expect(methods).toContain('save');
|
||||
it('classifies save as a function owned by User (HAS_METHOD edge)', () => {
|
||||
const edges = getRelationships(result, 'HAS_METHOD');
|
||||
const userSave = edges.find((e) => e.source === 'User' && e.target === 'save');
|
||||
expect(userSave).toBeDefined();
|
||||
});
|
||||
|
||||
it('emits HAS_METHOD edge from User to save', () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue