Ophestra Umiker
65af1684e3
All checks were successful
test / test (push) Successful in 14s
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
21 lines
300 B
Go
21 lines
300 B
Go
package verbose_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.ophivana.moe/security/fortify/internal/verbose"
|
|
)
|
|
|
|
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")
|
|
}
|
|
|
|
}
|