testhelper

package
v0.0.0-...-50d91fd Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenDBConnection

func OpenDBConnection() (*gorm.DB, sqlmock.Sqlmock, error)

OpenDBConnection create mock for gorm

func ShouldPanic

func ShouldPanic(t *testing.T, f func())

ShouldPanic helps to test the panic case Refer: https://gist.github.com/wrunk/4afea3d85cc9feb7fd8fcef5a8a98b5e

Types

This section is empty.

Jump to

Keyboard shortcuts

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