Skip to content

test: Add Callgraph Signature Tests#45

Merged
KunalSin9h merged 2 commits intomainfrom
test/add-callgraph-signature-tests
Oct 26, 2025
Merged

test: Add Callgraph Signature Tests#45
KunalSin9h merged 2 commits intomainfrom
test/add-callgraph-signature-tests

Conversation

@abhisek
Copy link
Member

@abhisek abhisek commented Oct 25, 2025

  • test: Add callgraph signature tests
  • test: Add Java arg matching tests

@abhisek abhisek requested review from a team and Copilot October 25, 2025 13:30
@safedep
Copy link

safedep bot commented Oct 25, 2025

SafeDep Report Summary

Green Malicious Packages Badge Green Vulnerable Packages Badge Green Risky License Badge

Package Details
Package Malware Vulnerability Risky License Report

This report is generated by SafeDep Github App

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive test coverage for callgraph signature matching across multiple programming languages (Python, Go, and Java). The tests validate that the signature matcher correctly identifies function/method calls and supports advanced features like argument matching by index and type resolution.

Key Changes:

  • Added signature matching test cases for Python, Go, and Java to verify detection of common function calls
  • Added Java argument matching tests to validate literal value matching, multi-argument matching, and type resolution
  • Added test fixture file for Java argument matching scenarios

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
plugin/callgraph/signatures_test.go Added test cases for Python, Go, and Java signature matching, including argument matching scenarios
plugin/callgraph/imports.go Added blank lines for consistent formatting
plugin/callgraph/fixtures/testJavaArguments.java Added new test fixture with Java code demonstrating various argument matching scenarios

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.31%. Comparing base (d5457fc) to head (9cecd7d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #45      +/-   ##
==========================================
+ Coverage   60.23%   61.31%   +1.07%     
==========================================
  Files          47       47              
  Lines        5289     4123    -1166     
==========================================
- Hits         3186     2528     -658     
+ Misses       1825     1316     -509     
- Partials      278      279       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@KunalSin9h KunalSin9h merged commit aa08f82 into main Oct 26, 2025
6 checks passed
@KunalSin9h KunalSin9h deleted the test/add-callgraph-signature-tests branch October 26, 2025 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants