Skip to content

Compliance as code#334

Merged
timbastin merged 18 commits into
mainfrom
feature/rego-eval
Apr 6, 2025
Merged

Compliance as code#334
timbastin merged 18 commits into
mainfrom
feature/rego-eval

Conversation

@timbastin
Copy link
Copy Markdown
Member

No description provided.

@timbastin timbastin linked an issue Apr 2, 2025 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 6, 2025

Merging this branch changes the coverage (4 decrease, 1 increase)

Impacted Packages Coverage Δ 🤖
github.com/l3montree-dev/devguard/cmd/devguard/api 15.12% (-0.43%) 👎
github.com/l3montree-dev/devguard/internal/core 6.75% (-0.17%) 👎
github.com/l3montree-dev/devguard/internal/core/compliance 38.71% (+38.71%) 🌟
github.com/l3montree-dev/devguard/internal/core/component 40.50% (-1.81%) 👎
github.com/l3montree-dev/devguard/internal/core/statistics 0.00% (ø)
github.com/l3montree-dev/devguard/internal/database/repositories 0.23% (-0.00%) 👎

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/l3montree-dev/devguard/cmd/devguard/api/api.go 15.12% (-0.43%) 291 (+8) 44 247 (+8) 👎
github.com/l3montree-dev/devguard/internal/core/common_interfaces.go 0.00% (ø) 0 0 0
github.com/l3montree-dev/devguard/internal/core/compliance/compliance_controller.go 13.56% (+13.56%) 59 (+59) 8 (+8) 51 (+51) 🎉
github.com/l3montree-dev/devguard/internal/core/compliance/rego.go 82.35% (+82.35%) 34 (+34) 28 (+28) 6 (+6) 🌟
github.com/l3montree-dev/devguard/internal/core/component/component_controller.go 0.00% (ø) 31 (+11) 0 31 (+11)
github.com/l3montree-dev/devguard/internal/core/component/licenses.go 83.33% (+83.33%) 6 (+6) 5 (+5) 1 (+1) 🌟
github.com/l3montree-dev/devguard/internal/core/context_utils.go 7.10% (-0.19%) 155 (+4) 11 144 (+4) 👎
github.com/l3montree-dev/devguard/internal/core/statistics/statistics_asset_controller.go 0.00% (ø) 109 (+16) 0 109 (+16)
github.com/l3montree-dev/devguard/internal/core/statistics/statistics_service.go 0.00% (ø) 147 (+1) 0 147 (+1)
github.com/l3montree-dev/devguard/internal/database/repositories/asset_version_repository.go 2.56% (-0.10%) 78 (+3) 2 76 (+3) 👎
github.com/l3montree-dev/devguard/internal/database/repositories/statistics_repository.go 0.00% (ø) 49 (+8) 0 49 (+8)

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/l3montree-dev/devguard/internal/core/compliance/rego_test.go

@timbastin timbastin merged commit 842bfbc into main Apr 6, 2025
15 checks passed
@timbastin timbastin deleted the feature/rego-eval branch April 6, 2025 12:38
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.

Dashboard Ideas

1 participant