package dict_topic import "testing" /* Тест для ... */ type tester struct { t *testing.T dictTopic *DictTopic } func TestAny(t *testing.T) { sf := &tester{ t: t, } sf.create() } func (sf *tester) create() { sf.t.Log("create") sf.dictTopic = NewDictTopic() if sf.dictTopic == nil { sf.t.Fatalf("create(): dictTopic==nil") } }