testsetup

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvTestSocket = "GOVIMTEST_SOCKET"

	EnvVimFlavor  = "VIM_FLAVOR"
	EnvVimCommand = "VIM_COMMAND"

	EnvGithubUser  = "GH_USER"
	EnvGithubToken = "GH_TOKEN"

	EnvLoadTestAPI               = "GOVIM_LOAD_TEST_API"
	EnvDisableIncrementalSync    = "GOVIM_DISABLE_INCREMENTALSYNC"
	EnvDisablePopupWindowBalloon = "GOVIM_DISABLE_POPUPWINDOWBALLOON"
	EnvDisableSignPlace          = "GOVIM_DISABLE_SIGNPLACE"

	// MinVimGovim represents the bare minimum version of Vim required to
	// use govim
	MinVimGovim = "v8.1.1158"

	// MinVimIncrementalSync is the minimum version of Vim required to use
	// incremental sync
	MinVimIncrementalSync = "v8.1.1711"

	// MinPopupWindowBalloon is the minimum version of Vim required to use popup
	// windows for balloons
	MinPopupWindowBalloon = "v8.1.1657"

	// MinSignPlace is the minimum version of Vim required to use
	// sign placement (i.e. supports sign_placelist() / sign_unplacelist())
	MinSignPlace = "v8.1.1682"

	EnvLogfileTmpl      = "GOVIM_LOGFILE_TMPL"
	EnvTestscriptStderr = "GOVIM_TESTSCRIPT_STDERR"
)

Variables

View Source
var (
	VimCommand    = Command{"vim"}
	GvimCommand   = Command{"xvfb-run", "-a", "gvim", "-f"}
	NeovimCommand = Command{"nvim"}
)
View Source
var (
	GoVersions = []string{"go1.12.7", "go1.13beta1"}

	// VimVersions contains the versions of all flavors of Vim/Gvim/X to be tested
	VimVersions = []Version{
		NeovimVersion("v0.3.5"),
		VimVersion(MinVimGovim),
		GvimVersion(MinVimGovim),
		VimVersion(MinVimIncrementalSync),
		GvimVersion(MinVimIncrementalSync),
		VimVersion(MinPopupWindowBalloon),
		GvimVersion(MinPopupWindowBalloon),
	}
)

Functions

func GvimVersion

func GvimVersion(v string) gvimVersionType

func NeovimVersion

func NeovimVersion(v string) neovimVersionType

func VimVersion

func VimVersion(v string) vimVersionType

Types

type Command

type Command []string

func EnvLookupFlavorCommand

func EnvLookupFlavorCommand() (flav govim.Flavor, cmd Command, err error)

func (Command) BuildCommand

func (c Command) BuildCommand(args ...string) *exec.Cmd

func (Command) String

func (c Command) String() string

type Version

type Version interface {
	Version() string
	Command() string
	Flavor() govim.Flavor
}

Jump to

Keyboard shortcuts

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