mirror of
https://github.com/crazybber/go-pattern-examples.git
synced 2024-11-23 04:16:02 +03:00
15 lines
162 B
Go
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()
|
||
|
}
|
||
|
}
|