Skip to content

AST-162357 Add unit test cases coverage#1527

Open
cx-anurag-dalke wants to merge 5 commits into
other/release_2_3_58from
other/add-unit-testcases
Open

AST-162357 Add unit test cases coverage#1527
cx-anurag-dalke wants to merge 5 commits into
other/release_2_3_58from
other/add-unit-testcases

Conversation

@cx-anurag-dalke

Copy link
Copy Markdown
Contributor

Summary

  • Added unit test cases for agenthooks (cx hooks, guardrails/asca, guardrails/prompt, mcp bridge, mcp server)
  • Added unit test cases for util (PR decoration, SCA remediation)
  • Added unit test cases for services (applications, ASCA, export, OS installer, projects, realtime engine)
  • Added supporting test data files (Python vulnerability sample, ignored ASCA JSON)
  • Updated mock implementations (asca, export, jwt-helper, telemetry, tenant) to support new test scenarios

Test plan

  • Run unit tests: go test $(go list ./... | grep -v "mock" | grep -v "wrappers" | grep -v "bitbucketserver" | grep -v "logger") -timeout 25m
  • Verify coverage meets 85% threshold
  • Run linter: golangci-lint run -c .golangci.yml

🤖 Generated with Claude Code

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.

1 participant