1
0
mirror of https://github.com/securego/gosec.git synced 2025-11-23 22:15:04 +02:00
Ville Skyttä
2022-08-02 18:16:44 +03:00
committed by GitHub
parent 6a26c231fc
commit 0c8e63ed86
5 changed files with 122 additions and 0 deletions

View File

@@ -102,6 +102,10 @@ var _ = Describe("gosec rules", func() {
runner("G113", testutils.SampleCodeG113)
})
It("should detect uses of net/http serve functions that have no support for setting timeouts", func() {
runner("G114", testutils.SampleCodeG114)
})
It("should detect sql injection via format strings", func() {
runner("G201", testutils.SampleCodeG201)
})