Versions in this module Expand all Collapse all v0 v0.36.2 Jan 15, 2022 Changes in this version + const TCPEchoServerPort + const UDPEchoServerPort + const UDSEchoServerAddr + var RunID string + func ExpectConsistOf(actual interface{}, extra interface{}, explain ...interface{}) + func ExpectEmpty(actual interface{}, explain ...interface{}) + func ExpectEqual(actual interface{}, extra interface{}, explain ...interface{}) + func ExpectEqualValues(actual interface{}, extra interface{}, explain ...interface{}) + func ExpectError(err error, explain ...interface{}) + func ExpectHaveKey(actual interface{}, key interface{}, explain ...interface{}) + func ExpectNoError(err error, explain ...interface{}) + func ExpectNoErrorWithOffset(offset int, err error, explain ...interface{}) + func ExpectNotEqual(actual interface{}, extra interface{}, explain ...interface{}) + func ExpectRequest(protocol string, port int, in, out []byte, timeout time.Duration, ...) + func ExpectRequestError(protocol string, port int, in []byte, timeout time.Duration, ...) + func ExpectTCPRequest(port int, in, out []byte, timeout time.Duration, explain ...interface{}) + func ExpectTCPRequestError(port int, in []byte, timeout time.Duration, explain ...interface{}) + func ExpectTrue(actual interface{}, explain ...interface{}) + func ExpectUDPRequest(port int, in, out []byte, timeout time.Duration, explain ...interface{}) + func ExpectUDPRequestError(port int, in []byte, timeout time.Duration, explain ...interface{}) + func Fail(msg string, callerSkip ...int) + func Failf(format string, args ...interface{}) + func FailfWithOffset(offset int, format string, args ...interface{}) + func GenPortName(name string) string + func GenerateConfigFile(path string, content string) error + func Logf(format string, args ...interface{}) + func PrunedStack(skip int) []byte + func RegisterCommonFlags(flags *flag.FlagSet) + func RemoveCleanupAction(p CleanupActionHandle) + func RunCleanupActions() + func ValidateTestContext(t *TestContextType) error + type CleanupActionHandle *int + func AddCleanupAction(fn func()) CleanupActionHandle + type FRPClient struct + type Framework struct + TempDirectory string + UsedPorts map[string]int + func NewDefaultFramework() *Framework + func NewFramework(opt Options) *Framework + func (f *Framework) AfterEach() + func (f *Framework) BeforeEach() + func (f *Framework) FRPClient(port int) *FRPClient + func (f *Framework) RenderTemplates(templates []string) (outs []string, ports map[string]int, err error) + func (f *Framework) RunProcesses(serverTemplates []string, clientTemplates []string) + type MockServers struct + func NewMockServers(portAllocator *port.Allocator) *MockServers + func (m *MockServers) Close() + func (m *MockServers) GetParam(key string) interface{} + func (m *MockServers) GetTemplateParams() map[string]interface{} + func (m *MockServers) Run() error + type Options struct + CurrentNodeIndex int + FromPortIndex int + ToPortIndex int + TotalParallelNode int + type TestContextType struct + Debug bool + FRPClientPath string + FRPServerPath string + LogLevel string + var TestContext TestContextType