mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 07:40:48 -08:00
Signed-off-by: knqyf263 <knqyf263@gmail.com> Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io> Co-authored-by: knqyf263 <knqyf263@gmail.com>
19 lines
390 B
Go
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)
|
|
})
|
|
}
|
|
}
|