learning_go/pkg/mod/github.com/dixonwille/wmenu@v4.0.2+incompatible/clearScreen_test.go
a.pivkin 59666d0dd6 wer
2025-09-06 13:02:52 +03:00

27 lines
327 B
Go

package wmenu
import "testing"
func TestClear(t *testing.T) {
Clear()
}
func TestClearLinux(t *testing.T) {
clearOs("linux")
}
func TestClearDarwin(t *testing.T) {
clearOs("darwin")
}
func TestClearWindows(t *testing.T) {
clearOs("windows")
}
func clearOs(os string) {
value, ok := clear[os]
if ok {
value()
}
}