//go:build windows package main import ( "testing" ) func TestMessageBoxW_WindowsOnly(t *testing.T) { messageBox("测试标题", "测试消息", MB_ICONINFORMATION) } func TestShowError_WindowsBranch(t *testing.T) { showError("测试错误", "这是一条测试错误消息") } func TestShowAbout_WindowsBranch(t *testing.T) { showAbout() }