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 ExpectDebugLogContains(t *testing.T, text string)
- func ExpectDebugLogNotContains(t *testing.T, text string)
- func ExpectNotContains(t *testing.T, text, expect 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 ReadLog(t *testing.T) 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 TestBasicDubbo(t *testing.T, env ...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 TestBasicKafka(t *testing.T, env ...string)
- func TestBasicMux(t *testing.T, env ...string)
- func TestBasicNetHttp(t *testing.T, env ...string)
- func TestBasicTrpc(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 TestDubboStatus(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 TestExecutingUnsupportedCommands(t *testing.T, env ...string)
- func TestGinHTML(t *testing.T, env ...string)
- func TestGinPattern(t *testing.T, env ...string)
- func TestGoKitLog(t *testing.T, env ...string)
- func TestGoLog(t *testing.T, env ...string)
- func TestGoRestfulPattern(t *testing.T, env ...string)
- func TestGopgCrud10100(t *testing.T, env ...string)
- func TestGopgCrud10140(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 TestLangchainAgent(t *testing.T, env ...string)
- func TestLangchainChains(t *testing.T, env ...string)
- func TestLangchainEmbed(t *testing.T, env ...string)
- func TestLangchainLLMOllama(t *testing.T, env ...string)
- func TestLangchainLLMOpenAi(t *testing.T, env ...string)
- func TestLangchainLlmGenerate(t *testing.T, env ...string)
- func TestLangchainRelevantDocuments(t *testing.T, env ...string)
- func TestLogrus(t *testing.T, env ...string)
- func TestMcpPrompt(t *testing.T, env ...string)
- func TestMcpResource(t *testing.T, env ...string)
- func TestMcpTool(t *testing.T, env ...string)
- func TestMetrics(t *testing.T, env ...string)
- func TestMetricsDubbo(t *testing.T, env ...string)
- func TestMetricsEcho(t *testing.T, env ...string)
- func TestMetricsGrpc(t *testing.T, env ...string)
- func TestMetricsTrpc(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 TestMySql5x(t *testing.T, env ...string)
- func TestMySql8x(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 TestRabbitMQCascading(t *testing.T, env ...string)
- func TestRabbitMQNOCascading(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 TestSpanFromContext(t *testing.T, env ...string)
- func TestV8ExecutingCommands(t *testing.T, env ...string)
- func TestV8ExecutingUnsupportedCommands(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 TestZapWithField(t *testing.T, env ...string)
- func TestZeroLog(t *testing.T, env ...string)
- func UseApp(appName string)
- func UseTestRules(name string) string
- type KafkaContainers
- 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 ExpectDebugLogContains ¶ added in v0.10.3
func ExpectDebugLogNotContains ¶ added in v0.10.3
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 TestBasicDubbo ¶ added in v0.10.3
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 TestBasicKafka ¶ added in v0.10.1
func TestBasicMux ¶ added in v0.0.2
func TestBasicNetHttp ¶
func TestBasicTrpc ¶ added in v0.9.0
func TestCrudMongo ¶
func TestCursor ¶
func TestDubboStatus ¶ added in v0.10.3
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 TestExecutingUnsupportedCommands ¶ added in v0.11.0
func TestGinHTML ¶ added in v0.4.0
func TestGinPattern ¶ added in v0.4.0
func TestGoKitLog ¶ added in v0.10.3
func TestGoRestfulPattern ¶ added in v0.6.0
func TestGopgCrud10100 ¶ added in v0.10.3
func TestGopgCrud10140 ¶ added in v0.10.3
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 TestLangchainAgent ¶ added in v0.9.0
func TestLangchainChains ¶ added in v0.9.0
func TestLangchainEmbed ¶ added in v0.9.0
func TestLangchainLLMOllama ¶ added in v0.9.0
func TestLangchainLLMOpenAi ¶ added in v0.9.0
func TestLangchainLlmGenerate ¶ added in v0.9.0
func TestLangchainRelevantDocuments ¶ added in v0.9.0
func TestLogrus ¶ added in v0.0.2
func TestMcpPrompt ¶ added in v0.10.0
func TestMcpResource ¶ added in v0.10.0
func TestMcpTool ¶ added in v0.10.0
func TestMetrics ¶ added in v0.8.0
func TestMetricsDubbo ¶ added in v0.10.3
func TestMetricsEcho ¶ added in v0.8.0
func TestMetricsGrpc ¶ added in v0.8.0
func TestMetricsTrpc ¶ added in v0.9.0
func TestMuxMiddleware ¶ added in v0.0.2
func TestMuxPattern ¶ added in v0.0.2
func TestMuxPrefix ¶ added in v0.4.0
func TestMySql5x ¶ added in v0.10.1
func TestMySql8x ¶ added in v0.10.1
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 TestRabbitMQCascading ¶ added in v0.9.1
func TestRabbitMQNOCascading ¶ added in v0.9.1
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 TestSpanFromContext ¶ added in v0.4.0
func TestV8ExecutingCommands ¶ added in v0.4.0
func TestV8ExecutingUnsupportedCommands ¶ added in v0.11.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 TestZapWithField ¶ added in v0.10.0
func TestZeroLog ¶ added in v0.7.0
func UseTestRules ¶ added in v0.4.0
Types ¶
type KafkaContainers ¶ added in v0.10.1
type KafkaContainers struct { ZookeeperContainer testcontainers.Container KafkaContainer testcontainers.Container ZookeeperAddress string KafkaAddress string // contains filtered or unexported fields }
KafkaContainers encapsulates Kafka and Zookeeper containers for unified management
func (*KafkaContainers) CleanupContainers ¶ added in v0.10.1
func (k *KafkaContainers) CleanupContainers(ctx context.Context) error
CleanupContainers Cleanup terminates all containers and network resources
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
¶
- amqp091.go
- databasesql_tests.go
- dubbo_tests.go
- echo_tests.go
- elasticsearch_tests.go
- fasthttp_tests.go
- fiber_tests.go
- gin_tests.go
- gokitlog_tests.go
- golog_tests.go
- gomicro_tests.go
- gopg_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
- langchain_tests.go
- logrus_tests.go
- mcp_tests.go
- mongo_tests.go
- mux_tests.go
- nacos_tests.go
- net_http_tests.go
- otel_tests.go
- redigo_tests.go
- redis_tests.go
- segmentio_kafka_go_tests.go
- test_main.go
- trpc_tests.go
- zap_tests.go
- zerolog_tests.go
Click to show internal directories.
Click to hide internal directories.