mocks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package mocks provides mock implementations for testing. It includes mock database connections and query builders for unit tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockDB

func NewMockDB() (*sqlx.DB, sqlmock.Sqlmock, error)

NewMockDB initializes a new mock MySQL database instance

func NewMockDBWithRegEx

func NewMockDBWithRegEx() (*sqlx.DB, sqlmock.Sqlmock, error)

NewMockDBWithRegEx initializes a new mock MySQL database instance with regular expression query matching. It returns the mock database connection, the mock object, and any error that occurred during initialization.

Types

This section is empty.

Jump to

Keyboard shortcuts

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