mirror of
https://github.com/securego/gosec.git
synced 2024-11-05 11:35:51 +00:00
d6aeaad931
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
22 lines
503 B
Go
22 lines
503 B
Go
package cwe_test
|
|
|
|
import (
|
|
. "github.com/onsi/ginkgo/v2"
|
|
. "github.com/onsi/gomega"
|
|
|
|
"github.com/securego/gosec/v2/cwe"
|
|
)
|
|
|
|
var _ = Describe("CWE data", func() {
|
|
BeforeEach(func() {
|
|
})
|
|
Context("when consulting cwe data", func() {
|
|
It("it should retrieves the weakness", func() {
|
|
weakness := cwe.Get("798")
|
|
Expect(weakness).ShouldNot(BeNil())
|
|
Expect(weakness.ID).ShouldNot(BeNil())
|
|
Expect(weakness.Name).ShouldNot(BeNil())
|
|
Expect(weakness.Description).ShouldNot(BeNil())
|
|
})
|
|
})
|
|
})
|