Files
releases/cmd
Sebastian Spaink 81987eebe4 fix: populate modules from bundles for coverage reporting in bundle mode (#8496)
resolve: https://github.com/open-policy-agent/opa/issues/3324

When running `opa test -c -b`, the coverage reporter received nil
modules because cmd/test.go only populated the modules variable in the
file-loading branch. This caused cover.Report() to skip the NotCovered
walk, resulting in 100% coverage regardless of actual test coverage.

Extract modules from bundles via ParsedModules() when both bundle mode
and coverage are enabled, so the coverage reporter can correctly
identify uncovered lines.

Tested the change locally as well with the steps in the issue.

Signed-off-by: Sebastian Spaink <sebastianspaink@gmail.com>
2026-05-08 09:45:58 -05:00
..
2025-10-10 17:51:02 +02:00
2025-07-24 11:33:23 +02:00
2025-07-24 11:33:23 +02:00
2025-07-24 11:33:23 +02:00
2024-12-12 15:27:34 +01:00
2025-10-10 17:51:02 +02:00
2025-08-25 20:02:01 +02:00
2024-12-12 15:09:03 +01:00
2025-07-24 11:33:23 +02:00
2025-07-24 11:33:23 +02:00
2026-05-07 14:43:08 +02:00
2025-10-10 17:51:02 +02:00
2025-07-24 11:33:23 +02:00