tools

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SeedBuilds

func SeedBuilds(db *gorm.DB) ([]builds.Build, error)

SeedBuilds is a testing utility used in integration tests to populate a postgres DB with fake Build entities

func SeedServices

func SeedServices(db *gorm.DB) ([]services.Service, error)

SeedServices is a test utility that will populate a database with a predetermined list of "services" to be used for running integration tests against a real database

func Truncate

func Truncate(db *gorm.DB) error

Truncate cleans up tables after integration tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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