dbdrvtest

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package dbdrvtest provides needed integral test for db driver writer.

DBDrv implementatons should provide docker-based one-time storage configuration in it's "testdata" folder, and use NewSuite() and Run() to run these tests.

The Suite will create an notify.APIServer at given address with special designed notify driver.

See ../mysqldrv/mysql_test.go for example.

Index

Constants

View Source
const (
	DrvCnt    = 1 // number of notify drivers enabled in test server
	MaxThread = 2 // number of senders in test server

)

Variables

This section is empty.

Functions

This section is empty.

Types

type Suite

type Suite interface {
	Run(*testing.T)
}

Suite is the integral test suite.

It ensures provided DBDrv is working well together with whole system.

func NewSuite

func NewSuite(drv model.DBDrv, bind string) (ret Suite)

NewSuite creates a Suite with provided db driver and http server binding address

Jump to

Keyboard shortcuts

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