mirror of
https://github.com/pushbits/server.git
synced 2025-05-18 19:36:34 +02:00
Remove semgrep, use errcheck, gosec, govulncheck
This commit is contained in:
parent
e078a30fe2
commit
f251b12fc8
19 changed files with 197 additions and 803 deletions
|
@ -4,6 +4,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/pushbits/server/internal/log"
|
||||
"github.com/pushbits/server/internal/model"
|
||||
"github.com/pushbits/server/tests"
|
||||
"github.com/pushbits/server/tests/mockups"
|
||||
|
@ -58,7 +59,11 @@ func TestApi_getApplication(t *testing.T) {
|
|||
gin.SetMode(gin.TestMode)
|
||||
|
||||
applications := mockups.GetAllApplications()
|
||||
mockups.AddApplicationsToDb(TestDatabase, applications)
|
||||
|
||||
err := mockups.AddApplicationsToDb(TestDatabase, applications)
|
||||
if err != nil {
|
||||
log.L.Fatalln("Cannot add mock applications to database: ", err)
|
||||
}
|
||||
|
||||
// No testing of invalid ids as that is tested in TestApi_getID already
|
||||
testCases := make(map[uint]tests.Request)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue