mirror of
https://github.com/securego/gosec.git
synced 2025-07-07 00:35:35 +02:00
Major rework of codebase
- Get rid of 'core' and move CLI to cmd/gas directory - Migrate (most) tests to use Ginkgo and testutils framework - GAS now expects package to reside in $GOPATH - GAS now can resolve dependencies for better type checking (if package on GOPATH) - Simplified public API
This commit is contained in:
12
testutils/log.go
Normal file
12
testutils/log.go
Normal file
@ -0,0 +1,12 @@
|
||||
package testutils
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"log"
|
||||
)
|
||||
|
||||
// NewLogger returns a logger and the buffer that it will be written to
|
||||
func NewLogger() (*log.Logger, *bytes.Buffer) {
|
||||
var buf bytes.Buffer
|
||||
return log.New(&buf, "", log.Lshortfile), &buf
|
||||
}
|
Reference in New Issue
Block a user