Documentation
¶
Index ¶
- Variables
- func ExecLatestTest(t *testing.T, dependencyName, moduleName string, ...)
- func ExecMuzzle(t *testing.T, dependencyName, moduleName string, ...)
- func ExpectContains(t *testing.T, text, expect string)
- func ExpectContainsAllItem(t *testing.T, actualItems []string, expectedItems ...string)
- func ExpectContainsNothing(t *testing.T, actualItems []string)
- func ExpectInstrumentContains(t *testing.T, log string, rule string)
- func ExpectInstrumentNotContains(t *testing.T, log string, rule string)
- func ExpectNotContains(t *testing.T, text, expect string)
- func ExpectPreprocessContains(t *testing.T, log string, rule string)
- func ExpectPreprocessNotContains(t *testing.T, log string, rule string)
- func ExpectSame(t *testing.T, expected, actual string)
- func ExpectStderrContains(t *testing.T, expect string)
- func ExpectStdoutContains(t *testing.T, expect string)
- func ExpectWhen(t *testing.T, prediction func() (res bool, msg string))
- func FetchVersion(t *testing.T, dependency, version string) string
- func ReadInstrumentLog(t *testing.T, fileName string) string
- func ReadPreprocessLog(t *testing.T, fileName string) string
- func RunApp(t *testing.T, appName string, env ...string) (string, string)
- func RunGoBuild(t *testing.T, args ...string)
- func RunGoBuildFallible(t *testing.T, args ...string)
- func RunGoBuildWithEnv(t *testing.T, envs []string, args ...string)
- func RunSet(t *testing.T, args ...string)
- func RunVersion(t *testing.T)
- func TBuildAppNoop(t *testing.T, appName string, muzzleClasses ...string)
- func TestBasicEcho(t *testing.T, env ...string)
- func TestBasicFastHttp(t *testing.T, env ...string)
- func TestBasicFastHttps(t *testing.T, env ...string)
- func TestBasicFiberv2(t *testing.T, env ...string)
- func TestBasicFiberv2Https(t *testing.T, env ...string)
- func TestBasicFiberv2Metrics(t *testing.T, env ...string)
- func TestBasicGoMicro(t *testing.T, env ...string)
- func TestBasicGrpc(t *testing.T, env ...string)
- func TestBasicHertz(t *testing.T, env ...string)
- func TestBasicHertzWithException(t *testing.T, env ...string)
- func TestBasicHertzWithHook(t *testing.T, env ...string)
- func TestBasicHertzWithRegex(t *testing.T, env ...string)
- func TestBasicMux(t *testing.T, env ...string)
- func TestBasicNetHttp(t *testing.T, env ...string)
- func TestBatch(t *testing.T, env ...string)
- func TestCrudMongo(t *testing.T, env ...string)
- func TestCursor(t *testing.T, env ...string)
- func TestESCrud(t *testing.T, env ...string)
- func TestESMetrics(t *testing.T, env ...string)
- func TestESTypedClient(t *testing.T, env ...string)
- func TestEchoMiddleware(t *testing.T, env ...string)
- func TestEchoPattern(t *testing.T, env ...string)
- func TestEsTypedClientMetrics(t *testing.T, env ...string)
- func TestExecutingCommands(t *testing.T, env ...string)
- func TestExecutingUnsupporetedCommands(t *testing.T, env ...string)
- func TestGinHTML(t *testing.T, env ...string)
- func TestGinPattern(t *testing.T, env ...string)
- func TestGoLog(t *testing.T, env ...string)
- func TestGoRestfulPattern(t *testing.T, env ...string)
- func TestGormCrud1220(t *testing.T, env ...string)
- func TestGormCrud1231(t *testing.T, env ...string)
- func TestGrpcClientStream(t *testing.T, env ...string)
- func TestGrpcStatus(t *testing.T, env ...string)
- func TestHttp2(t *testing.T, env ...string)
- func TestHttpMetric(t *testing.T, env ...string)
- func TestHttps(t *testing.T, env ...string)
- func TestIris(t *testing.T, env ...string)
- func TestKitexBasic(t *testing.T, env ...string)
- func TestKitexGrpc(t *testing.T, env ...string)
- func TestKratosGrpc(t *testing.T, env ...string)
- func TestKratosHttp(t *testing.T, env ...string)
- func TestLogrus(t *testing.T, env ...string)
- func TestMetrics(t *testing.T, env ...string)
- func TestMetricsEcho(t *testing.T, env ...string)
- func TestMetricsGrpc(t *testing.T, env ...string)
- func TestMuxMiddleware(t *testing.T, env ...string)
- func TestMuxPattern(t *testing.T, env ...string)
- func TestMuxPrefix(t *testing.T, env ...string)
- func TestMySql5xAccessDatabase(t *testing.T, env ...string)
- func TestMySql5xFetchingDatabase(t *testing.T, env ...string)
- func TestMySql5xModifyData(t *testing.T, env ...string)
- func TestMySql5xPreparedStatement(t *testing.T, env ...string)
- func TestMySql5xSingleRowQuery(t *testing.T, env ...string)
- func TestMySql5xTransaction(t *testing.T, env ...string)
- func TestMySql8xAccessDatabase(t *testing.T, env ...string)
- func TestMySql8xFetchingDatabase(t *testing.T, env ...string)
- func TestMySql8xModifyData(t *testing.T, env ...string)
- func TestNacos200Config(t *testing.T, env ...string)
- func TestNacos200Service(t *testing.T, env ...string)
- func TestNacos210Config(t *testing.T, env ...string)
- func TestNacos210Service(t *testing.T, env ...string)
- func TestPreparedStatement(t *testing.T, env ...string)
- func TestRedigoDoCommands(t *testing.T, env ...string)
- func TestRedigoExecutingCommands(t *testing.T, env ...string)
- func TestRedigoTransactions(t *testing.T, env ...string)
- func TestRedigoUnsupportedCommands(t *testing.T, env ...string)
- func TestRedisConn(t *testing.T, env ...string)
- func TestRedisRing(t *testing.T, env ...string)
- func TestRedisTransactions(t *testing.T, env ...string)
- func TestRedisUniversal(t *testing.T, env ...string)
- func TestSingleRowQuery(t *testing.T, env ...string)
- func TestSpanFromContext(t *testing.T, env ...string)
- func TestTransaction(t *testing.T, env ...string)
- func TestV8ExecutingCommands(t *testing.T, env ...string)
- func TestV8ExecutingUnsupporetedCommands(t *testing.T, env ...string)
- func TestV8RedisConn(t *testing.T, env ...string)
- func TestV8RedisRing(t *testing.T, env ...string)
- func TestV8RedisTransactions(t *testing.T, env ...string)
- func TestV8RedisUniversal(t *testing.T, env ...string)
- func TestZap(t *testing.T, env ...string)
- func TestZeroLog(t *testing.T, env ...string)
- func UseApp(appName string)
- func UseTestRules(name string) string
- type TestCase
Constants ¶
This section is empty.
Variables ¶
View Source
var TestCases = make([]*TestCase, 0)
Functions ¶
func ExecLatestTest ¶
func ExecMuzzle ¶
func ExpectContains ¶
func ExpectContainsAllItem ¶
func ExpectContainsNothing ¶
func ExpectNotContains ¶
func ExpectSame ¶
func ExpectStderrContains ¶
func ExpectStdoutContains ¶
func RunGoBuild ¶
func RunGoBuildFallible ¶ added in v0.4.1
func RunGoBuildWithEnv ¶ added in v0.5.0
func RunVersion ¶ added in v0.4.1
func TestBasicEcho ¶ added in v0.0.2
func TestBasicFastHttp ¶ added in v0.3.0
func TestBasicFastHttps ¶ added in v0.3.0
func TestBasicFiberv2 ¶ added in v0.4.0
func TestBasicFiberv2Https ¶ added in v0.4.0
func TestBasicFiberv2Metrics ¶ added in v0.8.0
func TestBasicGoMicro ¶ added in v0.8.0
func TestBasicGrpc ¶ added in v0.0.2
func TestBasicHertz ¶ added in v0.0.2
func TestBasicHertzWithException ¶ added in v0.0.2
func TestBasicHertzWithHook ¶ added in v0.0.2
func TestBasicHertzWithRegex ¶ added in v0.0.2
func TestBasicMux ¶ added in v0.0.2
func TestBasicNetHttp ¶
func TestCrudMongo ¶
func TestCursor ¶
func TestESCrud ¶ added in v0.4.0
func TestESMetrics ¶ added in v0.8.0
func TestESTypedClient ¶ added in v0.4.0
func TestEchoMiddleware ¶ added in v0.0.2
func TestEchoPattern ¶ added in v0.0.2
func TestEsTypedClientMetrics ¶ added in v0.8.0
func TestExecutingCommands ¶
func TestGinHTML ¶ added in v0.4.0
func TestGinPattern ¶ added in v0.4.0
func TestGoRestfulPattern ¶ added in v0.6.0
func TestGormCrud1220 ¶ added in v0.0.2
func TestGormCrud1231 ¶ added in v0.0.2
func TestGrpcClientStream ¶ added in v0.8.0
func TestGrpcStatus ¶ added in v0.0.2
func TestHttpMetric ¶ added in v0.3.0
func TestKitexBasic ¶ added in v0.7.0
func TestKitexGrpc ¶ added in v0.7.0
func TestKratosGrpc ¶ added in v0.3.0
func TestKratosHttp ¶ added in v0.3.0
func TestLogrus ¶ added in v0.0.2
func TestMetrics ¶ added in v0.8.0
func TestMetricsEcho ¶ added in v0.8.0
func TestMetricsGrpc ¶ added in v0.8.0
func TestMuxMiddleware ¶ added in v0.0.2
func TestMuxPattern ¶ added in v0.0.2
func TestMuxPrefix ¶ added in v0.4.0
func TestMySql5xModifyData ¶
func TestMySql5xTransaction ¶
func TestMySql8xModifyData ¶
func TestNacos200Config ¶ added in v0.7.0
func TestNacos200Service ¶ added in v0.7.0
func TestNacos210Config ¶ added in v0.7.0
func TestNacos210Service ¶ added in v0.7.0
func TestPreparedStatement ¶
func TestRedigoDoCommands ¶ added in v0.4.0
func TestRedigoExecutingCommands ¶ added in v0.4.0
func TestRedigoTransactions ¶ added in v0.4.0
func TestRedigoUnsupportedCommands ¶ added in v0.4.0
func TestRedisConn ¶
func TestRedisRing ¶
func TestRedisTransactions ¶
func TestRedisUniversal ¶
func TestSingleRowQuery ¶
func TestSpanFromContext ¶ added in v0.4.0
func TestTransaction ¶
func TestV8ExecutingCommands ¶ added in v0.4.0
func TestV8ExecutingUnsupporetedCommands ¶ added in v0.4.0
func TestV8RedisConn ¶ added in v0.4.0
func TestV8RedisRing ¶ added in v0.4.0
func TestV8RedisTransactions ¶ added in v0.4.0
func TestV8RedisUniversal ¶ added in v0.4.0
func TestZeroLog ¶ added in v0.7.0
func UseTestRules ¶ added in v0.4.0
Types ¶
type TestCase ¶
type TestCase struct { // TestName is the name of the test case. TestName string // DependencyName is the name of the dependency being tested. DependencyName string // ModuleName is the name of the module under test. ModuleName string // MinVersion is the minimum supported version of the module. MinVersion *version.Version // MaxVersion is the maximum supported version of the module. MaxVersion *version.Version // MinGoVersion is the minimum Go version required for the test. MinGoVersion *version.Version // MaxGoVersion is the maximum Go version supported for the test. MaxGoVersion *version.Version // TestFunc is the function to run the general test logic. TestFunc func(t *testing.T, env ...string) // LatestDepthFunc is the function to run the latest depth compatibility test. LatestDepthFunc func(t *testing.T, env ...string) // MuzzleClasses contains the muzzle classes for the muzzle compatibility check. MuzzleClasses []string // IsMuzzleCheck indicates if the test case is for muzzle compatibility. IsMuzzleCheck bool // IsLatestDepthCheck indicates if the test case is for the latest depth check. IsLatestDepthCheck bool }
TestCase represents the configuration and metadata for a test case, including version constraints, test logic, and specific test types.
func NewGeneralTestCase ¶
func NewGeneralTestCase(testName, moduleName, minVersion, maxVersion, minGoVersion, maxGoVersion string, testFunc func(t *testing.T, env ...string)) *TestCase
NewGeneralTestCase creates a general test case to validate module compatibility with specified version constraints and optional test logic.
func NewLatestDepthTestCase ¶
func NewLatestDepthTestCase(testName, dependencyName, moduleName, minVersion, maxVersion, minGoVersion, maxGoVersion string, latestTestFunc func(t *testing.T, env ...string)) *TestCase
NewLatestDepthTestCase creates a test case to validate the compatibility of a module's latest depth with its dependencies.
func NewMuzzleTestCase ¶
func NewMuzzleTestCase(testName, dependencyName, moduleName, minVersion, maxVersion, minGoVersion, maxGoVersion string, muzzleClasses []string) *TestCase
NewMuzzleTestCase creates a test case to validate the muzzle compatibility of a module with its dependencies.
Source Files
¶
- databasesql_tests.go
- echo_tests.go
- elasticsearch_tests.go
- fasthttp_tests.go
- fiber_tests.go
- gin_tests.go
- golog_tests.go
- gomicro_tests.go
- gorestful_tests.go
- gorm_tests.go
- grpc_tests.go
- hertz_tests.go
- infra.go
- iris_tests.go
- kitex_tests.go
- kratos_tests.go
- logrus_tests.go
- mongo_tests.go
- mux_tests.go
- nacos_tests.go
- net_http_tests.go
- otel_tests.go
- redigo_tests.go
- redis_tests.go
- test_main.go
- zap_tests.go
- zerolog_tests.go
Click to show internal directories.
Click to hide internal directories.