model

package
v0.0.0-...-e3b2d30 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

Package model contains the data model necessary for generating sqlmock implementations.

Index

Constants

View Source
const (
	// ImportPath of current package.
	ImportPath = "github.com/guzenok1/go-sqltest/sqlmockgen/model"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InitDbFunc

type InitDbFunc func(dbUrl string) (*sql.DB, error)

Signiture agreement here.

type Package

type Package struct {
	SrcDir string
	Name   string
	Init   string
	Tests  []string
}

Package is a go-package special description.

func Parse

func Parse(path string) (model *Package, err error)

func (*Package) Print

func (pkg *Package) Print(w io.Writer)

type TestDbFunc

type TestDbFunc func(*testing.T, *sql.DB)

Signiture agreement here.

Jump to

Keyboard shortcuts

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