Skip to content

Commit

Permalink
Add tests for common.go (#5191)
Browse files Browse the repository at this point in the history
* add: tests for the rate limiting logic

* add: tests for package/container operations

- ListPackagesByRepository()
- GetArtifactVersions()
- getPackageVersions()

* add: tests for hook management business logic + validation

- IsMinderHook()
- CreateHook()

* add: tests for repository access control

- CanHandleOwner()
- NewFallbackTokenClient()

* add: tests for check run operations (permission handling)

- StartCheckRun()
- UpdateCheckRun()

* add: tests for list operations with complex logic

- ListFiles()
- ListAllRepositories()

* add: tests for security advisory management

- CreateSecurityAdvisory()
- CloseSecurityAdvisory()

* fix: linting + license

* remove: reduntant safeInt func

* fix: no lint

* update: int32
  • Loading branch information
teodor-yanev authored Jan 7, 2025
1 parent 0dfd5ea commit 88c104d
Showing 1 changed file with 1,724 additions and 0 deletions.
Loading

0 comments on commit 88c104d

Please sign in to comment.