test_utils

package
v0.0.0-...-388d6c9 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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