helper

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFakeAPIConfig

func GetFakeAPIConfig(port int) *config.APIConfig

GetFakeAPIConfig returns a fake *config.APIConfig.

func GetFakeAppConfig

func GetFakeAppConfig(certFile, keyFile string) *config.AppConfig

GetFakeAppConfig returns a fake *config.AppConfig.

func GetFakeFileInfoAndCollection

func GetFakeFileInfoAndCollection(dir, file string) (os.FileInfo, []os.FileInfo)

GetFakeFileInfoAndCollection returns fake os.FileInfo and a collection of os.FileInfo with that os.FileInfo in it, for testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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