testutil

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSelfSignedCert

func GenerateSelfSignedCert(t T) (string, string, func())

GenerateSelfSignedCert 임시 디렉토리에 테스트용 자체 서명 인증서와 키 파일을 생성합니다. 반환값: (certFile, keyFile, 유예 함수)

func GetFreePort

func GetFreePort() (int, error)

GetFreePort 테스트용으로 사용 가능한 임의의 포트를 반환합니다.

func WaitForServer

func WaitForServer(port int, timeout time.Duration) error

WaitForServer 서버가 해당 포트에서 리스닝할 때까지 대기합니다.

Types

type T

type T interface {
	Fatalf(format string, args ...interface{})
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL