Undefined function applyFixToFileContent called in jsonhandler_test.go
Author: Rucha0901Created Sep 9, 2026Updated Sep 9, 2026
Description:
The function applyFixToFileContent was removed recently, but the test TestApplyFixToFileContentPreservesTheSourceFormat in jsonhandler_test.go was left behind, breaking the test suite with an undefined error. The fix removes this obsolete test.
Environment: OS: macOS Version: main branch
Steps To Reproduce:
- Run
go test ./core/pkg/fixhandler/...
Expected behavior: Tests pass without compilation errors.
Actual Behavior:
Tests fail to compile: undefined: applyFixToFileContent.
Source: kubescape/kubescape