mirror of
https://github.com/crazybber/go-pattern-examples.git
synced 2024-11-26 05:36:03 +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()
|
||
|
}
|
||
|
}
|