go-pattern-examples/structure/09_proxy/proxy_test.go
2020-04-21 22:53:23 +08:00

15 lines
162 B
Go

package proxy
import "testing"
func TestProxy(t *testing.T) {
var sub Subject
sub = &Proxy{}
res := sub.Do()
if res != "pre:real:after" {
t.Fail()
}
}