testhelpers

package
v1.0.0-sql.4 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(in string, out string)

func Dates

func Dates() (min time.Time, max time.Time, df string)

func Dir

func Dir() (dir string)

func MockServer

func MockServer(f func(w http.ResponseWriter, r *http.Request), loglevel string) *httptest.Server

func Mux

func Mux() *http.ServeMux

func WRGet

func WRGet(route string) (*httptest.ResponseRecorder, *http.Request)

Types

type Ts

type Ts struct {
	S time.Time
	E time.Time
}

func T

func T() *Ts

func (*Ts) Seconds

func (t *Ts) Seconds() string

func (*Ts) Stop

func (t *Ts) Stop() *Ts

Jump to

Keyboard shortcuts

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