mirror of
https://github.com/ossf/scorecard.git
synced 2024-11-04 03:52:31 +03:00
🌱 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:
parent
b5142abe4d
commit
f8d33f8b3e
@ -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
1403
pkg/json_raw_results_test.go
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user