mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-20 00:11:37 +00:00
Add comprehensive integration tests verifying that overloaded methods with different arities produce distinct graph nodes and correct METHOD_IMPLEMENTS edges. Each fixture uses different parameter counts (1 vs 2) to exercise the #<paramCount> arity suffix. Languages covered: - Java: 7 tests (distinct nodes, 3 METHOD_IMPLEMENTS edges, 2 CALLS edges) - C#: 5 tests (distinct Find nodes, 3 METHOD_IMPLEMENTS edges) - Kotlin: 4 tests (distinct find nodes, 3 METHOD_IMPLEMENTS edges) - TypeScript: 3 tests (TS overloads collapse to 1 impl — expects 2 edges) - Swift: 4 tests (skipped when parser unavailable) All assertions use strict toBe() — no toBeGreaterThanOrEqual.
13 lines
291 B
Java
13 lines
291 B
Java
public class SqlRepository implements Repository {
|
|
public String find(int id) {
|
|
return "found-by-id";
|
|
}
|
|
|
|
public String find(String name, boolean exact) {
|
|
return "found-by-name";
|
|
}
|
|
|
|
public void save(String data) {
|
|
System.out.println(data);
|
|
}
|
|
}
|