go-pattern-examples/structure/09_proxy/proxy_test.go

15 lines
162 B
Go
Raw Normal View History

2020-04-21 17:50:21 +03:00
package proxy
import "testing"
func TestProxy(t *testing.T) {
var sub Subject
sub = &Proxy{}
res := sub.Do()
if res != "pre:real:after" {
t.Fail()
}
}