regressiontests

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2017 License: MIT Imports: 10 Imported by: 0

README

Regression tests for gometalinter

These tests run specific linters through gometalinter and verify that they output what we expect from a particular piece of source code.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectIssues

func ExpectIssues(t *testing.T, linter string, source string, expected Issues, extraFlags ...string)

ExpectIssues runs gometalinter and expects it to generate exactly the issues provided.

Types

type Issue

type Issue struct {
	Linter   string `json:"linter"`
	Severity string `json:"severity"`
	Path     string `json:"path"`
	Line     int    `json:"line"`
	Col      int    `json:"col"`
	Message  string `json:"message"`
}

func (*Issue) String

func (i *Issue) String() string

type Issues

type Issues []Issue

func (Issues) Len

func (e Issues) Len() int

func (Issues) Less

func (e Issues) Less(i, j int) bool

func (Issues) Swap

func (e Issues) Swap(i, j int)

Jump to

Keyboard shortcuts

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