Documentation ¶
Overview ¶
Package test_utils provides some constants for testing.
Index ¶
Constants ¶
View Source
const (
// TestConfigFilePath is the path of test config file.
TestConfigFilePath = "./test/data/config.test.yaml"
)
Variables ¶
View Source
var TestKafkaConfig = &configs.KafkaConfig{ Address: []string{"localhost:9092"}, Network: "tcp", ConsumerMaxWaitTime: 1000, ProducerBatchTimeout: 1000, BatchSize: 1, }
TestKafkaConfig is the test config for Kafka.
View Source
var TestMySQLConfig = &configs.MySQLConfig{
DSN: "root:my-secret-pw@tcp(localhost:3306)/test?charset=utf8mb4&parseTime=True&loc=UTC",
}
TestMySQLConfig is the test config for MySQLConfig.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.