package main import ( "testing" ) func TestSwitchYaml(t *testing.T) { swi := NewSwitch() if swi == nil { t.Error("swi is error") } }