g := gomonkey.ApplyFunc((*Dao).method1, func(_ *Dao) error { return errors.New("打桩返回的错误") }) defer g.Reset() d := Dao{}
確定! 回上一頁