Files
notes_estom/Go/DesignPattern/proxy/proxy_test.go
2021-09-03 05:34:34 +08:00

21 lines
315 B
Go

/**
* @Author:zhoutao
* @Date:2020/12/11 下午2:13
* @Desc:
*/
package proxy
import "testing"
var expect = "pre to do :going to do something: after to do"
func TestProxy(t *testing.T) {
var sub Subject
sub = &Proxy{}
res := sub.Do()
if res != expect {
t.Fatalf("expect %s ,return %s", expect, res)
}
}