2024-09-29 16:36:59 +09:00
|
|
|
package verbose_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2024-10-20 19:50:13 +09:00
|
|
|
"git.ophivana.moe/security/fortify/internal/verbose"
|
2024-09-29 16:36:59 +09:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestGetSet(t *testing.T) {
|
|
|
|
verbose.Set(false)
|
|
|
|
if verbose.Get() {
|
|
|
|
t.Errorf("Get() = true, want false")
|
|
|
|
}
|
|
|
|
|
|
|
|
verbose.Set(true)
|
|
|
|
if !verbose.Get() {
|
|
|
|
t.Errorf("Get() = false, want true")
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|