🌱 Unit tests for pkg/json_raw_results (#3044)

* 🌱 Unit tests for pkg/json_raw_results.go

- Unit tests for pkg/json_raw_results.go

Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>

* Additional tests

Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>

---------

Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
This commit is contained in:
Naveen 2023-05-22 12:37:12 -05:00 committed by GitHub
parent b5142abe4d
commit f8d33f8b3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1404 additions and 1 deletions

View File

@ -352,7 +352,7 @@ func (r *jsonScorecardRawResult) addPackagingRawResults(pk *checker.PackagingDat
}
if p.File == nil {
//nolint
return errors.New("File field is nil")
return errors.New("file field is nil")
}
jpk.File = &jsonFile{

1403
pkg/json_raw_results_test.go Normal file

File diff suppressed because it is too large Load Diff