go-pattern-examples/structure/01_facade/facade_test.go
2020-04-21 22:53:23 +08:00

15 lines
250 B
Go

package facade
import "testing"
var expect = "A module running\nB module running"
// TestFacadeAPI ...
func TestFacadeAPI(t *testing.T) {
api := NewAPI()
ret := api.Test()
if ret != expect {
t.Fatalf("expect %s, return %s", expect, ret)
}
}