Files
trivy/pkg/licensing/normalize_private_test.go
Pierre Baumard 6472e3c9da feat(license): improve license normalization (#7131)
Signed-off-by: knqyf263 <knqyf263@gmail.com>
Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io>
Co-authored-by: knqyf263 <knqyf263@gmail.com>
2024-09-11 06:47:50 +00:00

19 lines
390 B
Go

package licensing
import (
"testing"
"github.com/stretchr/testify/assert"
)
// All map keys must be standardized to be matched
// (uppercase, no common suffixes, standardized version, etc.)
func TestMap(t *testing.T) {
for key := range mapping {
t.Run(key, func(t *testing.T) {
standardized := standardizeKeyAndSuffix(key)
assert.Equal(t, standardized.License, key)
})
}
}