mirror of
https://github.com/rclone/rclone.git
synced 2025-12-20 18:23:31 +00:00
vendor: update all dependencies to latest versions
This commit is contained in:
21
vendor/github.com/pengsrc/go-shared/log/exported_test.go
generated
vendored
Normal file
21
vendor/github.com/pengsrc/go-shared/log/exported_test.go
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
package log
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestExported(t *testing.T) {
|
||||
l, err := NewTerminalLogger("DEBUG")
|
||||
assert.NoError(t, err)
|
||||
SetGlobalLogger(l)
|
||||
|
||||
c := context.Background()
|
||||
|
||||
l.Debug(c, "Singleton logger")
|
||||
assert.NotNil(t, InfoEvent(context.Background()))
|
||||
|
||||
Debugf(c, "Debug message test, hi %s", "Apple")
|
||||
}
|
||||
Reference in New Issue
Block a user