mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
Tests now sit beside the code they cover; ones a golden or another test already pins are gone, and core tests gain the assertions a real regression would trip.
16 lines
359 B
Go
16 lines
359 B
Go
package log
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestSetVerbose(t *testing.T) {
|
|
t.Cleanup(func() { defaultLogger.setLevel(infoLevel) })
|
|
|
|
assert.False(t, defaultLogger.enabled(debugLevel), "Debug must be suppressed by default")
|
|
SetVerbose()
|
|
assert.True(t, defaultLogger.enabled(debugLevel), "SetVerbose must enable Debug")
|
|
}
|